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

/* Mobile-first base styles */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #595959;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --border-color: #d4d4d4;
    --focus-outline: #4f46e5;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle, #c0c0c0 1px, transparent 1px);
    background-size: 24px 24px;
    background-attachment: local;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Focus styles for all interactive elements */
a:focus,
button:focus,
.nav-toggle:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 3px;
}

/* Navigation - Mobile First - Apple Liquid Glass Design */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.8) inset,
                0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Hamburger menu button */
.nav-toggle {
    display: block;
    background: rgba(0, 0, 0, 0.04);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px;
    display: block;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* LinkedIn Icon Link */
.linkedin-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px !important;
    min-width: 44px;
    min-height: 44px;
}

.linkedin-icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.linkedin-link:hover .linkedin-icon,
.linkedin-link:focus .linkedin-icon {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Hero Section - Mobile First */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 40px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-text h1 {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text h1 strong {
    font-weight: 600;
    display: block;
    color: var(--accent);
}

.hero-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn {
    padding: 16px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    background: var(--bg-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: white;
    transform: translateY(-2px);
}

/* Dual Focus Cards */
.dual-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.focus-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    display: block;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.focus-card:hover::before,
.focus-card:focus::before {
    opacity: 0.05;
}

.focus-card:hover,
.focus-card:focus {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.focus-card h2 {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.focus-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Featured Work Section */
.featured-work {
    padding: 50px 0 80px;
}

.section-header {
    margin-bottom: 40px;
}

.section-label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -1px;
}

.work-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.work-item {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-item:hover,
.work-item:focus {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.work-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 32px;
    color: white;
    font-weight: 300;
}

.work-item:nth-child(2) .work-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.work-item:nth-child(3) .work-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.work-item:nth-child(4) .work-image {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.work-info {
    padding: 24px;
}

.work-type {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.work-info h3 {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.work-info p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Featured Work Item - Professional Article */
.featured-work-item {
    position: relative;
}

.featured-article-bg {
    background: linear-gradient(135deg, #029c91 0%, #01786f 100%);
    position: relative;
    overflow: visible;
}

.featured-article-bg h3 {
    color: white;
    font-size: 22px;
    line-height: 1.3;
    padding: 20px 24px 0;
    margin-bottom: 0;
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.featured-work-item .work-info {
    position: relative;
}

.article-link {
    margin-top: 16px;
}

.read-article-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-work-item:hover .read-article-btn,
.featured-work-item:focus-within .read-article-btn {
    background: var(--accent-hover);
    gap: 12px;
}

.read-article-btn .external-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

/* Writing Section - Substack Blog */
.writing-section {
    padding: 80px 0;
}

/* Featured Article Hero */
.featured-article {
    margin-bottom: 48px;
}

.featured-article a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-hero-background {
    /* Background image with color-matched gradient overlay */
    /* Colors extracted from the Substack article image: warm beige/peach tones */
    background-image: 
        linear-gradient(135deg, rgba(193, 140, 105, 0.85) 0%, rgba(218, 175, 148, 0.85) 100%),
        url('https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc36fd91c-8824-4f8d-b163-494be1ea1635_1555x2000.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    min-height: 320px;
    display: flex;
    align-items: center;
    position: relative;
}

/* Hidden image for color extraction */
.article-hero-background img.color-extraction-image {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.featured-article:hover .article-hero-background,
.featured-article:focus-within .article-hero-background {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.25);
    border-color: var(--accent);
}

.article-content {
    padding: 40px 32px;
    color: white;
    width: 100%;
}

.article-badge {
    margin-bottom: 16px;
}

.substack-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.featured-article h3 {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.article-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.article-meta .separator {
    opacity: 0.6;
}

.article-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--accent);
    padding: 14px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-cta .btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    gap: 12px;
}

.external-icon {
    transition: transform 0.3s ease;
}

/* Article Grid for Future Posts */
.article-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover,
.article-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 18px;
    color: white;
    font-weight: 300;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.article-card:nth-child(2) .article-image {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.article-card:nth-child(3) .article-image {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.coming-soon {
    opacity: 0.8;
    font-size: 16px;
    letter-spacing: 1px;
}

.article-info {
    padding: 24px;
}

.article-type {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.article-info h4 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.article-info p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.article-card.placeholder {
    opacity: 0.7;
}

.article-card.placeholder:hover,
.article-card.placeholder:focus-within {
    opacity: 0.85;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Tablet styles - min-width 768px */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }

    nav {
        padding: 24px 0;
    }

    .logo {
        font-size: 22px;
    }

    .nav-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        padding: 0;
        gap: 32px;
        box-shadow: none;
    }

    .nav-links a {
        padding: 8px 16px;
        font-size: 14px;
        min-height: auto;
    }

    /* LinkedIn icon - Tablet */
    .linkedin-link {
        padding: 8px 12px !important;
    }

    .linkedin-icon {
        width: 18px;
        height: 18px;
    }

    .hero {
        padding: 120px 0 50px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .hero-text p {
        font-size: 18px;
        max-width: 600px;
    }

    .cta-buttons {
        flex-direction: row;
    }

    .dual-cards {
        flex-direction: row;
        gap: 24px;
    }

    .focus-card {
        padding: 40px 32px;
    }

    .focus-card h2 {
        font-size: 28px;
    }

    .featured-work {
        padding: 65px 0 100px;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .section-header h2 {
        font-size: 42px;
    }

    .work-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .work-image {
        height: 240px;
        font-size: 40px;
    }

    .work-info {
        padding: 28px;
    }

    .work-info h3 {
        font-size: 24px;
    }

    /* Featured Work Item - Tablet */
    .featured-work-item {
        grid-column: span 2;
    }

    .featured-article-bg h3 {
        font-size: 26px;
        padding: 24px 28px 0;
    }

    /* Writing Section - Tablet */
    .writing-section {
        padding: 100px 0;
    }

    .featured-article h3 {
        font-size: 36px;
    }

    .article-description {
        font-size: 18px;
    }

    .article-content {
        padding: 50px 40px;
    }

    .article-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .article-image {
        height: 220px;
    }

    .article-info {
        padding: 28px;
    }

    .article-info h4 {
        font-size: 22px;
    }

    /* Contact Section - Tablet */
    .contact-section {
        padding: 100px 0 120px;
    }

    .contact-content {
        max-width: 750px;
    }

    .contact-form {
        padding: 48px 40px;
    }

    .contact-intro {
        margin-bottom: 56px;
    }

    .contact-intro p {
        font-size: 17px;
    }
}

/* Desktop styles - min-width 1024px */
@media (min-width: 1024px) {
    nav {
        padding: 30px 0;
    }

    .logo {
        font-size: 24px;
    }

    .nav-links {
        gap: 40px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 64px;
    }

    .focus-card {
        padding: 50px;
    }

    .focus-card h2 {
        font-size: 32px;
    }

    .featured-work {
        padding: 80px 0 120px;
    }

    .section-header {
        margin-bottom: 80px;
    }

    .section-header h2 {
        font-size: 52px;
    }

    .work-image {
        height: 280px;
        font-size: 48px;
    }

    .work-info {
        padding: 32px;
    }

    .work-info h3 {
        font-size: 26px;
    }

    /* Featured Work Item - Desktop */
    .featured-article-bg h3 {
        font-size: 30px;
        padding: 28px 32px 0;
    }

    .read-article-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    /* Writing Section - Desktop */
    .writing-section {
        padding: 120px 0;
    }

    .featured-article h3 {
        font-size: 42px;
    }

    .article-content {
        padding: 60px 50px;
        max-width: 800px;
    }

    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-image {
        height: 240px;
    }

    .article-info {
        padding: 32px;
    }

    .article-info h4 {
        font-size: 24px;
    }

    /* Contact Section - Desktop */
    .contact-section {
        padding: 120px 0 140px;
    }

    .contact-content {
        max-width: 850px;
    }

    .contact-form {
        padding: 56px 50px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .contact-intro {
        margin-bottom: 64px;
    }

    .contact-intro p {
        font-size: 18px;
        max-width: 650px;
    }
}

/* Large desktop - min-width 1400px */
@media (min-width: 1400px) {
    .hero-content {
        gap: 100px;
    }

    .hero-text h1 {
        font-size: 72px;
    }

    .section-header h2 {
        font-size: 56px;
    }

    .work-image {
        height: 300px;
    }

    .work-info {
        padding: 36px;
    }

    .work-info h3 {
        font-size: 28px;
    }

    /* Writing Section - Large Desktop */
    .featured-article h3 {
        font-size: 48px;
    }

    .article-content {
        padding: 70px 60px;
    }

    .article-image {
        height: 260px;
    }

    .article-info {
        padding: 36px;
    }

    .article-info h4 {
        font-size: 26px;
    }

    /* Contact Section - Large Desktop */
    .contact-section {
        padding: 140px 0 160px;
    }

    .contact-content {
        max-width: 920px;
    }

    .contact-form {
        padding: 64px 60px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    }

    .contact-intro {
        margin-bottom: 72px;
    }

    .contact-intro p {
        font-size: 18px;
        max-width: 700px;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0 100px;
    background: var(--bg-primary);
    background-image: radial-gradient(circle, #c0c0c0 1px, transparent 1px);
    background-size: 24px 24px;
    background-attachment: local;
}

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

.contact-intro {
    margin-bottom: 48px;
    text-align: center;
}

.contact-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.linkedin-suggestion {
    font-size: 15px;
    color: var(--text-secondary);
    font-style: italic;
}

.linkedin-inline-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    font-style: normal;
}

.linkedin-inline-link:hover,
.linkedin-inline-link:focus {
    color: var(--accent-hover);
    gap: 6px;
}

.external-icon-inline {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.linkedin-inline-link:hover .external-icon-inline,
.linkedin-inline-link:focus .external-icon-inline {
    transform: translate(2px, -2px);
}

/* Contact Form */
.contact-form {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.required {
    color: var(--accent);
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #a8a8a8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Form Validation States */
.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.success,
.form-group textarea.success {
    border-color: #10b981;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
    font-weight: 500;
}

.error-message:empty {
    display: none;
}

/* Form Status Messages */
.form-status {
    margin-bottom: 20px;
}

.success-message,
.error-message-general {
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.error-message-general {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-message.show,
.error-message-general.show {
    display: block;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    position: relative;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    transform: translateY(0);
}

.submit-btn .btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

