/* Modern Boho Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600&family=Space+Grotesk:wght@300;400;500&display=swap');

/* Minimalist Boho Color Palette */
:root {
    --primary-color: #8B7355;
    --secondary-color: #A0956B;
    --accent-color: #D4B896;
    --warm-white: #FAF8F5;
    --cream: #F5F2ED;
    --sage: #9CAF88;
    --terracotta: #C17767;
    --charcoal: #3D3D3D;
    --soft-gray: #6B6B6B;
    --light-gray: #E8E4DF;
    
    --text-primary: #3D3D3D;
    --text-secondary: #6B6B6B;
    --text-light: #FAF8F5;
    --bg-primary: #FAF8F5;
    --bg-secondary: #F5F2ED;
    --bg-tertiary: #E8E4DF;
    
    --shadow-sm: 0 2px 8px rgba(139, 115, 85, 0.08);
    --shadow-md: 0 4px 20px rgba(139, 115, 85, 0.12);
    --shadow-lg: 0 8px 32px rgba(139, 115, 85, 0.16);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth page background with subtle texture */
body {
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--cream) 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Add subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(139, 115, 85, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(160, 149, 107, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Flowing Section Design */
.header, .projects, .vision, .education, .past-work, .photography, .skills, .contact {
    background: transparent;
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 2rem);
    margin: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Organic section dividers */
.header::after,
.projects::after,
.vision::after,
.education::after,
.past-work::after,
.photography::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

/* Header Section - Hero with organic flow */
.header {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.profile-photo {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--warm-white);
    transition: var(--transition);
}

.profile-photo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 115, 85, 0.2);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-photo:hover img {
    transform: scale(1.05);
}

.header-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.header-text p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0;
    font-weight: 300;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; }
h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 500; }
h4 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 500; }
h5 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; }
h6 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 500; }
h7 { font-size: clamp(1.1rem, 2vw, 1.25rem); font-weight: 500; }

.header-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-color), #B3B4BD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text p {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.7;
}

/* Modern Typography for Section Headers */
.past-work h2,
.vision h3,
.education h3,
.photography h4,
.projects h5,
.skills h6,
.contact h3 {
    margin-top: 0;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 2.5rem;
    position: relative;
    text-align: center;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

.past-work h2::after,
.vision h3::after,
.education h3::after,
.photography h4::after,
.projects h5::after,
.skills h6::after,
.contact h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--sage), var(--accent-color));
    border-radius: 2px;
}

/* Vision section specific styling */
.vision {
    text-align: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.vision::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.vision h3 {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.vision p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    33% { transform: rotate(1deg) translateX(10px); }
    66% { transform: rotate(-1deg) translateX(-10px); }
}

/* Education Section - Timeline Flow */
.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), var(--sage));
    transform: translateX(-50%);
    border-radius: 3px;
}

.education-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 4px solid var(--warm-white);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.education-item:nth-child(odd) {
    flex-direction: row;
}

.education-item:nth-child(even) {
    flex-direction: row-reverse;
}

