/* Import 3D Effects */
@import url('three-effects.css');

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide Scrollbar */
::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

:root {
    --navy: #213448;
    --slate: #547792;
    --light-gray: #94B4C1;
    --white: #EAE0CF;
    --neon-green: #547792;
    --dark-navy: #1a2a3a;
    --navbar-color: rgba(1, 26, 49, 0.767);
    /* --navbar-color: rgba(0, 23, 45, 0.6); */
    --boxr: 84;
    --boxg: 119;
    --boxb: 146;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.home-page {
    /* background-color: var(--navbar-color);
    background-image: url('../images/background.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed; 
    background-size: cover;
    color: var(--navy); */
    background-color: #f7f2e9;
    color: var(--navy);
    line-height: 1.6;
    opacity: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.other-page {
    background-color: #f7f2e9;
    color: var(--navy) !important;
    line-height: 1.6;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--neon-green);
    transition: all 0.3s ease;
}

/* Dark text for other pages */
body.other-page h1,
body.other-page h2,
body.other-page h3,
body.other-page h4,
body.other-page h5,
body.other-page h6,
body.other-page p,
body.other-page li,
body.other-page .text-content,
/* Skills section */
body.other-page .skills-category h3,
body.other-page .skills-category p,
body.other-page .skill-item,
body.other-page .skill-item p,
/* Portfolio section */
body.other-page .project-card,
body.other-page .project-title,
body.other-page .project-description,
body.other-page .project-tech,
body.other-page .project-date,
/* About section */
body.other-page .about-content,
body.other-page .project-links a,
body.other-page .about-text,
body.other-page .about-details,
body.other-page .about-details p,
/* General content */
body.other-page .content-section,
body.other-page .section-title,
body.other-page .section-subtitle {
    color: #333333 !important;
}

/* Adjust link colors for better contrast on light background */
body.other-page a:not(.btn) {
    color: #1a5fb4;
    /* A nice blue that works well on light backgrounds */
}

body.other-page a:hover:not(.btn) {
    color: #0d4a8a;
    /* Slightly darker blue on hover */
    text-decoration: underline;
}

a:hover {
    color: var(--navy);
}

p {
    color: var(--navy);
    font-size: 1.2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--navbar-color);
    border: 1px solid rgba(var(--boxr), var(--boxg), var(--boxb), 0.2);
    border-radius: 8px;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--neon-green);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    /* Limit width for better carousel appearance */
}

.main-image {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.main-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.main-image img.hidden {
    display: none;
    opacity: 0;
}

.prev-btn {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: none !important;
    z-index: 2;
}

.next-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: none !important;
    z-index: 2;
}

.carousel-btn {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
width: 40px;
height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 20px;
    opacity: 0.8;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: var(--neon-green);
    opacity: 1;
    border-color: transparent;
}

.carousel-btn:focus {
    outline: none;
    /* box-shadow: 0 0 0 3px rgba(0, 255, 200, 0.5); */
    opacity: 1;
}

.carousel-btn:active {
    transform: none !important;
}

.carousel-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    transform: none !important;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.carousel-btn i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.carousel-btn:hover i {
    transform: none !important;
}

.carousel-indicators {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 2;
    padding: 15px 0 5px;
    margin: 0 auto;
    width: 100%;
    clear: both;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.carousel-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--neon-green);
    transform: scale(0);
    transition: transform 0.2s ease;
    border-radius: 50%;
}

.carousel-indicator.active {
    background: var(--neon-green);
    border-color: var(--neon-green);
    transform: scale(1.2);
}

.carousel-indicator.active::after {
    transform: scale(1);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.carousel-indicator:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--neon-green);
}

.thumbnail-container {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--neon-green);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-details h2 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-family: 'Castoro', serif;
    font-weight: 700;
}

.project-details p {
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
}

