/* Global Styles */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --accent-primary: #4fc3f7;
    --accent-secondary: #2196f3;
    --sidebar-width: 250px;
    --header-height: 80px;
    --section-spacing: 100px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

.gif {
    border-radius: 0;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 1rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: transform 0.3s ease;
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

.profile h2 {
    margin-bottom: 0.5rem;
}

.profile p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.email a {
    font-size: 0.9rem;
}

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

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover, .nav-item.active {
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
}

/* Main Content */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
}

header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* Project Sections */
.project {
    margin-bottom: var(--section-spacing);
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

.project h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.project h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    border-radius: 1.5px;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-text {
    line-height: 1.7;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    transition: transform 0.3s ease;
}

.cube-exploded {
    transform: rotate(90deg);
}

.cube-exploded:hover {
    transform: rotate(90deg) scale(1.05);
}

.gallery-image:not(.cube-exploded):hover {
    transform: scale(1.05);
}

.below-text {
    margin-top: 1rem;
    max-width: 100%;
}

.spinner-gif {
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.cad-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.cad-image {
    max-width: 100%;
}

.printed-mf {
    max-width: 100%;
    height: auto;
}

#hammer .project-content {
    align-items: start;
    gap: 1rem;
}

#hammer .project-gallery {
    margin-top: -11rem;
}

#hammer .gallery-image {
    width: 110%;
    margin-left: -5%;
}

.sub-projects {
    margin-top: 2rem;
}

.sub-project {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.sub-project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-content,
    .sub-project-content {
        grid-template-columns: 1fr;
    }
    
    .project-gallery {
        order: -1;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
        --header-height: 60px;
    }
    
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        height: auto;
        position: relative;
        width: 100%;
        padding: 1rem;
    }
    
    .content {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .profile {
        margin-bottom: 1rem;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0.25rem;
    }
    
    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    header {
        margin-bottom: 2rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .project h2 {
        font-size: 1.75rem;
    }
    
    .project {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    .project h2 {
        font-size: 1.5rem;
    }
    
    .sub-project {
        padding: 1rem;
    }
} 