.education-date {
    width: 120px;
    padding: 1rem;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.education-content {
    flex: 1;
    background: var(--warm-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    margin: 0 2rem;
    position: relative;
    transition: var(--transition);
}

.education-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.education-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-degree {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.education-honors {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.honor-badge {
    background: var(--sage);
    color: var(--warm-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
}

/* Photo card slider styles */
.photo-slider {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 15px;
}

.photo-cards {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-card {
    position: absolute;
    width: 675px;
    height: 450px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: all 0.5s ease;
    opacity: 0;
    transform: scale(0.8) translateX(0);
    z-index: 1;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.photo-card.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 3;
}

.photo-card.prev {
    opacity: 0.6;
    transform: scale(0.85) translateX(-180px);
    z-index: 2;
}

.photo-card.next {
    opacity: 0.6;
    transform: scale(0.85) translateX(180px);
    z-index: 2;
}

.photo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--warm-white);
    color: var(--primary-color);
    border: 2px solid var(--sage);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 4;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-arrow:hover {
    background: var(--sage);
    color: var(--warm-white);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.photo-arrow.left {
    left: 20px;
}

.photo-arrow.right {
    right: 20px;
}

/* Work image slider styles */
.work-slider {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.work-cards {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-card {
    position: absolute;
    width: 250px;
    height: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    opacity: 0;
    transform: scale(0.8) translateX(0);
    z-index: 1;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
}

/* Healthcare work cards - center cropping */
.work-card.healthcare img {
    object-position: center center;
}

/* Video work cards styling */
.work-card.video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.work-card.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 3;
}

.work-card.prev {
    opacity: 0.6;
    transform: scale(0.85) translateX(-60px);
    z-index: 2;
}

.work-card.next {
    opacity: 0.6;
    transform: scale(0.85) translateX(60px);
    z-index: 2;
}

.work-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--warm-white);
    color: var(--primary-color);
    border: 2px solid var(--sage);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 4;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-arrow:hover {
    background: var(--sage);
    color: var(--warm-white);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.work-arrow.left {
    left: 10px;
}

.work-arrow.right {
    right: 10px;
}

/* Main Career Slider Arrow */
.slider-arrow {
    background: linear-gradient(135deg, var(--sage), var(--terracotta));
    color: var(--warm-white);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.slider-arrow:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--sage));
}

/* Modern Project Container */
.project-container {
    margin-top: 24px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(5, 10, 68, 0.4);
    transition: var(--transition);
    background: rgba(44, 46, 58, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(179, 180, 189, 0.2);
}

.project-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(5, 10, 68, 0.6);
    border-color: rgba(10, 33, 192, 0.4);
}

.project-container iframe {
    width: 100%;
    border: none;
    border-radius: var(--border-radius);
    background-color: white;
}

/* Projects Section - Organic Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--warm-white);
    border-radius: var(--border-radius);
    padding: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    overflow: hidden;
    position: relative;
}

.project-card:hover {
    transform: translateY(-12px) rotate(0.5deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.project-card:nth-child(even):hover {
    transform: translateY(-12px) rotate(-0.5deg);
}

.project-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-header h6 {
    margin: 0;
    color: var(--primary-color);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--sage);
    color: var(--warm-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 400;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.project-preview {
    position: relative;
    margin: 0 1.5rem 1.5rem 1.5rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
    aspect-ratio: 16/10;
}

.preview-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.preview-link:hover {
    text-decoration: none;
}

.preview-link .preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.preview-link .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(61, 61, 61, 0.9));
    padding: 1.5rem;
    color: var(--warm-white);
    transform: translateY(100%);
    transition: var(--transition);
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-card:hover .preview-link .project-overlay {
    transform: translateY(0);
}

.project-card:hover .preview-link .preview-image {
    transform: scale(1.08);
}

/* Ensure overlay and image hover effects work with links */
.preview-link .preview-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.preview-link .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(20, 22, 25, 0.9));
    padding: 20px;
    color: var(--text-light);
    transform: translateY(100%);
    transition: var(--transition);
}

.project-card:hover .preview-link .project-overlay {
    transform: translateY(0);
}

.project-card:hover .preview-link .preview-image {
    transform: scale(1.08);
}

.project-actions {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--warm-white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--warm-white);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(179, 180, 189, 0.1);
    border-color: var(--text-light);
    color: var(--text-light);
}

/* Skills Section Styling */
.skills h6 {
    margin-top: 0;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 2.5rem;
    position: relative;
    text-align: center;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

.skills h6::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--sage), var(--accent-color));
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skill-category {
    background: var(--warm-white);
    border-radius: var(--border-radius);
    padding: 28px;
    border: 2px solid var(--light-gray);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--sage), var(--terracotta), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category h7 {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--cream);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.skill-item:hover {
    background: var(--warm-white);
    transform: translateX(6px);
    border-color: var(--sage);
    box-shadow: var(--shadow-sm);
}

.skill-icon {
    font-size: 1.4rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sage), var(--accent-color));
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
    color: white;
    font-weight: 500;
}

.skill-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    letter-spacing: -0.01em;
}

/* Education Timeline Styling */
.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), var(--sage));
    transform: translateX(-50%);
    border-radius: 3px;
}

.education-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 4px solid var(--warm-white);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.education-item:nth-child(odd) {
    flex-direction: row;
}

.education-item:nth-child(even) {
    flex-direction: row-reverse;
}

