/* ============================================
   DONFACK FORTUNE PORTFOLIO - ABOUT PAGE
   File: about.css (OPTIMIZED)
   Author: Donfack Fortune
   Description: Fully responsive about/contact page styles
   Last Updated: 2025
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Colors */
    --color-primary: #e02b20;
    --color-primary-dark: #b81d16;
    --color-primary-light: #ff3b2f;
    --color-accent: #0493f3;
    --color-text-dark: #111;
    --color-text-medium: #333;
    --color-text-light: #666;
    --color-text-lighter: #888;
    --color-bg-white: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-dark: #070707;
    --color-border: #eee;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-hover: rgba(0, 0, 0, 0.15);
    --color-success: #28a745;
    --color-error: #e02b20;

    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --line-height-base: 1.7;
    --line-height-heading: 1.3;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing Scale (8px base) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 2.5rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;

    /* Layout */
    --container-max-width: 1280px;
    --container-padding: 5%;
    --content-max-width: 800px;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* Shadows */
    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 4px 16px var(--color-shadow);
    --shadow-lg: 0 8px 32px var(--color-shadow-hover);

    /* Z-index scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 1000;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-medium);
    background-color: var(--color-bg-white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    color: var(--color-text-dark);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: clamp(1.75rem, 4vw + 1rem, 2.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw + 1rem, 2rem);
}

h3 {
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
}

h4 {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
}

p {
    margin-bottom: var(--space-4);
    font-size: clamp(0.9375rem, 1.2vw + 0.5rem, 1.125rem);
    line-height: 1.75;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

abbr {
    text-decoration: none;
    border-bottom: 1px dotted var(--color-text-medium);
    cursor: help;
}

strong {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-dark);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Responsive container padding */
@media (min-width: 768px) {
    :root {
        --container-padding: 4%;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: 3%;
    }
}

@media (min-width: 1280px) {
    :root {
        --container-padding: 2rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link:focus {
    position: fixed;
    top: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    padding: var(--space-4) var(--space-6);
    background: var(--color-primary);
    color: white;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    z-index: var(--z-modal);
    clip: auto;
    white-space: normal;
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    padding: var(--space-5) 0;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.logo {
    margin: 0;
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
}

.logo a {
    color: var(--color-text-dark);
    transition: color var(--transition-base);
}

.logo a:hover {
    color: var(--color-primary);
}

/* Navigation */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2.5vw, 2rem);
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.nav-link {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    color: var(--color-text-medium);
    font-weight: var(--font-weight-semibold);
    font-size: clamp(0.875rem, 1.2vw + 0.25rem, 1rem);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(224, 43, 32, 0.08);
}

/* Social Links */
.header-social {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex-shrink: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.25rem, 4.5vw, 2.5rem);
    height: clamp(2.25rem, 4.5vw, 2.5rem);
    border-radius: var(--radius-full);
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    transition: all var(--transition-base);
}

.social-link:hover,
.social-link:focus {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 43, 32, 0.3);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: clamp(3rem, 8vw, 4rem) 0;
    min-height: calc(100vh - 300px);
}

/* ============================================
   ABOUT SECTION - OPTIMIZED FOR ALL DEVICES
   ============================================ */
.about-section {
    margin-bottom: clamp(3rem, 10vw, 6rem);
}

.about-content {
    display: block;
    width: 100%;
}

/* About Text - Enhanced Responsiveness - FULL WIDTH */
.about-text {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.about-text h2 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    color: var(--color-text-dark);
    line-height: 1.25;
}

.about-text p {
    font-size: clamp(0.9375rem, 1.2vw + 0.4rem, 1.125rem);
    line-height: 1.75;
    color: var(--color-text-medium);
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    text-align: justify;
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.about-text a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.about-text a:hover {
    color: var(--color-primary-dark);
    text-decoration-thickness: 2px;
}

/* About Image */
.about-image {
    display: none;
}

.about-image img {
    display: none;
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.location-section {
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.location-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    font-size: clamp(0.9375rem, 1.2vw + 0.4rem, 1.125rem);
    color: var(--color-text-medium);
    max-width: max-content;
}

.location-info i {
    color: var(--color-primary);
    font-size: 1.5em;
    flex-shrink: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    margin-bottom: clamp(3rem, 10vw, 6rem);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 3rem);
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    color: var(--color-text-dark);
    position: relative;
    padding-bottom: var(--space-4);
}

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

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    background: var(--color-bg-light);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-semibold);
    font-size: clamp(0.9375rem, 1.2vw, 1rem);
    color: var(--color-text-dark);
}

.required {
    color: var(--color-error);
    font-weight: var(--font-weight-bold);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: clamp(0.625rem, 2vw, 0.75rem) clamp(0.875rem, 2.5vw, 1rem);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: clamp(0.9375rem, 1.2vw, 1rem);
    color: var(--color-text-dark);
    background: white;
    transition: all var(--transition-fast);
}

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

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(224, 43, 32, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--color-error);
}

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

