@import url(fontawesome-all.min.css);
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap");

/* ========================================
   MODERN PORTFOLIO STYLESHEET
   ======================================== */

:root {
    /* Colors - Sophisticated Pearl Bush Palette */
    --primary-bg: #EBDFDC;
    --secondary-bg: #f8f5f4;
    --dark-bg: #261627;
    --darker-bg: #4e3742;
    --card-bg: rgba(255, 255, 255, 0.8);
    --accent-primary: #926868;
    --accent-secondary: #4e3742;
    --accent-light: #c4a4a4;
    
    /* Text Colors */
    --text-primary: #261627;
    --text-secondary: #4e3742;
    --text-muted: #926868;
    --text-light: #EBDFDC;
    
    /* UI Elements */
    --border-light: rgba(38, 22, 39, 0.1);
    --border-medium: rgba(38, 22, 39, 0.2);
    --shadow-light: 0 2px 10px rgba(38, 22, 39, 0.1);
    --shadow-medium: 0 5px 25px rgba(38, 22, 39, 0.15);
    --shadow-heavy: 0 10px 40px rgba(38, 22, 39, 0.2);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-max-width: 1200px;
    --container-padding: 0 2rem;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
h3 { font-size: clamp(2rem, 4vw, 2.75rem); }
h4 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 1rem;
    color: #b5a4ac;
    font-size: 1.05rem;
    line-height: 1.75;
}

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

a:hover {
    color: var(--accent-secondary);
}

/* ========================================
   SECTION COLOR TRANSITIONS
   ======================================== */
.about-section {
    position: relative;
}

.projects-section {
    position: relative;
}

.projects-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 60px;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, 
        var(--dark-bg) 0%, 
        var(--dark-bg) 20%, 
        #4a3a4d 20%, 
        #4a3a4d  40%, 
        #6b5a6e 40%, 
        #6b5a6e  60%, 
        #7c6b7f 60%, 
        #7c6b7f 80%, 
        #8B7A8E 80%, 
        #8B7A8E 100%);
}

.research-section {
    position: relative;
}

.research-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 60px;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, 
        #8B7A8E 0%, 
        #8B7A8E 20%, 
        #7c6b7f 20%, 
        #7c6b7f 40%, 
        #6b5a6e 40%, 
        #6b5a6e 60%, 
        #4a3a4d 60%, 
        #4a3a4d 80%, 
        var(--dark-bg) 80%, 
        var(--dark-bg) 100%);
}

.media-section {
    position: relative;
}

.media-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 60px;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, 
        var(--dark-bg) 0%, 
        var(--dark-bg) 20%, 
        #4a3a4d 20%, 
        #4a3a4d  40%, 
        #6b5a6e 40%, 
        #6b5a6e  60%, 
        #7c6b7f 60%, 
        #7c6b7f 80%, 
        #8B7A8E 80%, 
        #8B7A8E 100%);
}

.gallery-section {
    position: relative;
}

.gallery-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 60px;
    width: 100%;
    z-index: 10;
    background: var(--dark-bg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-medium);
    cursor: pointer;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
    color: var(--accent-primary);
}

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

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   NAVIGATION
   ======================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(38, 22, 39, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(122, 101, 149, 0.2);
    z-index: 1000;
    padding: 0.6rem 0;
    transition: var(--transition-medium);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-logo .ascii-logo {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1;
    white-space: pre;
    color: var(--accent-light);
    text-align: center;
    margin-right: 1rem;
    transition: var(--transition-medium);
}

.nav-logo .ascii-logo:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.nav-logo {
    display: flex;
    align-items: center;
}

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

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--accent-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--dark-bg);
}

.hero-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    padding-top: 8rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-text {
    max-width: none;
}

.hero-welcome {
    color: var(--accent-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-accent {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.2rem;
    transition: all var(--transition-medium);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-primary);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(146, 104, 104, 0.4);
}

/* Hero Image with Shapes */
.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
}

