/* ===========================
   BASIC RESET & VARIABLES
   =========================== */

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

:root {
    --primary-color: #b45309;
    --primary-dark: #92400e;
    --secondary-color: #292524;
    --text-color: #44403c;
    --text-light: #78716c;
    --light-bg: #faf7f5;
    --white: #fffbf7;
    --border-color: #d6d3d1;
    --hover-color: #92400e;
    --gradient-start: #b45309;
    --gradient-end: #dc2626;
    --accent: #ca8a04;
    --leather: #8b4513;
    --sand: #d4a574;
    --rust: #a0522d;
    --cream: #f5f0e6;
}

body {
    font-family: 'Lora', Georgia, serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rye', 'Playfair Display', Georgia, serif;
}

/* ===========================
   NAVIGATION BAR
   =========================== */

.navbar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3d3532 100%);
    border-bottom: 4px solid var(--leather);
    color: var(--cream);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sand);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Rye', serif;
}

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

.nav-menu a {
    color: var(--cream);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    font-family: 'Lora', serif;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 1px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--sand);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--sand);
}

/* ===========================
   MAIN CONTENT
   =========================== */

main {
    min-height: calc(100vh - 200px);
}

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

/* Offset for fixed navbar on non-hero pages */
.content-section:first-child {
    padding-top: 6rem;
}

/* ===========================
   HERO SECTION (HOME PAGE)
   =========================== */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    padding: 6rem 2rem;
    text-align: center;
    background: 
        linear-gradient(to bottom, rgba(41, 37, 36, 0.7) 0%, rgba(41, 37, 36, 0.85) 100%),
        url('https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(180, 83, 9, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(202, 138, 4, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 40%);
    animation: flicker 8s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--cream) 0%, transparent 100%);
}

.hero-badge {
    position: absolute;
    bottom: 180px;
    right: 50px;
    background: var(--leather);
    color: var(--cream);
    padding: 1rem 1.5rem;
    border-radius: 50%;
    font-family: 'Rye', serif;
    font-size: 0.9rem;
    border: 3px solid var(--sand);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: rotate(15deg);
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-greeting {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--sand);
    font-family: 'Lora', serif;
}

.hero-content h2 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    color: var(--cream);
}

.hero-tagline {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--sand);
    font-family: 'Rye', serif;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.8;
    color: var(--cream);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Lora', serif;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--leather) 0%, var(--rust) 100%);
    color: var(--cream);
    border: 3px solid var(--sand);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    background: linear-gradient(135deg, var(--rust) 0%, var(--leather) 100%);
}

.btn-outline {
    background-color: transparent;
    color: var(--cream);
    border: 3px solid var(--sand);
}

.btn-outline:hover {
    background-color: var(--sand);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-small {
    display: inline-block;
    background: linear-gradient(135deg, var(--leather) 0%, var(--rust) 100%);
    color: var(--cream);
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    border: 2px solid var(--sand);
}

.btn-small:hover {
    background: linear-gradient(135deg, var(--rust) 0%, var(--leather) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

/* ===========================
   FEATURES SECTION
   =========================== */

.features {
    background: var(--cream);
    padding: 6rem 2rem;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--leather) 0px,
        var(--leather) 20px,
        transparent 20px,
        transparent 40px
    );
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-family: 'Rye', serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    background: linear-gradient(145deg, var(--white) 0%, #f5ebe0 100%);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 3px solid var(--sand);
    position: relative;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 20px;
    right: 20px;
    height: 6px;
    background: var(--leather);
    border-radius: 0 0 4px 4px;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 69, 19, 0.2);
    border-color: var(--leather);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-box h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--leather);
    font-family: 'Rye', serif;
    font-weight: 400;
}

.feature-box p {
    color: var(--text-color);
    line-height: 1.7;
    font-family: 'Lora', serif;
}

/* ===========================
   CONTENT SECTIONS
   =========================== */

.content-section {
    padding: 4rem 2rem;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* ===========================
   ABOUT PAGE
   =========================== */

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

.about-text h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    background-color: var(--light-bg);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
}

/* ===========================
   PORTFOLIO PAGE
   =========================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    font-size: 1.2rem;
    color: #999;
    font-weight: bold;
}

.portfolio-item h3 {
    padding: 1rem 1rem 0.5rem 1rem;
    color: var(--secondary-color);
}

.portfolio-item p {
    padding: 0 1rem 1rem 1rem;
    color: #666;
}

.portfolio-item .btn-small {
    margin: 0 1rem 1rem 1rem;
}

/* ===========================
   CONTACT PAGE
   =========================== */

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