.education-date {
    width: 120px;
    padding: 1rem;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.education-content {
    flex: 1;
    background: var(--warm-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    margin: 0 2rem;
    position: relative;
    transition: var(--transition);
}

.education-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.education-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-degree {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.education-honors {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.honor-badge {
    background: var(--sage);
    color: var(--warm-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
}

/* Contact Section Styling */
.contact {
    text-align: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.contact h3 {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-text {
    text-align: left;
}

.contact-text p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--warm-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sage), var(--accent-color));
    border-radius: 50%;
    flex-shrink: 0;
    color: white;
    font-weight: 500;
}

.contact-details {
    flex: 1;
    text-align: left;
}

.contact-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.contact-link:hover {
    color: var(--sage);
    border-bottom-color: var(--sage);
    text-decoration: none;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Apply transparent styling to content areas */
.past-work .slider-container,
.vision p,
.education-timeline,
.photography .photo-slider,
.projects .project-container,
.skills .skills-grid {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    transition: none;
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 768px) {
    .header {
        min-height: 60vh;
        padding: 2rem 1rem;
    }
    
    .header-content {
        gap: 1.5rem;
    }
    
    .profile-photo {
        width: 140px;
        height: 140px;
    }
    
    .header-text h1 {
        font-size: 2.5rem;
    }
    
    .header-text p {
        font-size: 1rem;
    }
    
    .past-work h2,
    .vision h3,
    .education h3,
    .photography h4,
    .projects h5,
    .skills h6,
    .contact h3 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-text {
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .project-card {
        margin: 0;
    }
    
    .project-card:hover {
        transform: translateY(-8px);
    }
    
    .project-card:nth-child(even):hover {
        transform: translateY(-8px);
    }
    
    .project-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-actions {
        flex-direction: column;
        padding: 0 1rem 1rem 1rem;
    }
    
    .education-timeline::before {
        left: 20px;
    }
    
    .education-item {
        flex-direction: column !important;
        margin-left: 40px;
    }
    
    .education-item::before {
        left: 20px;
        transform: none;
    }
    
    .education-date {
        width: auto;
        text-align: left;
        order: 2;
        margin-top: 0.5rem;
    }
    
    .education-content {
        margin: 0;
        order: 1;
    }
    
    .vision {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .header, .projects, .vision, .education, .past-work, .photography, .skills {
        padding: 2rem 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        margin: 0;
    }
    
    .project-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-preview {
        margin: 0 1rem 1rem 1rem;
    }
    
    .project-actions {
        padding: 0 1rem 1rem 1rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.preview-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading animation for images */
.preview-image {
    background: var(--light-gray);
    background-image: linear-gradient(
        90deg,
        var(--light-gray) 0px,
        var(--cream) 40px,
        var(--light-gray) 80px
    );
    background-size: 200px;
    animation: loading 1.5s infinite;
}

.preview-image[src] {
    animation: none;
    background: none;
}

@keyframes loading {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* Loading States */
.photo-card img,
.work-card img,
.work-card video {
    transition: opacity 0.3s ease;
}

.photo-card img:not([src]),
.work-card img:not([src]) {
    opacity: 0.5;
    background: var(--bg-tertiary);
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 22, 25, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    position: relative;
    width: 95%;
    height: 90%;
    max-width: 1400px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(20, 22, 25, 0.8);
    color: var(--text-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Enhanced Focus States for Accessibility */
.photo-arrow:focus,
.work-arrow:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }
    
    .header, .past-work, .vision, .education, .photography, .projects, .skills {
        padding: 40px 0;
    }
    
    .header {
        padding: 60px 0 40px 0;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px;
        border-radius: 16px;
    }
    
    .profile-photo img {
        width: 120px;
        height: 120px;
    }
    
    .header-text h1 {
        font-size: 3rem;
    }
    
    .header-text p {
        font-size: 1.1rem;
    }
    
    .past-work h2,
    .vision h3,
    .education h3,
    .photography h4,
    .projects h5,
    .skills h6,
    .contact h3 {
        font-size: 2rem;
    }
    
    .content-panel,
    .past-work .slider-container,
    .vision p,
    .education-timeline,
    .photography .photo-slider,
    .projects .project-container,
    .skills .skills-grid {
        padding: 0;
        margin: 30px 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    
    .education-timeline::before {
        left: 130px;
    }
    
    .education-item::before {
        left: 122.5px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .slide {
        flex-direction: column;
        gap: 16px;
    }
    
    .slide-text {
        flex: 1;
    }
    
    .slide-image {
        flex: 1;
        max-width: 100%;
    }
    
    .photo-card {
        width: 90vw;
        height: 300px;
    }
    
    .photo-card.prev {
        transform: scale(0.85) translateX(-20px);
    }
    
    .photo-card.next {
        transform: scale(0.85) translateX(20px);
    }
    
    .work-card {
        width: 200px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .header-content {
        padding: 25px;
    }
    
    .profile-photo img {
        width: 100px;
        height: 100px;
    }
    
    .header-text h1 {
        font-size: 2.5rem;
    }
    
    .header-text p {
        font-size: 1rem;
    }
    
    .past-work h2,
    .vision h3,
    .education h3,
    .photography h4,
    .projects h5,
    .skills h6,
    .contact h3 {
        font-size: 1.8rem;
    }
    
    .content-panel,
    .past-work .slider-container,
    .vision p,
    .education-timeline,
    .photography .photo-slider,
    .projects .project-container,
    .skills .skills-grid {
        padding: 0;
        margin: 25px 0;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    
    .education-timeline::before {
        left: 100px;
    }
    
    .education-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .education-item::before {
        left: 92.5px;
        top: 8px;
    }
    
    .education-date {
        width: auto;
        text-align: left;
        font-size: 0.85rem;
        order: 2;
        margin-left: 120px;
    }
    
    .education-content {
        margin-left: 120px;
        padding: 16px;
        order: 1;
    }
    
    .photo-slider {
        height: 400px;
    }
    
    .photo-card {
        height: 250px;
    }
    
    .photo-arrow {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}