/* ====== GLOBAL STYLES ====== */
body {
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    padding-top: 70px;
    /* Adjust this value based on your navbar height */
    background: #0a192f;
    color: #ccd6f6;
}

html {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensure the container fills the viewport height */
}

.content {
    flex: 1;
    /* This makes the content area grow to fill the space */
    padding-top: 70px;
}

/* ====== NAVBAR ====== */
/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.9);
    /* Transparent effect */
    backdrop-filter: blur(10px);
    /* Adds blur */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    transition: background 0.3s ease-in-out;
}

/* Navbar logo with image */
.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #64ffda;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #ccd6f6;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
}

/* Hover & Active Effects */
.nav-links a:hover {
    color: #64ffda;
}

.nav-links a::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background: #64ffda;
    transition: width 0.3s ease-in-out;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #64ffda;
    /* highlight color */
    border-bottom: 2px solid #64ffda;
    /* underline to indicate active state */
}

/* Navbar Toggle Button (Mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #64ffda;
    cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(10, 25, 47, 0.95);
        width: 200px;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}

/* ====== HERO SECTION ====== */
.hero {
    text-align: center;
    padding: 150px 0;
}

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

.hero .highlight {
    color: #64ffda;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #64ffda;
    color: #64ffda;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    background: #64ffda;
    color: #0a192f;
}

/* ====== PROJECTS ====== */
.projects {
    padding: 50px 0;
}

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

.project-card {
    background: #112240;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.project-card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

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

/* ====== ABOUT ====== */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Left column for image and social links */
.about-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-pic {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.social-links-container {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* Right column for text and resume button */
.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-text {
    text-align: left;
}

.resume-download {
    margin-top: 20px;
    text-align: left;
}

/* ====== SECTION ANIMATIONS ====== */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

/* ====== SOCIAL LINKS ====== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-links a {
    font-size: 30px;
    color: #64ffda;
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
    color: #0077b5;
    transform: scale(1.1);
}

/* ====== FOOTER ====== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(34, 34, 34, 0.8);
    /* Dark background with 80% opacity */
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 1000;
    /* Ensures the footer appears above other content */
}