.contact-info {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Form Styling */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
    background: 
        linear-gradient(135deg, rgba(41, 37, 36, 0.92) 0%, rgba(61, 53, 50, 0.95) 100%),
        url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--cream);
    padding: 6rem 2rem;
    text-align: center;
    border-top: 4px solid var(--leather);
    border-bottom: 4px solid var(--leather);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Rye', serif;
    color: var(--sand);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-section p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Lora', serif;
}

.cta-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    border-color: var(--sand);
    color: var(--cream);
}

.cta-section .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(180, 83, 9, 0.5);
}

/* ===========================
   FOOTER
   =========================== */

footer {
    background: var(--secondary-color);
    color: var(--cream);
    text-align: center;
    padding: 2rem;
    margin-top: 0;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    border-top: 4px solid var(--leather);
}

/* ===========================
   ABOUT PAGE HERO
   =========================== */

.about-hero {
    background: 
        linear-gradient(to bottom, rgba(41, 37, 36, 0.8) 0%, rgba(41, 37, 36, 0.9) 100%),
        url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 10rem 2rem 6rem;
    text-align: center;
    color: var(--cream);
}

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

.hero-badge-inline {
    display: inline-block;
    background: var(--leather);
    color: var(--cream);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--sand);
}

.about-hero h2 {
    font-size: 3.5rem;
    font-family: 'Rye', serif;
    color: var(--sand);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.about-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-family: 'Lora', serif;
}

/* ===========================
   EXPERIENCE TIMELINE
   =========================== */

.experience-section {
    background: var(--cream);
    padding: 5rem 2rem;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--leather), var(--sand));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 10px;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--leather);
    border: 4px solid var(--sand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border: 3px solid var(--sand);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.15);
}

.timeline-date {
    display: inline-block;
    background: var(--sand);
    color: var(--secondary-color);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: 'Lora', serif;
}

.timeline-content h3 {
    font-family: 'Rye', serif;
    font-size: 1.4rem;
    color: var(--leather);
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.experience-highlights {
    list-style: none;
    padding: 0;
}

.experience-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.experience-highlights li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

/* ===========================
   EDUCATION SECTION
   =========================== */

.education-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3d3532 100%);
    padding: 5rem 2rem;
}

.education-section .section-title {
    color: var(--sand);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    background: rgba(255, 251, 247, 0.05);
    border: 3px solid var(--sand);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.education-card:hover {
    background: rgba(255, 251, 247, 0.1);
    transform: translateY(-5px);
}

.education-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.education-card h3 {
    font-family: 'Rye', serif;
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.education-card h4 {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--sand);
    font-weight: 500;
    margin-bottom: 1rem;
}

.school-name {
    color: var(--cream);
    opacity: 0.9;
    font-family: 'Lora', serif;
    margin-bottom: 1rem;
}

.education-status {
    display: inline-block;
    background: var(--leather);
    color: var(--cream);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: 'Lora', serif;
}

/* ===========================
   SKILLS SECTION
   =========================== */

.skills-section {
    background: var(--cream);
    padding: 5rem 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--sand);
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: var(--leather);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
}

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

.skill-name {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: var(--secondary-color);
}

/* ===========================
   PORTFOLIO PAGE
   =========================== */

.portfolio-hero {
    background: 
        linear-gradient(to bottom, rgba(41, 37, 36, 0.8) 0%, rgba(41, 37, 36, 0.9) 100%),
        url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 10rem 2rem 6rem;
    text-align: center;
    color: var(--cream);
}

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

.portfolio-hero h2 {
    font-size: 3.5rem;
    font-family: 'Rye', serif;
    color: var(--sand);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.portfolio-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-family: 'Lora', serif;
    max-width: 600px;
    margin: 0 auto;
}

/* Resource Sections */
.resource-section {
    padding: 5rem 2rem;
    background: var(--cream);
}

.resource-section-alt {
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    font-family: 'Lora', serif;
}

/* Featured Resource Cards */
.resource-card {
    background: var(--white);
    border: 3px solid var(--sand);
    border-radius: 12px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(139, 69, 19, 0.15);
    border-color: var(--leather);
}

