:root {
    --primary-color: #2ecc71;  /* Changed to green */
    --secondary-color: #27ae60; /* Darker green */
    --accent-color: #f39c12;
    --dark-bg: #2c3e50;
    --light-bg: #e8f5e9;  /* Light green background */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #1a1a1a; /* Remove grass background */
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 60px; /* Add padding to account for fixed nav */
    font-size: 1.2rem; /* Increased base font size */
    padding-top: 0; /* Remove nav-related padding */
}

#vanta-background {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), 
                url('assets/img/backgrounds/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    min-height: 80vh; /* Changed from 100vh to make it shorter */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    color: #fff;
    text-align: center;
    position: relative;
    margin-top: -60px; /* Offset the body padding */
    margin-top: 0; /* Remove nav-related padding */
}

nav {
    display: none; /* Hide by default */
    background: transparent; /* Remove background */
    backdrop-filter: none; /* Remove blur */
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
}

@media screen and (min-width: 769px) {
    nav {
        display: flex; /* Only show on desktop */
    }
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color); /* Change underline to color change */
    text-decoration: none;
}

.hero {
    padding: 4rem 1rem;
    height: 80vh; /* Changed from 100vh to match header */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding-top: 60px; /* Add padding to account for fixed nav */
    background: none;  /* Remove any background from hero since it's on header now */
}

.hero h1 {
    font-size: 3rem;
    margin: 0;
}

.hero p {
    font-size: 4rem; /* Increased from 3.5rem */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 1rem 0 0;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: transparent;
    box-shadow: none;
}

.profile-images {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.profile-images img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

section {
    margin-bottom: 2rem;
    padding: 4rem 2rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.25rem; /* Increased from 1.1rem */
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

section a {
    color: gray;
    text-decoration: none;
}

section a:hover {
    text-decoration: underline;
}

.project {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.3); /* Even more transparent */
    color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.4); /* More transparent on hover */
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    max-height: 250px; /* Increased from 200px */
    object-fit: contain; /* Maintain aspect ratio */
}

/* Specific adjustments for Spring Boot and Angular logos */
.project img[alt="Spring Boot"],
.project img[alt="Angular"] {
    max-height: 100px; /* Smaller height for these specific logos */
    padding: 10px; /* Add some padding */
}

/* Special case for Binance logo */
.project img[alt="Binance Bot"] {
    max-height: 300px; /* Even bigger for Binance */
    padding: 15px;
}

.project-info {
    max-width: 600px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2); /* More transparent */
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.project-info h3 {
    color: #609c32; /* Changed from var(--accent-color) */
    transition: color 0.3s ease;
}

.project:hover .project-info h3 {
    color: #609c32; /* Changed from var(--secondary-color) */
}

.project-info p {
    font-size: 1.25rem;
}

footer {
    background: rgba(255, 255, 255, 0.1); /* Transparent background */
    backdrop-filter: blur(10px);
    color: #ffffff; /* Keep text white for better contrast */
    text-align: center;
    padding: 1.5rem 0;
    position: relative;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

footer p {
    margin: 0;
    opacity: 0.9;
}

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

.skill-item {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 15px;
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: scale(1.05);
}

.section {
    position: relative;
    padding: 50px;
    transition: transform 0.5s ease-in-out;
}

.section:target {
    transform: scale(1.1);
    background: url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    color: #fff;
}

.experience-entry {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.company-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.experience-content {
    flex: 1;
}

.education-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.education-content {
    flex: 1;
}

.school-logo {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.hobby-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.hobby-list {
    flex: 1;
}

.hobby-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hobby-image {
    width: 200px;  /* reduced from 250px */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.thanks-cat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}

.thanks-cat.visible {
    opacity: 1;
}

.image-caption {
    font-size: 1.25rem; /* Increased from 1.1rem */
    color: #ffffff;
    font-style: italic;
}

h2 {
    font-size: 2.5rem; /* Added to make section titles bigger */
    margin-bottom: 1.5rem;
    color: #ffffff;
}

h3 {
    font-size: 1.8rem; /* Added to make sub-headings bigger */
    margin-bottom: 1rem;
    color: #ffffff;
}

.about-content {
    margin-top: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.contact-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-photo {
    width: 250px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

p, li {
    color: #ffffff;
    font-size: 1.3rem; /* Increased from base size */
    line-height: 1.8;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    body {
        padding-top: 0;
    }

    header nav {
        display: none !important; /* Force hide navigation on mobile */
    }

    /* Remove all nav-related styles for mobile */
    nav, nav ul, nav ul li, nav ul li a {
        display: none !important;
    }

    /* Fix image loading on mobile */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .project img {
        width: 100%;
        max-width: 300px;
        margin: 1rem auto;
    }

    .company-logo,
    .school-logo {
        max-width: 150px;
        margin: 0 auto 1rem;
    }

    .profile-images img {
        width: 200px;
        height: 200px;
    }

    nav {
        height: auto;
        position: relative;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .hero p {
        font-size: 2.5rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .project {
        flex-direction: column;
    }

    .project img {
        width: 100%;
        height: auto;
        margin-right: 0;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-photo {
        width: 100%;
        max-width: 250px;
        margin-top: 2rem;
    }

    .experience-entry {
        flex-direction: column;
        text-align: center;
    }

    .company-logo {
        margin-bottom: 1rem;
    }

    .hobby-content {
        flex-direction: column;
        align-items: center;
    }

    .hobby-image {
        width: 100%;
        max-width: 300px;
    }

    .thanks-cat {
        width: 100px;
    }

    .education-entry {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .school-logo {
        width: 100px;
        margin-bottom: 1rem;
        display: block;
    }

    .education-content {
        width: 100%;
        text-align: center;
    }

    .company-logo, .school-logo {
        width: 80px;
        margin-right: 15px;
        margin-bottom: 10px;
    }

    .experience-entry, .education-entry {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .experience-content, .education-content {
        width: 100%;
        margin-top: 15px;
    }
}

/* Tablet Responsiveness */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .project {
        flex-direction: column;
    }

    .project img {
        width: 100%;
        height: auto;
        margin-right: 0;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .hero p {
        font-size: 3rem;
    }
}

/* Adjust font sizes for smaller screens */
@media screen and (max-width: 480px) {
    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p, li {
        font-size: 1.1rem;
    }

    .project-info p {
        font-size: 1.1rem;
    }
}

/* Fix for very small screens */
@media screen and (max-width: 320px) {
    .hero p {
        font-size: 2rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }
}

/* Remove all nav-related styles */
nav, 
nav ul, 
nav ul li, 
nav ul li a,
.desktop-only {
    display: none;
}