.project-meta {
    margin-bottom: 1rem;
    color: var(--slate);
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project-details .project-tags {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-details .tag {
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.1);
    color: var(--neon-green);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-details .project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-details .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.project-details .btn-link:hover {
    background: rgba(54, 255, 84, 0.15);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (min-width: 900px) {
    .modal-body {
        flex-direction: row;
    }

    .modal-gallery {
        flex: 1;
        max-width: 60%;
    }

    .project-details {
        flex: 1;
        max-width: 40%;
        padding-left: 2rem;
    }
}

/* Modal Dark Theme Overrides */
.modal .project-details h2,
.modal .project-details p,
.modal .project-details .project-meta {
    color: var(--white) !important;
}

.modal .project-details .project-description {
    color: #cbd5e1 !important;
}

.modal .project-details .tag {
    background: rgba(84, 119, 146, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar,
.navbar a,
.navbar .logo,
.navbar .nav-links a,
.navbar .nav-links li a {
    color: var(--white) !important;
}

.navbar .nav-links a:hover {
    color: var(--slate) !important;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}
.logo-link:hover{
    text-decoration: none !important;
    color: inherit !important;
}

.logo {
    font-family: 'Castoro', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--neon-green);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--slate) !important;
    text-decoration: none !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--navy);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-dropdown:hover>a::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--neon-green);
    text-decoration: none !important;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover>a {
    color: var(--navy);
    text-decoration: none !important;
}

.nav-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background-color: var(--navy);
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.nav-dropdown .dropdown-content a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    position: relative;
}

.nav-dropdown .dropdown-content a::after {
    display: none;
}

.nav-dropdown .dropdown-content a:hover {
    background-color: var(--white);
}

.nav-dropdown .dropdown-content a:first-child {
    border-radius: 4px 4px 0 0;
}

.nav-dropdown .dropdown-content a:last-child {
    border-radius: 0 0 4px 4px;
}

/* Portfolio Section */
.portfolio-section {
    padding: 4rem 0;
}

.section-subtitle {
    text-align: center;
    color: var(--slate);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Portfolio Buttons */
.portfolio-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}

.portfolio-btn {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #EAE0CF;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid var(--navy);
    position: relative;
    overflow: hidden;
}

.portfolio-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-green) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-btn:hover::before {
    opacity: 1;
}

.portfolio-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--neon-green);
}

.btn-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.portfolio-btn i {
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 1rem;
    display: block;
}

.portfolio-btn:hover i {
    color: var(--navy);
}

.portfolio-btn h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.portfolio-btn:hover h3 {
    color: var(--navy);
}

.portfolio-btn p {
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.5;
}

.portfolio-btn:hover p {
    color: var(--navy);
}

