/* Import Neuropol font */
@font-face{
    font-family: 'Neuropol';
    src: url('../public/fonts/neuropol.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Import Orbital font */
@font-face{
    font-family: 'Orbital';
    src: url('../public/fonts/orbital.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: black;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 18px 0;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.navbar.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Remove all hover effects on navbar */
/* .navbar:hover - REMOVED */

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.nav-logo {
    width: 32px;
    height: 32px;
    background-color: #808080;
    border-radius: 4px;
    object-fit: contain;
}

.website-name {
    color: white;
    font-family: 'Neuropol', Arial, sans-serif;
    font-size: 20px;
    font-weight: normal;
    text-decoration: none;
    letter-spacing: 0.5px;
    margin-left: 0px;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 60px;
    margin-left: 100px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    font-family: 'Neuropol', Arial, sans-serif;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    padding: 10px 0;
    transition: color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.nav-link:hover {
    color: #ff6b6b;
    transform: scale(1.2);
}

.nav-link.active {
    color: #ff6b6b;
}

/* Ensure active state only applies when it's the current page */
.nav-link.active:not(:hover) {
    color: #ff6b6b;
    transform: scale(1);
}

.nav-link.active:hover {
    color: #ff6b6b;
    transform: scale(1.2);
}

/* When mouse leaves active link, return to active state */
.nav-link.active:not(:hover):not(:active) {
    color: #ff6b6b;
}

/* Hero section with background */
.hero-section {
    position: relative;
    height: 76vh;
    background-color: #000;
    background-image: url('public/images/Hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Add space for fixed navbar */
main {
    margin-top: 0;
}

/* Contact section */
.contact-section {
    background-color: #f5f5f5;
    padding: 30px 20px;
    border-top: 1px solid #ddd;
}

.contact-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-icon {
    font-size: 40px;
}

.linkedin-link .contact-icon {
    color: #0077b5;
}

.github-link .contact-icon {
    color: #24292e;
}

.contact-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
}

.linkedin-link .contact-text {
    color: #0077b5;
}

.github-link .contact-text {
    color: #24292e;
}

.contact-link:hover .contact-text {
    text-decoration: underline;
}

.contact-link:hover .linkedin-link .contact-icon {
    color: #005885;
}

.contact-link:hover .github-link .contact-icon {
    color: #1b1f23;
}

/* Copyright section */
.copyright-section {
    background-color: #1a1a1a;
    padding: 20px;
    text-align: center;
}

.copyright-section p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #cccccc;
    font-size: 0.9rem;
}

/* Mobile Navigation */
.mobile-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-logo {
    width: 28px;
    height: 28px;
    background-color: #808080;
    border-radius: 4px;
    object-fit: contain;
}

.mobile-website-name {
    color: white;
    font-family: 'Neuropol', Arial, sans-serif;
    font-size: 18px;
    font-weight: normal;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-list {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.mobile-menu-item {
    margin: 0;
}

.mobile-menu-link {
    display: block;
    color: white;
    font-family: 'Neuropol', Arial, sans-serif;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 30px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background-color: rgba(255, 107, 107, 0.1);
    border-left-color: #ff6b6b;
    color: #ff6b6b;
}

/* Media Queries */
@media screen and (max-width: 980px) {
    .navbar {
        display: none !important;
    }
    
    .mobile-navbar {
        display: block;
    }
}

/* Project Introduction Section */
.project-intro-section {
    background-color: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
}

.project-intro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-intro-text {
    font-family: 'Orbital', Arial, sans-serif;
    font-size: 2.2rem;
    color: #333;
    margin: 0;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Project Grid Section */
.project-grid-section {
    background-color: #f8f9fa;
    padding: 20px 20px 60px 20px;
}

.project-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    width: 100%;
    height: 300px;
    background-color: #ccc;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    z-index: 1;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

.project-card:hover .project-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.project-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-description {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    color: white;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.project-card:hover .project-title,
.project-card:hover .project-description {
    opacity: 1;
    transform: translateY(0);
}

.project-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.placeholder-emoji {
    font-size: 4rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.project-card:hover .project-placeholder .placeholder-emoji {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .project-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .project-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile touch hover for project cards */
@media screen and (max-width: 768px) {
    /* Mobile project card touch behavior */
    .project-card.mobile-hover .project-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .project-card.mobile-hover .project-title,
    .project-card.mobile-hover .project-description {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Ensure normal hover still works on larger touch devices */
    .project-card:hover .project-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .project-card:hover .project-title,
    .project-card:hover .project-description {
        opacity: 1;
        transform: translateY(0);
    }
}