.hero-shape-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    border-radius: 50% 50% 20% 50%;
    opacity: 0.8;
    z-index: 1;
    transform: rotate(15deg);
}

.hero-shape-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 300px;
    background: var(--accent-light);
    border-radius: 40% 60% 30% 70%;
    opacity: 0.6;
    z-index: 1;
    transform: rotate(-10deg);
}

.hero-image .profile-image-container {
    position: relative;
    z-index: 2;
    width: 450px;
    height: 450px;
}

.hero-image .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Background Geometric Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.bg-shape-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-light));
    border-radius: 30% 70% 70% 30%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.bg-shape-2 {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 100px;
    height: 200px;
    background: var(--accent-light);
    border-radius: 50px;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite reverse;
}

.bg-shape-3 {
    position: absolute;
    top: 50%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Hero Terminal */
.hero-terminal {
    grid-area: terminal;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.hero-terminal .terminal-container {
    background: var(--dark-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    font-family: var(--font-mono);
    max-width: none;
}

/* Particles Animation */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-light);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* ========================================
   TERMINAL SECTION
   ======================================== */
.terminal-section {
    padding: var(--section-padding);
    background: var(--secondary-bg);
}

.terminal-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.terminal-container {
    background: var(--dark-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    font-family: var(--font-mono);
}

.terminal-header {
    background: var(--darker-bg);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca3f; }

.terminal-title {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.terminal-content {
    padding: 1.5rem;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.terminal-line {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.terminal-line.system {
    color: var(--accent-light);
}

.terminal-input-wrapper {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.terminal-prompt {
    color: var(--accent-primary);
    margin-right: 0.5rem;
    font-weight: 500;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #261627 !important;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    -webkit-text-fill-color: #261627;
}

.terminal-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    padding: var(--section-padding);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-main p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-highlights h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.achievements-list {
    list-style: none;
}

.achievements-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #b5a4ac;
    font-size: 1.1rem;
}

.achievements-list i {
    color: var(--accent-primary);
    margin-right: 0.75rem;
    width: 20px;
}

.about-skills {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.skills-category {
    margin-bottom: 2rem;
}

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

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--accent-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   EXPERIENCE TIMELINE - MULTI-LANE SUPPORT
   ======================================== */
.experience-section {
    padding: var(--section-padding);
    background: #8B7A8E;
}

.experience-section .section-title,
.experience-section h1,
.experience-section h2,
.experience-section h3,
.experience-section h4 {
    color: #ffffff;
}

.experience-section .section-subtitle,
.experience-section p {
    color: #f0e6f2;
}

.experience-section .timeline-line {
    background: rgba(255, 255, 255, 0.6);
}

.experience-section .timeline-marker {
    background: #ffffff;
    border: 3px solid #8B7A8E;
}

.experience-section .timeline-item.active .timeline-marker {
    background: var(--accent-primary);
    border: 3px solid #ffffff;
}

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

.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Vertical timeline line */
.timeline-line {
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ddd;
    z-index: 1;
}

/* Timeline items positioned vertically */
.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    opacity: 1;
    animation: fadeInTimeline 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1.0s; }
.timeline-item:nth-child(6) { animation-delay: 1.2s; }

@keyframes fadeInTimeline {
    from {
        opacity: 0.7;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Year display on the left */
.timeline-year {
    position: absolute;
    left: 0;
    width: 80px;
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Connection bar from timeline to content */
.timeline-connector {
    position: absolute;
    left: 120px;
    width: 40px;
    height: 4px;
    z-index: 2;
    border-radius: 2px;
}

/* Color coding for different types of roles */
.timeline-item:nth-child(1) .timeline-connector { background: var(--accent-primary); }
.timeline-item:nth-child(2) .timeline-connector { background: var(--accent-primary); }
.timeline-item:nth-child(3) .timeline-connector { background: var(--accent-primary); }
.timeline-item:nth-child(4) .timeline-connector { background: var(--accent-primary); }
.timeline-item:nth-child(5) .timeline-connector { background: var(--accent-primary); }
.timeline-item:nth-child(6) .timeline-connector { background: var(--accent-primary); }

.timeline-item.active .timeline-marker {
    background: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(146, 104, 104, 0.3), var(--shadow-medium);
    transform: scale(1.1);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2), var(--shadow-heavy);
}

/* Timeline content cards positioned to the right */
.timeline-content {
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    backdrop-filter: blur(10px);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 180px;
    flex: 1;
    max-width: 500px;
}

.timeline-content::before {
    display: none;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    background: rgba(255, 255, 255, 0.98);
}

/* Timeline content styling */
.timeline-date {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.3;
}

.timeline-content h4 {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.timeline-content p {
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.timeline-tags .tag {
    background: var(--accent-secondary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.timeline-tags .tag:hover {
    background: var(--accent-primary);
    transform: translateY(-1px);
}

/* Overlapping events indicator */
.timeline-item.overlapping {
    position: relative;
}

.timeline-item.overlapping::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 4;
}

/* Timeline period indicators */
.timeline-period {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    z-index: 2;
    backdrop-filter: blur(5px);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #f4f0ef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}
.project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.project-image {
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 2rem;
    color: var(--accent-primary);
}

.project-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-tags .tag {
    background: var(--accent-light);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ========================================
   RESEARCH SECTION
   ======================================== */
.research-section {
    padding: 8rem 0;
    background: #8B7A8E;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.research-section .section-title,
.research-section h1,
.research-section h2,
.research-section h3,
.research-section h4 {
    color: #ffffff;
}

.research-section .section-subtitle,
.research-section p {
    color: #f0e6f2;
}

.research-section .research-card {
    background: rgba(255, 255, 255, 0.95);
}

.research-card p {
    color: var(--text-primary);
    line-height: 1.6;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.research-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

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

.research-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.research-icon {
    font-size: 2rem;
    color: var(--accent-primary);
}

.research-year {
    background: var(--accent-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.research-journal {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.research-description {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.research-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric {
    background: var(--accent-light);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========================================
   MEDIA SECTION
   ======================================== */
.media-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.media-section .section-title,
.media-section h1,
.media-section h2,
.media-section h3,
.media-section h4 {
    color: white;
}

.media-section .section-subtitle,
.media-section p {
    color: var(--text-light);
}

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

.media-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.media-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.media-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.media-publication {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(146, 104, 104, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(146, 104, 104, 0.3);
}

.media-card h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.media-author {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.media-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.media-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(146, 104, 104, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(146, 104, 104, 0.2);
    color: var(--text-light);
    font-size: 0.85rem;
}

.highlight-item i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.gallery-section .section-title,
.gallery-section h1,
.gallery-section h2,
.gallery-section h3,
.gallery-section h4 {
    color: #ffffff;
}

.gallery-section .section-subtitle,
.gallery-section p {
    color: #f0e6f2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-light);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-medium);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition-medium);
}

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

.gallery-overlay h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    padding: 2rem;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

#modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-caption {
    position: absolute;
    bottom: -3rem;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 1.1rem;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.modal-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: var(--transition-fast);
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.contact-section .section-title,
.contact-section h1,
.contact-section h2,
.contact-section h3,
.contact-section h4 {
    color: #ffffff;
}

.contact-section .section-subtitle,
.contact-section p {
    color: #f0e6f2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details span {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-medium);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --container-padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .profile-image-container {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .media-card {
        padding: 1.5rem;
    }
    
    .media-highlights {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    /* Responsive timeline - collapse to single column */
    .timeline-wrapper {
        display: flex;
        flex-direction: column;
        padding: 1rem 0 1rem 3rem;
        gap: 2rem;
        overflow-x: visible;
    }
    
    .timeline-line {
        left: 1.5rem;
        transform: none;
    }
    
    .timeline-lane {
        align-items: stretch !important;
    }
    
    .timeline-item {
        max-width: none;
        animation-delay: 0s !important;
    }
    
    .timeline-marker {
        left: -2.8rem !important;
        right: auto !important;
        top: 1rem;
    }
    
    .timeline-marker::after {
        display: none;
    }
    
    .timeline-content::before {
        left: -16px !important;
        right: auto !important;
        border-left-color: transparent !important;
        border-right-color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .media-grid {
        gap: 1rem;
    }
    
    .media-card {
        padding: 1rem;
    }
    
    .media-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .media-highlights {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .terminal-content {
        padding: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.is-preload * {
    transition: none !important;
}

	/* Spacing */
	--spacing-xs: 0.5em;
	--spacing-sm: 1em;
	--spacing-md: 2em;
	--spacing-lg: 3em;
	--spacing-xl: 4em;

	/* Border Radius */
	--radius-sm: 0.375em;
	--radius-md: 0.5em;
	--radius-lg: 0.75em;
	--radius-xl: 1em;

	/* Transitions */
	--transition-fast: 0.15s ease;
	--transition-normal: 0.3s ease;
	--transition-slow: 0.5s ease;
}

/* ========================================
   RESET
   ======================================== */
html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
	-webkit-text-size-adjust: none;
}

mark {
	background-color: transparent;
	color: inherit;
}

input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

input, select, textarea {
	-moz-appearance: none;
	-webkit-appearance: none;
	-ms-appearance: none;
	appearance: none;
}

/* ========================================
   BASIC SETUP
   ======================================== */
@-ms-viewport {
	width: device-width;
}

body {
	-ms-overflow-style: scrollbar;
}

@media screen and (max-width: 480px) {
	html, body {
		min-width: 320px;
	}
}

html {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

*, *:before, *:after {
	box-sizing: inherit;
}

body {
	background: var(--dark-bg);
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after,
body.is-resizing *, body.is-resizing *:before, body.is-resizing *:after {
	animation: none !important;
	transition: none !important;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
body, input, select, textarea {
	color: var(--text-light);
	font-family: "Open Sans", sans-serif;
	font-size: 13pt;
	font-weight: 400;
	line-height: 1.75;
}

@media screen and (max-width: 1680px) {
	body, input, select, textarea {
		font-size: 11pt;
	}
}

@media screen and (max-width: 1280px) {
	body, input, select, textarea {
		font-size: 10pt;
	}
}

@media screen and (max-width: 360px) {
	body, input, select, textarea {
		font-size: 9pt;
	}
}

a {
	transition: color var(--transition-normal), border-bottom-color var(--transition-normal);
	border-bottom: dotted 1px rgba(183, 148, 246, 0.4);
	color: var(--main-accent);
	text-decoration: none;
}

a:hover {
	border-bottom-color: transparent;
	color: var(--secondary-accent) !important;
}

a:hover strong {
	color: inherit;
}

strong, b {
	color: var(--text-lighter);
	font-weight: 600;
}

em, i {
	font-style: italic;
}

p {
	margin: 0 0 2em 0;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--text-lighter);
	font-family: "Roboto Slab", serif;
	font-weight: 700;
	line-height: 1.5;
	margin: 0 0 1em 0;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	color: inherit;
	text-decoration: none;
	border-bottom: 0;
}

h1 {
	font-size: 3.5em;
	margin: 0 0 0.5em 0;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

h2 {
	font-size: 1.75em;
}

h3 {
	font-size: 1.25em;
}

h4 {
	font-size: 1.1em;
}

h5 {
	font-size: 0.9em;
}

h6 {
	font-size: 0.7em;
}

@media screen and (max-width: 1680px) {
	h1 {
		font-size: 3em;
	}
}

@media screen and (max-width: 980px) {
	h1 {
		font-size: 2.75em;
	}
}

@media screen and (max-width: 736px) {
	h1 {
		font-size: 2em;
		line-height: 1.4;
	}
	h2 {
		font-size: 1.5em;
	}
}

sub {
	font-size: 0.8em;
	position: relative;
	top: 0.5em;
}

sup {
	font-size: 0.8em;
	position: relative;
	top: -0.5em;
}

blockquote {
	border-left: solid 4px var(--secondary-accent);
	font-style: italic;
	margin: 0 0 2em 0;
	padding: 0.5em 0 0.5em 2em;
	color: var(--text-muted);
}

code {
	background: var(--highlight);
	border-radius: var(--radius-sm);
	border: solid 1px var(--card-border);
	font-family: "Courier New", monospace;
	font-size: 0.9em;
	margin: 0 0.25em;
	padding: 0.25em 0.65em;
	color: var(--lighter-accent);
}

pre {
	-webkit-overflow-scrolling: touch;
	font-family: "Courier New", monospace;
	font-size: 0.9em;
	margin: 0 0 2em 0;
}

pre code {
	display: block;
	line-height: 1.75;
	padding: 1em 1.5em;
	overflow-x: auto;
}

hr {
	border: 0;
	border-bottom: solid 2px var(--card-border);
	margin: 2.5em 0;
}

hr.major {
	margin: 3.5em 0;
}

/* ========================================
   UTILITIES
   ======================================== */
.align-left {
	text-align: left;
}

.align-center {
	text-align: center;
}

.align-right {
	text-align: right;
}

.gradient-text {
	background: linear-gradient(90deg, var(--main-accent), var(--secondary-accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	display: inline-block;
}

.glow-effect {
	box-shadow: 0 0 20px var(--glow-lavender), 0 0 20px var(--glow-sage);
}

/* ========================================
   SECTIONS & HEADERS
   ======================================== */
section.special, article.special {
	text-align: center;
}

header p {
	font-family: "Roboto Slab", serif;
	font-size: 1em;
	font-weight: 400;
	letter-spacing: 0.1em;
	margin-top: -0.5em;
	text-transform: uppercase;
	color: var(--secondary-accent);
}

header.major {
	margin-bottom: 2em;
}

header.major h2 {
	color: #4e3742;
	font-weight: 700;
	font-size: 2.5em;
	margin-bottom: 0.8em;
	position: relative;
	padding-bottom: 0.5em;
}

header.major h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: #926868;
	border-radius: 1px;
}

.tagline {
	color: #926868 !important;
	font-style: italic;
	font-size: 0.95em !important;
	margin-top: 0.5em !important;
	opacity: 0.95;
	letter-spacing: 0.8px;
	font-weight: 500;
}
}

header.main > :last-child {
	margin: 0 0 1em 0;
}

/* ========================================
   FORMS
   ======================================== */
form {
	margin: 0 0 2em 0;
}

label {
	color: var(--text-lighter);
	display: block;
	font-size: 0.9em;
	font-weight: 600;
	margin: 0 0 1em 0;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
select,
textarea {
	appearance: none;
	background: var(--card-bg);
	border-radius: var(--radius-sm);
	border: solid 2px var(--card-border);
	color: var(--text-light);
	display: block;
	outline: 0;
	padding: 0 1em;
	text-decoration: none;
	width: 100%;
	transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
	border-color: var(--main-accent);
	box-shadow: 0 0 0 3px var(--muted-lavender), 0 0 20px var(--glow-lavender);
}

select {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'%3E%3Cpath d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='%23b794f6' /%3E%3C/svg%3E");
	background-size: 1.25em;
	background-repeat: no-repeat;
	background-position: calc(100% - 1em) center;
	height: 2.75em;
	padding-right: 2.75em;
	text-overflow: ellipsis;
}

select option {
	color: var(--text-light);
	background: var(--card-bg);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
select {
	height: 2.75em;
}

textarea {
	padding: 0.75em 1em;
}

input[type="checkbox"],
input[type="radio"] {
	appearance: none;
	display: block;
	float: left;
	margin-right: -2em;
	opacity: 0;
	width: 1em;
	z-index: -1;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
	text-decoration: none;
	color: var(--text-light);
	cursor: pointer;
	display: inline-block;
	font-size: 1em;
	font-weight: 400;
	padding-left: 2.4em;
	padding-right: 0.75em;
	position: relative;
}

input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
	background: var(--card-bg);
	border-radius: var(--radius-sm);
	border: solid 2px var(--card-border);
	content: '';
	display: inline-block;
	font-size: 0.8em;
	height: 2.0625em;
	left: 0;
	line-height: 2.0625em;
	position: absolute;
	text-align: center;
	top: 0;
	width: 2.0625em;
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
}

input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked + label:before {
	background: linear-gradient(135deg, var(--main-accent), var(--secondary-accent));
	border-color: var(--main-accent);
	color: #ffffff;
	content: '\f00c';
}

input[type="checkbox"]:focus + label:before,
input[type="radio"]:focus + label:before {
	border-color: var(--main-accent);
	box-shadow: 0 0 0 2px var(--muted-lavender);
}

/* ========================================
   BUTTONS
   ======================================== */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
	appearance: none;
	transition: all var(--transition-normal);
	background-color: transparent;
	border-radius: var(--radius-md);
	border: 0;
	box-shadow: inset 0 0 0 2px #926868;
	color: #EBDFDC !important;
	cursor: pointer;
	display: inline-block;
	font-family: "Roboto Slab", serif;
	font-size: 0.8em;
	font-weight: 700;
	height: 3.5em;
	letter-spacing: 0.1em;
	line-height: 3.5em;
	padding: 0 2.5em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.button:hover {
	background-color: #926868;
	box-shadow: inset 0 0 0 2px #926868;
	color: #EBDFDC !important;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(146, 104, 104, 0.25);
}

.button.primary {
	background: #926868;
	box-shadow: 0 3px 8px rgba(146, 104, 104, 0.25);
	color: #EBDFDC !important;
	border: 2px solid #926868;
	font-weight: 600;
}

.button.primary:hover {
	background: #4e3742;
	border-color: #4e3742;
	color: #EBDFDC !important;
	box-shadow: 0 5px 15px rgba(78, 55, 66, 0.35);
	transform: translateY(-2px);
}

.button.secondary {
	font-size: 0.75em;
	height: 3em;
	line-height: 3em;
	padding: 0 2em;
	opacity: 0.85;
	border: 2px solid #926868;
	color: #926868 !important;
	background: transparent;
	box-shadow: none;
}

.button.secondary:hover {
	opacity: 1;
	background: rgba(146, 104, 104, 0.1);
	transform: translateY(-1px);
}

.button.icon:before {
	margin-right: 0.5em;
}

/* ========================================
   BOXES & CARDS
   ======================================== */
.box {
	border-radius: var(--radius-md);
	border: solid 2px var(--card-border);
	background: var(--card-bg);
	margin-bottom: 2em;
	padding: 1.5em;
}

.box > :last-child {
	margin-bottom: 0;
}

/* ========================================
   ICONS
   ======================================== */
.icon {
	text-decoration: none;
	border-bottom: none;
	position: relative;
}

.icon:before {
	font-family: 'Font Awesome 5 Free';
	font-weight: 400;
	line-height: inherit;
}

.icon.solid:before {
	font-weight: 900;
}

.icon.brands:before {
	font-family: 'Font Awesome 5 Brands';
}

/* ========================================
   IMAGES
   ======================================== */
.image {
	border-radius: var(--radius-md);
	border: 0;
	display: inline-block;
	position: relative;
}

.image img {
	border-radius: var(--radius-md);
	display: block;
}

.image.left,
.image.right {
	max-width: 40%;
}

.image.left img,
.image.right img {
	width: 100%;
}

.image.left {
	float: left;
	margin: 0 1.5em 1em 0;
	top: 0.25em;
}

.image.right {
	float: right;
	margin: 0 0 1em 1.5em;
	top: 0.25em;
}

.image.fit {
	display: block;
	margin: 0 0 2em 0;
	width: 100%;
}

.image.fit img {
	width: 100%;
}

.image.main {
	display: block;
	margin: 0 0 3em 0;
	width: 100%;
}

.image.main img {
	width: 100%;
}

/* ========================================
   LISTS
   ======================================== */
ul.alt li {
	border-top: solid 1px var(--card-border);
	padding: 0.5em 0;
}

ul.alt li:first-child {
	border-top: 0;
	padding-top: 0;
}

ul.actions {
	display: flex;
	list-style: none;
	margin-left: -1em;
	padding-left: 0;
}

ul.actions li {
	padding: 0 0 0 1em;
	vertical-align: middle;
}

ul.actions.stacked {
	flex-direction: column;
	margin-left: 0;
}

ul.actions.stacked li {
	padding: 1.3em 0 0 0;
}

ul.actions.stacked li:first-child {
	padding-top: 0;
}

ul.actions.fit {
	width: calc(100% + 1em);
}

ul.actions.fit li {
	flex-grow: 1;
	flex-shrink: 1;
	width: 100%;
}

ul.actions.fit li > * {
	width: 100%;
}

ul.icons {
	list-style: none;
	padding-left: 0;
}

ul.icons li {
	display: inline-block;
	padding: 0 1em 0 0;
}

ul.icons li:last-child {
	padding-right: 0;
}

ul.icons li .icon:before {
	font-size: 1.25em;
}

ul.contact {
	list-style: none;
	padding: 0;
}

ul.contact li {
	border-top: solid 1px var(--card-border);
	margin: 1.5em 0 0 0;
	padding: 1.5em 0 0 3em;
	position: relative;
}

ul.contact li:before {
	color: var(--secondary-accent);
	display: inline-block;
	font-size: 1.5em;
	font-family: 'Font Awesome 5 Free';
	font-weight: 400;
	height: 1.125em;
	left: 0;
	line-height: 1.125em;
	position: absolute;
	text-align: center;
	top: 1em;
	width: 1.5em;
}

ul.contact li:first-child {
	border-top: 0;
	margin-top: 0;
	padding-top: 0;
}

ul.contact li:first-child:before {
	top: 0;
}

/* ========================================
   TABLES
   ======================================== */
.table-wrapper {
	-webkit-overflow-scrolling: touch;
	overflow-x: auto;
}

table {
	margin: 0 0 2em 0;
	width: 100%;
}

table tbody tr {
	border: solid 1px var(--card-border);
	border-left: 0;
	border-right: 0;
}

table tbody tr:nth-child(2n + 1) {
	background-color: var(--highlight);
}

table td {
	padding: 0.75em 0.75em;
}

table th {
	color: var(--text-lighter);
	font-size: 0.9em;
	font-weight: 600;
	padding: 0 0.75em 0.75em 0.75em;
	text-align: left;
}

table thead {
	border-bottom: solid 2px var(--main-accent);
}

table tfoot {
	border-top: solid 2px var(--card-border);
}

table.alt {
	border-collapse: separate;
}

table.alt tbody tr td {
	border: solid 1px var(--card-border);
	border-left-width: 0;
	border-top-width: 0;
}

table.alt tbody tr td:first-child {
	border-left-width: 1px;
}

table.alt tbody tr:first-child td {
	border-top-width: 1px;
}

table.alt thead {
	border-bottom: 0;
}

table.alt tfoot {
	border-top: 0;
}

/* ========================================
   ACCESSIBILITY & ANIMATIONS
   ======================================== */

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .navbar,
    .nav-toggle,
    .gallery-modal,
    #particles,
    .contact-form {
        display: none !important;
    }
    
    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}
