/* Modern CSS Reset and Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-text: #fff;
    --background: #fff;
    --dark-background: #1a1a1a;
    --transition: all 0.3s ease;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    --section-spacing: 6rem;
}

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

html {
    scroll-padding-top: 80px; /* Accounts for fixed header */
}

body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #f5f5f5;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    padding-top: 80px; /* Height of fixed header */
}

/* Header and Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 182, 193, 0.1) 0%,
        rgba(230, 230, 250, 0.1) 25%,
        rgba(176, 224, 230, 0.1) 50%,
        rgba(230, 230, 250, 0.1) 75%,
        rgba(255, 182, 193, 0.1) 100%
    );
    animation: gradientMove 15s ease infinite;
    z-index: 1;
}

@keyframes gradientMove {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-content {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.glitch-text {
    font-size: 3.5rem;
    font-weight: 300;
    color: #2c3e50;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.subtitle {
    font-size: 1.2rem;
    color: #34495e;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

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

.cta-primary, .cta-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-primary {
    background: var(--primary-color);
    color: var(--light-text);
    border: 1px solid var(--primary-color);
}

.cta-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

.cta-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.cta-secondary:hover {
    background: var(--secondary-color);
    color: var(--light-text);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--light-text);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--light-text);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* About Section */
.about-section {
    padding: 6rem 2rem;
    background: var(--background);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.about-content > p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* Location Cards */
.location-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.location-card {
    background: var(--background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.location-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.location-image.vegas {
    background-image: url('images_ps70/vegas.jpg');
    background-color: #f0f0f0;
}

.location-image.colorado {
    background-image: url('images_ps70/colorado.jpg');
    background-color: #f0f0f0;
}

.location-image.boston {
    background-image: url('images_ps70/boston.jpg');
}

.location-card h3 {
    font-size: 1.5rem;
    margin: 1rem;
    color: var(--primary-color);
}

.location-card p {
    padding: 0 1rem 1.5rem;
    color: var(--text-color);
    flex-grow: 1;
}

/* Projects Section */
.projects-section {
    padding: 6rem 2rem;
    background: #f9f9f9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: var(--background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.tag:hover {
    background: rgba(0, 0, 0, 0.1);
}

.project-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-color);
}

/* Blog Section */
.blog-section {
    padding: 6rem 2rem;
    background: var(--background);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-card {
    background: var(--background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.blog-category {
    font-weight: 500;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background: #f9f9f9;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    margin-top: 2rem;
    text-align: left;
}

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

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

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

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

.submit-btn {
    background: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--secondary-color);
}

/* Footer */
.main-footer {
    background: var(--dark-background);
    color: var(--light-text);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-text);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .split-view {
        flex-direction: column;
    }
    
    .resume-section, .academic-history {
        width: 100%;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .location-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .location-card {
        max-width: 100%;
    }
    
    .location-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 4rem;
    }

    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .pdf-container iframe {
        height: 400px;
    }
    
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image,
    .blog-image {
        height: 180px;
    }
}

/* Project Page Styles */
.project-page {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.project-section {
    margin-bottom: 0.75rem;
}

.project-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

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

.step {
    background: var(--background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

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

.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 6px;
    margin: 6px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    line-height: 1.2;
    color: #d4d4d4;
}

.code-block code {
    display: block;
    white-space: pre;
}

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

.gallery-item {
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.caption {
    margin-top: 2px;
    font-size: 0.7rem;
    color: var(--secondary-color);
}

.challenges {
    margin-top: 3rem;
}

.challenge {
    background: var(--background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

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

.challenge h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.improvements-list {
    list-style: none;
    margin-top: 1rem;
}

.improvements-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.improvements-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.documentation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.doc-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--background);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.doc-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.project-navigation {
    margin-top: 0.75rem;
    padding-top: 0.35rem;
}

.nav-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--background);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

@media (max-width: 768px) {
    .project-page {
        padding: 6rem 1rem 3rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .results-gallery {
        grid-template-columns: 1fr;
    }
    
    .project-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-button {
        text-align: center;
    }
}

/* PS70 Card Styles */
.ps70-card {
    background: var(--background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ps70-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.ps70-image {
    height: 200px;
    overflow: hidden;
}

.ps70-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ps70-card:hover .ps70-image img {
    transform: scale(1.05);
}

.ps70-content {
    padding: 1.5rem;
}

.ps70-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.ps70-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-color);
}

/* Blog Updates Styles */
.blog-updates {
    margin: 2rem 0;
}

.update-entry {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.update-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.update-entry h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.update-entry p {
    margin-bottom: 1rem;
}

.update-entry ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.update-entry li {
    margin-bottom: 0.5rem;
}

/* Project Check-in Styles */
.project-checkin {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-checkin h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.project-checkin p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Monitoring Interface Styles */
.monitoring-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.interface-description {
    padding-right: 2rem;
}

.interface-description p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.interface-description ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.interface-description li {
    margin-bottom: 0.5rem;
}

.monitoring-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.monitoring-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.interface-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--card-shadow);
}

@media (max-width: 768px) {
    .monitoring-interface {
        grid-template-columns: 1fr;
    }
    
    .interface-description {
        padding-right: 0;
    }
}

.dashboard-embed {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: var(--background);
}

.dashboard-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--background);
}

@media (max-width: 768px) {
    .dashboard-embed {
        height: 400px;
    }
}

/* Section Spacing */
section {
    padding: var(--section-spacing) 2rem;
    position: relative;
    overflow: hidden;
}

/* Smooth Scrolling Fixes */
.smooth-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Animation Improvements */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Project Grid Improvements */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-button {
    margin-top: auto;
}

/* Education Section Styles */
.education-section {
    background: var(--background);
    padding: var(--section-spacing) 2rem;
}

.education-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.resume-section {
    background: var(--background);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.resume-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.resume-actions {
    margin-bottom: 1.5rem;
}

.download-resume {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.download-resume:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.pdf-container {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.education-timeline {
    position: relative;
    padding-left: 2rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.2;
}

.education-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.education-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--background);
}

.education-year {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.education-content {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.education-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.education-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.degree {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

@media (max-width: 1024px) {
    .education-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .resume-section {
        order: 2;
    }

    .academic-history {
        order: 1;
    }
}

@media (max-width: 768px) {
    .education-timeline {
        padding-left: 1.5rem;
    }

    .education-item {
        padding-left: 1.5rem;
    }

    .education-content {
        padding: 1rem;
    }

    .education-content h3 {
        font-size: 1.3rem;
    }

    .degree {
        font-size: 1rem;
    }
}

/* Schematic Styles */
.schematic-container {
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    margin: 6px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schematic-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.wiring-instructions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 6px;
    margin: 6px 0;
}

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

.wiring-instructions li {
    padding: 2px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid #dee2e6;
}

.wiring-instructions li:last-child {
    border-bottom: none;
}

/* Calibration Styles */
.calibration-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 6px 0;
}

.calibration-graph {
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calibration-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.calibration-analysis {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 6px;
}

.calibration-analysis ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 4px;
    font-size: 0.8rem;
}

/* CAD Files Styles */
.cad-files {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.file-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.download-link:hover {
    background: var(--accent-color-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .calibration-data {
        grid-template-columns: 1fr;
    }
    
    .cad-files {
        grid-template-columns: 1fr;
    }
}

/* Video Container Styles */
.video-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 6px 0;
    padding: 6px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-wrapper {
    position: relative;
    width: 100%;
}

.demo-video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-description {
    padding: 6px;
    background: #f8f9fa;
    border-radius: 8px;
}

.video-description h3 {
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.video-description ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 4px;
}

.video-description li {
    margin-bottom: 2px;
    font-size: 0.8rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .video-container {
        grid-template-columns: 1fr;
    }
}

/* Integration Section Styles */
.integration-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 6px 0;
    padding: 6px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.integration-content {
    padding: 6px;
}

.integration-content h3 {
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.integration-content ul {
    list-style: none;
    padding: 0;
    margin: 6px 0;
}

.integration-content li {
    margin-bottom: 3px;
    padding-left: 10px;
    font-size: 0.8rem;
}

.integration-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.integration-content strong {
    color: var(--primary-color);
}

.integration-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.integration-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Impact Levels Styles */
.impact-levels {
    margin-top: 6px;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 8px;
}

.impact-levels h4 {
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    text-align: center;
}

.impact-item {
    padding: 4px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.impact-light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.impact-light.green {
    background: #4CAF50;
}

.impact-light.yellow {
    background: #FFC107;
}

.impact-light.red {
    background: #F44336;
}

.impact-item p {
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .integration-container {
        grid-template-columns: 1fr;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

@media (max-width: 768px) {
    .project-section {
        margin-bottom: 0.5rem;
    }
    
    .video-container,
    .integration-container {
        gap: 4px;
    }
    
    .impact-grid {
        gap: 3px;
    }
}

/* Threshold Circle Styles */
.threshold-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.threshold-description {
    max-width: 600px;
}

.threshold-description h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.threshold-description ul {
    list-style: none;
    padding-left: 1rem;
}

.threshold-description li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.threshold-description li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.threshold-circles {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.threshold-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.threshold-circle.green {
    background: #4CAF50;
}

.threshold-circle.yellow {
    background: #FFC107;
}

.threshold-circle.red {
    background: #F44336;
}

.threshold-circle span {
    text-align: center;
    font-size: 1.1rem;
}

.alert-icon {
    position: absolute;
    bottom: -25px;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .threshold-circles {
        flex-direction: column;
        gap: 1rem;
    }
    
    .threshold-circle {
        width: 100px;
        height: 100px;
    }
} 