/* Error Messages */
.error-message {
    display: none;
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-error);
    font-weight: var(--font-weight-semibold);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: clamp(0.875rem, 2.5vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    background: var(--color-primary);
    color: white;
    font-family: var(--font-primary);
    font-size: clamp(1rem, 1.2vw + 0.25rem, 1.125rem);
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.submit-btn:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
    align-items: center;
    gap: var(--space-2);
}

.btn-loader i {
    animation: spin 1s linear infinite;
}

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

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

/* Success Message */
.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-5);
    padding: var(--space-4);
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid var(--color-success);
    border-radius: var(--radius-md);
    color: var(--color-success);
    font-weight: var(--font-weight-semibold);
    text-align: center;
}

.success-message i {
    font-size: 1.25em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-white);
    padding: clamp(1.5rem, 4vw, 2rem) 0;
    text-align: center;
    margin-top: clamp(3rem, 10vw, 6rem);
}

.footer p {
    margin: 0;
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    color: var(--color-text-light);
    transition: color var(--transition-base);
}

.footer p:hover {
    color: var(--color-primary);
}

/* ============================================
   BACK TO TOP BUTTON - OPTIMIZED POSITIONING
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: clamp(1.5rem, 4vw, 2rem);
    right: clamp(1.5rem, 4vw, 2rem);
    z-index: var(--z-dropdown);
    display: none;
    align-items: center;
    justify-content: center;
    width: clamp(2.75rem, 5vw, 3.125rem);
    height: clamp(2.75rem, 5vw, 3.125rem);
    border: none;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: white;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

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

.back-to-top:hover,
.back-to-top:focus {
    background: var(--color-primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(224, 43, 32, 0.4);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

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

/* Small Tablets and Large Phones (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .about-content {
        width: 100%;
    }

    .about-image {
        display: none;
    }

    .header-wrapper {
        gap: var(--space-5);
    }

    .nav-list {
        gap: var(--space-4);
    }
}

/* Tablets Portrait (768px - 1023px) - PRIMARY TABLET OPTIMIZATION */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Header optimizations for tablets */
    .header {
        padding: clamp(1.25rem, 2.5vw, 1.5rem) 0;
    }

    .header-wrapper {
        gap: clamp(1.5rem, 3vw, 2rem);
        align-items: center;
    }

    .header-logo {
        flex: 0 0 auto;
    }

    .logo {
        font-size: clamp(1.25rem, 2vw, 1.375rem);
    }

    /* Navigation optimization */
    .header-nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav-list {
        gap: clamp(0.75rem, 2vw, 1.25rem);
        justify-content: center;
    }

    .nav-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.9375rem;
    }

    /* Social links optimization */
    .header-social {
        gap: 0.875rem;
        flex: 0 0 auto;
    }

    .social-link {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }

    /* About section for tablets - FULL WIDTH */
    .about-content {
        width: 100%;
    }

    .about-text {
        max-width: 100%;
        width: 100%;
    }

    .about-text h2 {
        font-size: clamp(1.5rem, 2.5vw, 1.75rem);
        margin-bottom: 1.25rem;
    }

    .about-text p {
        font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .about-image {
        display: none;
    }

    /* Location section for tablets */
    .location-info {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        max-width: fit-content;
    }

    /* Contact form for tablets */
    .contact-form {
        padding: 2.5rem;
    }

    .form-group {
        margin-bottom: 1.375rem;
    }

    /* Back to top button for tablets */
    .back-to-top {
        bottom: 1.75rem;
        right: 1.75rem;
        width: 2.875rem;
        height: 2.875rem;
        font-size: 1.25rem;
    }

    /* Main content spacing */
    .main-content {
        padding: clamp(3.5rem, 6vw, 4rem) 0;
    }

    .about-section {
        margin-bottom: clamp(4rem, 8vw, 5rem);
    }

    .contact-section {
        margin-bottom: clamp(4rem, 8vw, 5rem);
    }
}

/* Tablets Landscape (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .about-content {
        width: 100%;
    }

    .about-text {
        max-width: 100%;
    }

    .about-image {
        display: none;
    }

    .header-wrapper {
        gap: var(--space-6);
    }

    .nav-list {
        gap: clamp(1.25rem, 2.5vw, 1.75rem);
    }
}

/* Desktop (1280px and above) */
@media (min-width: 1280px) {
    .about-content {
        width: 100%;
    }

    .about-text {
        max-width: 100%;
    }

    .about-image {
        display: none;
    }
}

