/* Import Neuropol font */
@font-face{
    font-family: 'Neuropol';
    src: url('public/fonts/neuropol.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;
}

.nav-link:hover {
    color: #ff6b6b;
    transform: scale(1.2);
}

.nav-link.active {
    color: #ff6b6b;
}

/* Hero section with background */
.hero-section {
    position: relative;
    height: 100vh;
    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;
}

.hero-content p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Summary section */
.summary-section {
    background-color: #fbfbfb;
    padding: 40px 20px 10px 20px;
}

.summary-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.summary-container h2 {
    font-family: 'Neuropol', Arial, sans-serif;
    font-size: 3rem;
    font-weight: normal;
    color: #000;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.summary-container p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Remove old hero styles */
.photo-container {
    display: none;
}

/* Add space for fixed navbar */
main {
    margin-top: 0;
}

/* About section */
.about-section {
    background-color: #fbfbfb;
    padding: 20px 20px 5px 20px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
    justify-content: center;
}

.about-photo {
    width: 400px;
    height: 500px;
    background-color: #000;
    background-image: url('public/images/SummaryHead.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

.about-content {
    flex: 1;
    max-width: 600px;
}

.strengths, .weaknesses {
    margin-bottom: 2.5rem;
}

.about-content h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 1.5rem;
}

.about-content ul {
    list-style: none;
    padding: 0;
}

.about-content li {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 0.4rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-content li::before {
    content: "•";
    color: #ff6b6b;
    font-size: 1.4rem;
    position: absolute;
    left: 0;
}

/* Experience section */
.experience-section {
    background-color: #f9f9f9;
    padding: 15px 20px 40px 20px;
}

.experience-title {
    max-width: 1200px;
    margin: 0 auto 0.2rem auto;
    text-align: center;
    padding: 20px 0 5px 0;
}

.experience-title h2 {
    font-family: 'Neuropol', Arial, sans-serif;
    font-size: 3rem;
    font-weight: normal;
    color: #000;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.experience-reverse {
    flex-direction: row-reverse;
}

.experience-card-spotlight {
    flex: 0 0 233px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.experience-card-container {
    perspective: 1000px;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.experience-card {
    flex: 0 0 233px;
    height: 415px;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.experience-card.animate-flip {
    animation: experienceQuickEnlarge 0.45s, experienceFlipCard 0.45s 0.8s forwards;
}

.experience-card.flipped {
    transform: rotateY(180deg);
}

.experience-card.enabled:hover {   
    transform: scale(1.1) rotateY(180deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.experience-cardface {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.experience-cardface img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.experience-back img {
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.experience-front {
    background-color: #333;
    backface-visibility: hidden;
}

.experience-back {
    background-color: #555;
    backface-visibility: hidden;
    transform: rotateY(180deg);
}

.experience-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

.experience-content h4 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 1.5rem;
    text-align: center;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-list li {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-list li::before {
    content: "•";
    color: #ff6b6b;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.experience-content p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Remove the old h2 styling from experience-container */
.experience-container h2 {
    display: none;
}

/* Logos section */
.experience-logos {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0;
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    background-color: transparent;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.logo-placeholder:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Projects section with parallax background */
.projects-section {
    position: relative;
    height: 67vh;
    background-color: #000;
    background-image: url('public/images/Project.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.projects-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;
}

.projects-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.projects-content h2 {
    font-family: 'Neuropol', Arial, sans-serif;
    font-size: 3rem;
    font-weight: normal;
    color: white;
    letter-spacing: 3px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
}

/* Project Cards section */
.project-cards-section {
    background-color: white;
    padding: 40px 20px;
}

.project-cards-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-card {
    width: 100%;
    height: 380px;
    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-card-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-card-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.project-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
    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);
}

/* 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;
}

/* Remove old button styles */
.linkedin-btn,
.github-btn {
    display: none;
}

/* 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;
}

/* Add the tarot animations */
@keyframes experienceQuickEnlarge {
    0% {
        transform: scale(0.1) rotate(-10deg) rotateY(-10deg);
    }
    10% {
        transform: scale(0.7) rotate(-10deg) rotateY(-10deg);
    }
    50% {
        transform: scale(1.2) rotate(2deg) rotateY(-5deg);
    }
    80% {
        transform: scale(1.15);
    }
    95% {
        transform: scale(1) rotate(0deg) rotateY(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg) rotateY(0deg);
    }
}

@keyframes experienceFlipCard {
    0% {
        transform: scale(1) rotateY(0deg);
    }
    40% {
        transform: scale(1.2) rotateY(-180deg) rotate(1.5deg); 
    }
    85% {
        transform: scale(1.2) rotateY(-180deg) rotate(1deg); 
    }
    100% {
        transform: scale(1) rotateY(-180deg) rotate(0deg); 
    }
}

/* Navigation hint section */
.navigation-hint-section {
    background-color: #f8f9fa;
    padding: 50px 20px;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.navigation-hint-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

.hint-icon {
    font-size: 2.5rem;
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

.hint-content {
    flex: 1;
    max-width: 500px;
}

.hint-content h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.hint-content p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.hint-subtext {
    font-size: 0.95rem;
    color: #777;
    font-style: italic;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation Base Styles */
.desktop-nav {
    display: flex;
}

.mobile-nav {
    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 - Consistent 768px breakpoint */
@media screen and (max-width: 768px) {
    /* Hide desktop navbar on mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Show mobile navbar on mobile */
    .mobile-nav {
        display: block;
    }
    
    /* Add padding to main content to clear fixed mobile nav */
    main {
        padding-top: 80px;
    }
    
    /* Fix projects section background on mobile - remove fixed attachment */
    .projects-section {
        background-attachment: scroll;
    }
    
    /* Mobile responsiveness for summary section */
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
    }
    
    .about-photo {
        width: 100%;
        max-width: 400px;
        height: 300px;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .about-content h3 {
        font-size: 1.8rem;
    }
    
    .about-content li {
        font-size: 1.1rem;
        text-align: left;
    }
    
    /* Experience section mobile responsive */
    .experience-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }
    
    .experience-reverse {
        flex-direction: column;
    }
    
    .experience-card-spotlight {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        height: 500px;
        margin-bottom: 20px;
    }
    
    .experience-card {
        width: 233px;
        height: 415px;
        margin: 0 auto;
    }
    
    .experience-content {
        width: 100%;
        max-width: 600px;
        text-align: left;
        padding-top: 0;
    }
    
    .experience-content h4 {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .experience-list li {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    /* Project cards mobile responsive */
    .project-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .project-card {
        height: 300px;
    }
    
    /* Navigation hint mobile responsive */
    .navigation-hint-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .hint-content h3 {
        font-size: 1.5rem;
    }
    
    .hint-content p {
        font-size: 1rem;
    }
    
    /* Contact section mobile responsive */
    .contact-container {
        flex-direction: column;
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    main {
        padding-top: 70px;
    }
    
    .summary-section {
        padding: 30px 15px 8px 15px;
    }
    
    .summary-container h2 {
        font-size: 2.2rem;
    }
    
    .summary-container p {
        font-size: 1rem;
    }
    
    .about-section {
        padding: 15px 15px 5px 15px;
    }
    
    .about-photo {
        height: 250px;
    }
    
    .about-content h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .about-content li {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .experience-section {
        padding: 10px 15px 30px 15px;
    }
    
    .experience-title h2 {
        font-size: 2.2rem;
    }
    
    .experience-logos {
        gap: 15px;
    }
    
    .logo-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .experience-card {
        width: 200px;
        height: 350px;
    }
    
    .experience-card-spotlight {
        max-width: 200px;
        height: 450px;
    }
    
    .project-cards-section {
        padding: 30px 15px;
    }
    
    .project-card {
        height: 250px;
    }
    
    .navigation-hint-section {
        padding: 40px 15px;
    }
    
    .contact-section {
        padding: 25px 15px;
    }
    
    .contact-icon {
        font-size: 32px;
    }
    
    .contact-text {
        font-size: 1.2rem;
    }
}

/* Mobile touch hover for project cards */
@media screen and (max-width: 768px) {
    /* Mobile project card touch behavior */
    .project-card.mobile-hover .project-card-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-card-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .project-card:hover .project-title,
    .project-card:hover .project-description {
        opacity: 1;
        transform: translateY(0);
    }
}