* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Urbanist', sans-serif;
    line-height: 1.6;
    color: white;
    background-color: white;
}

html {
    overflow-y: scroll;
}
.container {
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: white !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 60px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: #333;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #333;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
}

/* Featured Projects */
.featured {
    padding: 0 0 6rem 0;
    background: #fff;
    margin-top: 72px; /* adjust to match your nav height */
}

.featured h2 {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem;
    margin: 0;
}

.project-card {
    cursor: pointer;
    border-radius: 0; /* squared corners */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.project-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 400px; /* increased height for each pic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* <-- add this line */
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    text-align: center;
    color: white;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.view-project {
    font-weight: 700;
    padding-bottom: 2px;
    border-bottom: none;
    letter-spacing: 0.02em;
}

.view-project-arrow {
    font-weight: 300;
    color: #bbb;
    font-size: 1.2em;
    letter-spacing: 0.25em;
    margin-left: 4px;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
}

/* Categories Section */
.categories {
    padding: 6rem 0;
    background: #f8f9fa;
}

.categories h2 {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 0;
}

.category-card {
    background: white;
    border-radius: 0; /* squared corners */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 300px; /* increased height for category images */
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    padding: 2rem;
}

.category-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.category-content p {
    color: #666;
    margin-bottom: 1rem;
}

.category-count {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

/* Remove left/right margin from sections */
.featured,
.categories {
    padding-left: 0;
    padding-right: 0;
}

/* Responsive Design */
@media (max-width: 900px) {
    .projects-grid,
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    min-height: 40px;
}

.mobile-menu-toggle:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    min-height: 64px;
}

.mobile-drawer-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.mobile-drawer-close:hover {
    color: #333;
}

.mobile-drawer-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.mobile-nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 400;
    font-size: 1.1rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    margin: 0 -1.5rem;
    -webkit-tap-highlight-color: transparent;
    display: block;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        padding: 0 1.5rem;
        min-height: 56px;
    }
    
    .nav {
        padding: 0.75rem 0;
    }
    
    .nav-logo a {
        font-size: 1.4rem;
    }
    
    .projects-grid {
        gap: 0.5rem;
    }
    
    .project-image {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo a {
        font-size: 1.3rem;
    }
    
    .featured h2,
    .categories h2 {
        font-size: 1.8rem;
    }
    
    .mobile-drawer {
        width: 280px;
        right: -280px;
    }
    
    .mobile-drawer-content {
        padding: 1.5rem;
    }
    
    .project-image {
        height: 300px;
    }
    
    .project-info h3 {
        font-size: 1.3rem;
    }
    
    .project-info p {
        font-size: 0.9rem;
    }
}

/* Additional mobile improvements */
@media (max-width: 360px) {
    .mobile-drawer {
        width: 260px;
        right: -260px;
    }
    
    .mobile-drawer-header {
        padding: 1rem 1.5rem;
    }
    
    .mobile-drawer-content {
        padding: 1rem;
    }
    
    .nav-logo a {
        font-size: 1.2rem;
    }
}

/* Footer */
.footer {
    background: white;
    color: #333;
    padding: 0rem 0 1.5rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 0rem;
    text-align: center;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.footer-info p {
    font-size: 1rem;
    color: #333;
    font-weight: 300;
}

.footer-contact {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 400;
}

.contact-link {
    color: #666;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
    display: inline-block;
    width: 100%;
}

.contact-link:hover {
    color: #333;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #999;
    opacity: 1;
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.linkedin-icon,
.instagram-icon {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-contact {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-social {
        justify-content: center;
    }
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

.project-card[onclick*="project4.html"] .project-image img,
.project-card[data-category="illustration"] .project-image img {
    transform: scale(1.25); /* Enlarge the image */
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