/* Mobile devices (below 768px) */
@media (max-width: 767px) {
    :root {
        --space-10: 3rem;
        --space-12: 4rem;
    }

    .header {
        padding: var(--space-4) 0;
    }

    .header-wrapper {
        flex-direction: column;
        gap: var(--space-4);
    }

    .header-nav {
        width: 100%;
    }

    .nav-list {
        width: 100%;
        justify-content: center;
        gap: var(--space-3);
    }

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

    .main-content {
        padding: var(--space-8) 0;
    }

    .about-section {
        margin-bottom: var(--space-10);
    }

    .about-content {
        width: 100%;
    }

    .about-image {
        display: none;
    }

    .contact-form {
        padding: var(--space-6);
    }

    .location-info {
        max-width: 100%;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --space-8: 2rem;
        --space-10: 2.5rem;
        --space-12: 3rem;
    }

    .header {
        padding: var(--space-3) 0;
    }

    .header-wrapper {
        gap: var(--space-3);
    }

    .nav-list {
        gap: var(--space-2);
    }

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

    .main-content {
        padding: var(--space-6) 0;
    }

    .about-content {
        width: 100%;
    }

    .about-text h2 {
        margin-bottom: var(--space-4);
    }

    .about-text p {
        margin-bottom: var(--space-4);
        text-align: left;
    }

    .about-image {
        display: none;
    }

    .location-info {
        flex-direction: column;
        text-align: center;
        gap: var(--space-2);
    }

    .contact-form {
        padding: var(--space-5);
    }

    .form-group {
        margin-bottom: var(--space-4);
    }

    .back-to-top {
        bottom: var(--space-4);
        right: var(--space-4);
    }

    .footer {
        padding: var(--space-5) 0;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .header-wrapper {
        gap: var(--space-2);
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-2);
        width: 100%;
    }

    .nav-link {
        text-align: center;
        width: 100%;
        padding: 0.625rem;
    }

    .social-link {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    .about-image {
        display: none;
    }

    .contact-form {
        padding: var(--space-4);
    }

    .submit-btn {
        padding: var(--space-3) var(--space-5);
    }

    .back-to-top {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: var(--space-2) 0;
        position: relative;
    }

    .main-content {
        padding: var(--space-6) 0;
    }

    .about-section,
    .contact-section {
        margin-bottom: var(--space-8);
    }

    .about-content {
        width: 100%;
    }

    .about-image {
        display: none;
    }

    .back-to-top {
        bottom: var(--space-3);
        right: var(--space-3);
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* iPad specific optimizations */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {

    .header-wrapper {
        padding: 0 var(--space-4);
    }

    .about-content {
        width: 100%;
    }

    .about-text {
        max-width: 100%;
    }

    .about-text p {
        hyphens: auto;
        text-align: justify;
    }

    .about-image {
        display: none;
    }
}

/* iPad Pro specific optimizations */
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2) {

    .about-content {
        width: 100%;
    }

    .about-text {
        max-width: 100%;
    }

    .about-image {
        display: none;
    }
}

/* Surface and similar tablets */
@media (min-width: 768px) and (max-width: 912px) {
    .nav-list {
        gap: clamp(0.625rem, 1.5vw, 1rem);
    }

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

    .social-link {
        width: 2.125rem;
        height: 2.125rem;
    }

    .about-image {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITY & MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .back-to-top {
        transition: opacity var(--transition-fast) !important;
    }

    .about-image {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .nav-link {
        border: 2px solid transparent;
    }

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

    .form-input,
    .form-textarea,
    .contact-form {
        border-width: 2px;
    }

    .back-to-top {
        border: 2px solid white;
    }
}


/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .header,
    .back-to-top,
    .header-social,
    .contact-form,
    .location-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .about-image {
        display: none;
    }

    .about-text {
        page-break-inside: avoid;
    }

    .about-text p {
        text-align: left;
        hyphens: none;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.875rem;
        color: #666;
    }

    .footer {
        border: none;
        margin-top: var(--space-6);
    }

    h1,
    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* ============================================
   UTILITY CLASSES FOR ENHANCED RESPONSIVENESS
   ============================================ */

/* Text alignment utilities */
.text-balance {
    text-wrap: balance;
}

/* Prevent orphans in paragraphs */
.about-text p,
.contact-form p {
    orphans: 2;
    widows: 2;
}

/* Smooth image loading */
.about-image img {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.about-image img[loading="lazy"] {
    opacity: 0;
}

.about-image img[loading="lazy"].loaded {
    opacity: 1;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 0.625rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-link {
        min-width: 44px;
        min-height: 44px;
    }

    .submit-btn {
        min-height: 48px;
    }

    .back-to-top {
        min-width: 48px;
        min-height: 48px;
    }

    /* Increase tap target sizes for better touch interaction */
    .form-input,
    .form-textarea {
        min-height: 44px;
    }
}

/* Wide screen optimizations (1920px and above) */
@media (min-width: 1920px) {
    .about-content {
        gap: clamp(4rem, 6vw, 5rem);
    }

    .about-image img {
        max-width: 380px;
    }

    .about-text p {
        max-width: 900px;
    }
}