/* Responsive Portfolio Buttons */
@media (max-width: 768px) {
    .portfolio-buttons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .portfolio-btn {
        padding: 1.5rem;
    }

    .portfolio-btn i {
        font-size: 2.5rem;
    }

    .portfolio-btn h3 {
        font-size: 1.3rem;
    }
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: #fcf9f2;
    border-radius: 12px;
    border: 1px solid rgba(33, 52, 72, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(84, 119, 146, 0.3);
}

.project-item:last-child {
    margin-bottom: 0;
}

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

.project-image {
    flex: 0 0 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: translateY(-5px);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.project-date {
    color: var(--slate);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.project-description {
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.awards-list {
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    font-size: 1.1rem;
}

.awards-list li {
    margin-bottom: 0.5rem;
}

.project-tech {
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-block;
    background-color: rgba(33, 52, 72, 0.1);
    color: var(--navy);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--navy);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-link:hover {
    background: #547792;
    color: white;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-link::after {
    display: none; /* Remove underline effect */
}

/* Responsive Portfolio */
@media (max-width: 768px) {
    .portfolio-section {
        padding: 2rem 0;
    }

    .project-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .project-image {
        flex: 1;
        max-width: 100%;
    }

    .project-image img {
        height: 250px;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-description {
        font-size: 1rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

main {
    padding-top: 80px;
    padding-bottom: 6rem;
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Home Page */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(6rem, 5vw, 8rem);
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-family: 'Castoro', serif;
    font-weight: 900;
    text-align: center;
}

.hero h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--neon-green);
    margin-bottom: 2rem;
    font-family: 'Castoro', serif;
    text-align: center;
}

.hero p {
    max-width: 600px;
    color: var(--slate);
    margin-bottom: 3rem;
    line-height: 2 rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    margin: 0rem auto 0;
    align-items: left;
    justify-content: left;
    width: 100%;
    max-width: 160px;
    /* gap: 1rem; */
}

.social-links a {
    color: var(--navy);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.social-links img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--neon-green);
    transform: translateY(-3px);
}

.social-links a:hover img {
    filter: brightness(0) invert(78%) sepia(90%) saturate(1000%) hue-rotate(50deg) brightness(110%) contrast(100%);
}

/* About Page */
.about-section {
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    /* overflow: hidden; */
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 4rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.about-image {
    flex: 0 0 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: transform 0.3s ease;
    position: relative;
    margin-left: 0;
}

.about-image:hover {
    transform: translateY(-5px);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-text {
    flex: 1;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.interests-title {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0rem;
    margin-top: 0rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.interest-item {
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.05);
    border: 1px solid rgba(var(--boxr), var(--boxg), var(--boxb), 0.1);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.interest-item:hover {
    transform: translateY(-3px);
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.1);
}

.interest-item i {
    color: var(--neon-green);
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.interest-item span {
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .interests-grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 2.5rem;
    color: var(--navy);
    margin: 3rem 0 2rem 0;
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -25px;
    width: 70px;
    height: 3px;
    background-color: var(--neon-green);
    margin-bottom: 2rem;
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Simple List Styling */
.simple-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 1.2rem;
    line-height: 1.8;
}

.simple-list li {
    margin-bottom: 0.3rem;
}

.simple-list a {
    color: var(--slate);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1.1rem;
}

.simple-list a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.about-text p {
    margin: 0;
    color: var(--slate);
    font-size: 1.2rem;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
    position: relative;
    display: inline-block;
}



@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image {
        margin-bottom: 2rem;
    }


}

/* Skills Page */
.skills-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-title {
    margin-bottom: 2rem;
}

.skills-category {
    margin: 2rem 0;
    position: relative;
    background: transparent;
    padding: 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    color: #333333 !important;
}

.skills-category h3 {
    font-size: 1.5rem;
    color: #333333;
    margin: 0 0 1.5rem 0;
    font-family: 'Castoro', serif;
    font-weight: 600;
    position: relative;
    display: block;
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.frameworks-tools-container h3 {
    font-size: 1.5rem;
    color: #333333;
    margin: 0 0 1.5rem 0;
    font-family: 'Castoro', serif;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: left;
}



.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    color: #333333 !important;
}

.skill-item:hover {
    transform: translateY(-3px);
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.05);
    border-color: rgba(var(--boxr), var(--boxg), var(--boxb), 0.1);
}

.skill-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-name {
    color: #333333 !important;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.frameworks-tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    text-align: left;
    margin-top: 1rem;
    align-content: center;
}

.frameworks-section h3,
.tools-section h3 {
    font-family: 'Castoro', serif;
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.frameworks-section,
.tools-section {
    background: transparent;
    padding: 0;
    color: #333333 !important;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .skills-category {
        padding: 1.5rem 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }

    .skill-item {
        padding: 0.75rem;
    }

    .skill-item {
        padding: 1rem 0.5rem;
    }

    .skill-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.75rem;
    }

    .skill-name {
        font-size: 0.8rem;
    }

    .frameworks-tools-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Portfolio Page */
/* Portfolio Section */
.portfolio-section {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-section p {
    font-size: 1.2rem;
}

.portfolio-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    text-align: center;
    /* font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace; */
    font-family: 'Castoro', serif;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-gray);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(var(--boxr), var(--boxg), var(--boxb), 0.2);
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.03);
    color: var(--navy);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover {
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.1);
    border-color: var(--neon-green);
}

.filter-btn.active {
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
    font-weight: 500;
}

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

.project-card {
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.03);
    border: 1px solid rgba(var(--boxr), var(--boxg), var(--boxb), 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}


.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-date {
    color: var(--neon-green);
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 0.9rem;

}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.25rem;
    }

    .project-card h3 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    color: #ccd6f6;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.project-date {
    color: var(--neon-green);
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.portfolio-section .projects-grid .project-card .project-description p {
    color: var(--light-gray) !important;
    margin-bottom: 1.5rem !important;
    font-size: 5rem !important;
    /* line-height: 1.6 !important; */
}

p.project-description {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    color: var(--light-gray) !important;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.tag {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--neon-green);
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(var(--boxr), var(--boxg), var(--boxb), 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.2);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    justify-content: left;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.1);
    transform: translateY(-2px);
}

.btn-link i,
.btn-link img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

/* Make Devpost logo in portfolio neon green */
.portfolio-section .btn-link img[alt="Devpost"] {
    filter: invert(78%) sepia(90%) saturate(1000%) hue-rotate(50deg) brightness(110%) contrast(100%);
}

.btn-link i {
    font-size: 0.9em;
}

/* Contact Page */
.contact-section {
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.contact-content {
    margin-top: 8rem;
}

.contact-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
    position: relative;
    display: inline-block;
}



.contact-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--navy);
}

.contact-section p {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    max-width: 1200px;
    font-size: 1.2rem;
    align-items: center;
    text-align: center;
}

.contact-category {
    margin-bottom: 2rem;
    position: relative;
    background: rgba(var(--boxr), var(--boxg), 123, 0.03);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid rgba(var(--boxr), var(--boxg), 123, 0.1);
}

.contact-category h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 1.25rem;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.contact-category h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 2px;
    background-color: var(--neon-green);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
    padding: 1rem 1.5rem;
    min-width: 100px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--navy);
}