.resource-card-featured {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.resource-icon-large {
    font-size: 4rem;
    flex-shrink: 0;
}

.resource-content h3 {
    font-family: 'Rye', serif;
    font-size: 1.8rem;
    color: var(--leather);
    margin-bottom: 1rem;
}

.resource-content p {
    font-family: 'Lora', serif;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.resource-section-alt .resource-card {
    background: var(--cream);
}

/* Reading Grid */
.reading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.reading-card {
    background: var(--white);
    border: 3px solid var(--sand);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.reading-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(139, 69, 19, 0.15);
    border-color: var(--leather);
}

.reading-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.reading-card h3 {
    font-family: 'Rye', serif;
    font-size: 1.3rem;
    color: var(--leather);
    margin-bottom: 0.5rem;
}

.reading-source {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.reading-card p {
    font-family: 'Lora', serif;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.reading-card .btn-small {
    align-self: center;
}

/* ===========================
   CONTACT PAGE
   =========================== */

.contact-hero {
    background: 
        linear-gradient(to bottom, rgba(41, 37, 36, 0.8) 0%, rgba(41, 37, 36, 0.9) 100%),
        url('https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 10rem 2rem 6rem;
    text-align: center;
    color: var(--cream);
}

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

.contact-hero h2 {
    font-size: 3.5rem;
    font-family: 'Rye', serif;
    color: var(--sand);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-family: 'Lora', serif;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Methods Grid */
.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-method-card {
    background: var(--cream);
    border: 3px solid var(--sand);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(139, 69, 19, 0.15);
    border-color: var(--leather);
}

.contact-method-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-method-card h3 {
    font-family: 'Rye', serif;
    font-size: 1.4rem;
    color: var(--leather);
    margin-bottom: 0.5rem;
}

.contact-method-card p {
    font-family: 'Lora', serif;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.contact-link {
    font-family: 'Lora', serif;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--leather);
    text-decoration: underline;
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.topic-card {
    background: var(--white);
    border: 2px solid var(--sand);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.topic-card:hover {
    border-color: var(--leather);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.12);
}

.topic-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.topic-card h4 {
    font-family: 'Rye', serif;
    font-size: 1.1rem;
    color: var(--leather);
    margin-bottom: 0.5rem;
}

.topic-card p {
    font-family: 'Lora', serif;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .nav-menu {
        gap: 1.2rem;
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 8rem;
        background-attachment: scroll;
    }
    
    .hero-content h2 {
        font-size: 2.8rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-badge {
        bottom: auto;
        top: 120px;
        right: 20px;
        font-size: 0.75rem;
        padding: 0.8rem 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    .cta-section {
        background-attachment: scroll;
    }
    
    .features {
        padding: 4rem 1.5rem;
    }
    
    .cta-section {
        padding: 4rem 1.5rem;
    }
    
    /* About page responsive */
    .about-hero {
        padding: 8rem 1.5rem 4rem;
    }
    
    .about-hero h2 {
        font-size: 2.5rem;
    }
    
    .about-hero p {
        font-size: 1.1rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 0;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .education-section,
    .experience-section,
    .skills-section {
        padding: 3rem 1.5rem;
    }
    
    .education-card {
        padding: 2rem 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* Portfolio page responsive */
    .portfolio-hero {
        padding: 8rem 1.5rem 4rem;
    }
    
    .portfolio-hero h2 {
        font-size: 2.5rem;
    }
    
    .portfolio-hero p {
        font-size: 1.1rem;
    }
    
    .resource-section {
        padding: 3rem 1.5rem;
    }
    
    .resource-card {
        padding: 2rem;
    }
    
    .resource-card-featured {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .resource-content h3 {
        font-size: 1.5rem;
    }
    
    .reading-grid {
        grid-template-columns: 1fr;
    }
    
    .reading-card {
        padding: 1.5rem;
    }
    
    /* Contact page responsive */
    .contact-hero {
        padding: 8rem 1.5rem 4rem;
    }
    
    .contact-hero h2 {
        font-size: 2.5rem;
    }
    
    .contact-hero p {
        font-size: 1.1rem;
    }
    
    .contact-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .topics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .topic-card {
        padding: 1.25rem;
    }
    
    .topic-icon {
        font-size: 2rem;
    }
}
