/* ===== Base Styles ===== */
:root {
    --primary-color: #2a3a5d;
    /* Deep navy blue - more professional than your current */
    --secondary-color: #f8f4e9;
    /* Warm off-white - better contrast */
    --accent-color: #00c8ff;
    /* Bright electric blue - pops more than teal */
    --highlight-color: #ff6b6b;
    /* Coral red - more vibrant than peach */
    --text-shadow: 2px 2px 4px rgba(5, 5, 5, 0.7);
    /* Slightly transparent */
    --box-shadow: rgba(0, 0, 0, 0.3) 0px 20px 40px -10px, rgba(0, 0, 0, 0.2) 0px 15px 30px -15px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f0f7ff;
    /* Very light sky blue - softer than current */
}

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

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

a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* Mobile styles come first (default) */
.actual-screen {
    width: 100%;
    transition: margin-left 0.3s ease;
}

/* Desktop styles come after in media queries */
@media (min-width: 768px) {
    .actual-screen {
        width: calc(100% - 250px);
        margin-left: 250px;
    }
}

/* ===== Navigation ===== */
nav {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 1rem;
}

.pfp {
    text-align: center;
}

.nav-name {
    color: var(--highlight-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: none;
    flex-direction: column;
}

nav ul.active {
    display: flex;
}

nav ul li {
    margin: 0.5rem 0;
}

nav ul li a {
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 4px;
}

nav ul li a.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.socials {
    display: none;
    justify-content: center;
    padding: 1rem 0;
    gap: 1rem;
}

.socials a {
    font-size: 1.5rem;
}

/* Desktop Navigation */
@media (min-width: 768px) {
    nav {
        width: 250px;
        height: 100vh;
        padding: 2rem 0;
        align-items: flex-start;
    }

    .navbar {
        height: 100%;
        padding: 0 1.5rem;
    }

    nav ul {
        display: flex;
        margin: 2rem 0;
    }

    .menu-toggle {
        display: none;
    }

    .socials {
        display: flex;
        margin-top: auto;
    }
}

/* ===== Hero Section ===== */
.main-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url(https://i.postimg.cc/g0PD8SJ6/Screenshot-2025-06-13-130815.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 100vh;
    padding: 2rem;
}

.title {
    background-color: rgba(44, 57, 84, 0.9);
    text-shadow: var(--text-shadow);
    padding: 2rem;
    border-radius: 10px;
    color: white;
    max-width: 800px;
    width: 100%;
}

.title h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.title p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

/* ===== Content Sections ===== */
.section1,
.section2 {
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
}

.titles {
    background-color: rgba(44, 57, 84, 0.9);
    text-shadow: var(--text-shadow);
    padding: 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: rgba(0, 0, 0, 0.7) 0px 10px 20px, rgba(0, 0, 0, 0.6) 0px 6px 6px;
    margin-bottom: 3rem;
    display: inline-block;
}

.bio {
    background-color: rgba(44, 57, 84, 0.8);
    text-shadow: var(--text-shadow);
    padding: 2rem;
    border-radius: 5px;
    color: white;
    margin: 0 auto 3rem;
    max-width: 800px;
    box-shadow: var(--box-shadow);
}

.bio p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

strong {
    color: white;
    font-weight: 600;
}

/* ===== Portfolio Section ===== */
.portfolio-bin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project1 {
    background-color: rgba(44, 57, 84, 0.8);
    text-shadow: var(--text-shadow);
    padding: 1.5rem;
    border-radius: 5px;
    color: white;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, background-color 0.3s ease;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project1:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.project1 img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* ===== Contact Section ===== */
.contact-box {
    background-color: rgba(44, 57, 84, 0.7);
    text-shadow: var(--text-shadow);
    padding: 2rem;
    border-radius: 5px;
    color: white;
    margin: 0 auto;
    max-width: 800px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.contact-info {
    padding: 1rem 0;
    font-size: 1.2rem;
}

.contact-info a {
    display: inline-block;
    margin-top: 0.5rem;
    text-decoration: underline;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 767px) {

    /* Adjusts bio and contact boxes for mobile */
    .bio,
    .contact-box {
        margin: 0 1rem 2rem;
        /* 0 top, 1rem left/right, 2rem bottom margin */
        padding: 1.5rem;
        /* Adds internal spacing */
    }

    /* Changes portfolio layout to single column */
    .portfolio-bin {
        grid-template-columns: 1fr;
        /* Single column grid */
        padding: 0 1rem;
        /* Adds side padding */
    }

    /* Makes project take full width */
    .project1 {
        width: 100%;
    }
}

@media (prefers-reduced-motion) {

    /* Removes all animations/transitions */
    * {
        transition: none !important;
        /* Disables CSS transitions */
    }
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}