.contact-item:hover {
    transform: translateY(-3px);
    background: rgba(var(--boxr), var(--boxg), 123, 0.05);
    border-color: rgba(var(--boxr), var(--boxg), 123, 0.1);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.contact-icon img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.contact-name {
    font-size: 0.85rem;
    color: var(--navy);
    text-align: center;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .about-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin-bottom: 3rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin-bottom: 2rem;
    }
}

/* Footer */
.footer {
    background-color: #EAE0CF;
    color: var(--navy);
    padding: 2rem 0 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(33, 52, 72, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.footer-bio {
    margin-bottom: 0.2rem;
}

.footer-name {
    font-family: 'Castoro', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--slate);
    margin: 0;
    max-width: 300px;
}

.footer-category {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 0;
    margin-top: 0;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--navy);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: -12px;
}

.social-link:hover {
    color: var(--neon-green);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.6rem;
    padding: 0rem !important;
    margin: 0 !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--slate);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--navy);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(33, 52, 72, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    /* color: var(--slate); */
    color: var(--navy);
    margin: 0;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-description {
        max-width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.highlight {
    color: var(--neon-green);
}

.btn {
    display: inline-block;
    background: transparent;
    color: var(--neon-green);
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--neon-green);
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 1rem;
}

.btn:hover {
    background: rgba(var(--boxr), var(--boxg), var(--boxb), 0.1);
    transform: translateY(-2px);
}

.section {
    padding: 6rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 1.2rem;
    line-height: 1.8;
}

.skills-list li {
    /* margin-bottom: 0.2rem; */
    color: var(--slate);
}

.skills-list strong {
    color: #1a4b8c;
    /* A bluer shade of navy */
    font-weight: 600;
}

/* .skills-list li:hover {
    color: var(--navy);
} */
/* Enhanced Portfolio Page Styles */

.portfolio-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 5rem;
}

.portfolio-category-card {
    position: relative;
    background: #EAE0CF;
    border-radius: 16px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--navy);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(33, 52, 72, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.portfolio-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 52, 72, 0.03) 0%, rgba(33, 52, 72, 0) 100%);
    z-index: 1;
}

.portfolio-category-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-green);
    box-shadow: 0 15px 30px rgba(33, 52, 72, 0.15);
}

.portfolio-category-card .card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portfolio-category-card .card-icon {
    font-size: 3.5rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.portfolio-category-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--neon-green);
}

.portfolio-category-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy);
}

.portfolio-category-card p {
    font-size: 1.1rem;
    color: var(--slate);
    margin-bottom: 2rem;
    flex: 1;
}

.portfolio-category-card .card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: auto;
    transition: gap 0.3s ease;
}

.portfolio-category-card:hover .card-link {
    color: var(--neon-green);
    gap: 1rem;
}

/* Featured Projects Section */
.featured-section {
    margin-top: 6rem;
}

.featured-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.project-item.featured {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(33, 52, 72, 0.05);
    transition: transform 0.3s ease;
}

.project-item.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(84, 119, 146, 0.3);
}

.project-image .category-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(33, 52, 72, 0.9);
    color: var(--neon-green);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .portfolio-category-card {
        padding: 2rem;
        min-height: auto;
    }

    .portfolio-category-card h2 {
        font-size: 1.5rem;
    }
}

/* Contact Page Redesign */

.contact-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(33, 52, 72, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--navy);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.contact-card:hover::before {
    transform: scaleX(1);
    background: var(--neon-green);
}

.contact-card .card-icon {
    width: 80px;
    height: 80px;
    background: rgba(33, 52, 72, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--navy);
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    background: var(--neon-green);
    color: white;
    transform: rotate(10deg);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.contact-card p {
    color: var(--slate);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.contact-card .card-action {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.contact-card:hover .card-action {
    opacity: 1;
    color: var(--neon-green);
    gap: 0.8rem;
}