:root {
    --bg-color: #f8f9fa;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #5e5e5e;
    --font-main: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    --sidebar-width: 280px;
    --transition-speed: 0.3s;
}

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

::selection {
    background: #000000;
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #000000;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 3rem 2rem;
}

.logo-section {
    text-align: center;
    margin-bottom: 3rem;
}

.sidebar-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 8px;
}

.sidebar-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all var(--transition-speed);
    text-align: left;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.nav-link.active {
    background: #000000;
    color: #ffffff;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.sidebar-footer .social-links a {
    color: #000000;
    font-size: 1.5rem;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-footer .social-links a:hover {
    color: #000000;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    height: 100vh;
    overflow-y: auto;
}

/* Portfolio Section */
.portfolio-section {
    padding: 2rem;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .card-thumbnail {
    transform: scale(1.1);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-card:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .card-category {
    color: #ffffff;
}

.card-category {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    color: #fff;
    margin: 0;
}

/* Project Overlay */
.project-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.project-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.close-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 3rem;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.2s;
    line-height: 1;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: #000000;
}

.overlay-content {
    padding: 6rem 4rem;
    min-height: 100vh;
}

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

.project-header {
    margin-bottom: 3rem;
    text-align: center;
}

.project-category-tag {
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.project-header h2 {
    font-size: 3rem;
}

.project-media-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-media-container img,
.project-media-container video {
    width: 100%;
    border-radius: 8px;
}

/* Video Embed Styling */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


.project-info {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.gradient-text {
    background: linear-gradient(45deg, #000000, #4d4d4d);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 1400px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
    }

    body {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .project-header h2 {
        font-size: 2rem;
    }
}