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

:root {
    --accentcolor: #FF6B6B;        /* Vibrant coral accent */
    --primary: #1E2A38;            /* Dark blue-gray for headers/footer */
    --secondary: #324A5F;          /* Slightly lighter background for sections */
    --textcolor: #F4F4F9;          /* Off-white text for dark backgrounds */
    --pagebkg: #F8F9FA;            /* Soft light gray background */
    --cardbkg: #FFFFFF;             /* White for project cards */
    --imgborder: #FF6B6B;          /* Accent border for profile picture */
}

/* ================================
   BODY
   ================================ */
body {
    min-height: 100vh;
    background-color: var(--pagebkg);
    color: #333;                     /* Dark gray text for readability */
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
}

/* ================================
   HEADER
   ================================ */
header {
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--textcolor);
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--accentcolor);
    z-index: 100;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Hero header for full-screen pages */
header.hero {
    height: 60vh; /* 100vh for full screen if desired */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

/* ================================
   PROFILE SECTION
   ================================ */
.profile {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--imgborder);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.profile img:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px var(--accentcolor);
}

.profile h3 {
    margin-top: 20px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.profile p {
    margin-top: 10px;
    font-size: 1.1rem;
    max-width: 450px;
    color: #555;
}

/* ================================
   MAIN CONTENT / PROJECTS
   ================================ */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 90%;
    max-width: 1200px;
    margin: 50px 0;
    min-height: calc(100vh - 150px);
    align-items: stretch;
}

.project-card {
    background-color: var(--cardbkg);
    width: 40%;
    box-sizing: border-box;
    border-radius: 20px;
    margin: 10px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

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

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-bottom: 3px solid var(--accentcolor);
}

.project-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.project-card p {
    color: #555;
    margin-bottom: 15px;
}

.project-card a {
    color: var(--accentcolor);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.project-card a:hover {
    color: var(--primary);
    transform: scale(1.05);
    text-decoration: underline;
}

/* ================================
   FOOTER
   ================================ */
footer {
    width: 100%;
    padding: 20px;
    background-color: var(--primary);
    color: var(--textcolor);
    text-align: center;
    margin-top: auto;
    border-top: 3px solid var(--accentcolor);
}

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

footer a:hover {
    color: #FFFFFF;
}

/* ================================
   SOCIAL LINKS SIDEBAR
   ================================ */
._social-links {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary); /* matches nav overlay */
    border-radius: 8px 0 0 8px;
    padding: 15px;
    box-shadow: -4px 0 10px rgba(0,0,0,0.15);
    z-index: 100;
}

._links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

._social-link a {
    color: var(--textcolor);
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}

._social-link a:hover {
    color: var(--accentcolor);
}

/* ================================
   HAMBURGER MENU NAV
   ================================ */
#active { display: none; }

.menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    z-index: 102;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.menu-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.menu-btn span,
.menu-btn:before,
.menu-btn:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Hamburger default lines */
.menu-btn span { top: 50%; transform: translateY(-50%); }
.menu-btn:before { top: 14px; }
.menu-btn:after { top: calc(100% - 14px - 3px); }

/* Hamburger checked → X */
#active:checked + .menu-btn span { opacity: 0; }
#active:checked + .menu-btn:before { top: 50%; transform: translateY(-50%) rotate(45deg); }
#active:checked + .menu-btn:after { top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* Overlay */
.wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: right 0.5s ease-in-out;
    z-index: 101;
    display: flex;
    justify-content: center;
    align-items: center;
}

#active:checked ~ .wrapper { right: 0; }

.wrapper ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding: 0;
}

.wrapper ul li a {
    text-decoration: none;
    outline: none;
}

.wrapper ul li a h2 {
    font-size: 3rem;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.wrapper ul li a:visited h2 { color: white; }
.wrapper ul li a:focus h2 { outline: none; }

.wrapper ul li a h2:hover {
    transform: scale(1.1);
    color: var(--accentcolor);
}

/* ================================
   MEDIA QUERIES
   ================================ */
@media (max-width: 1024px) {
    header h1 { font-size: 1.6rem; }
    .profile img { width: 150px; height: 150px; }
    .profile h3 { font-size: 1.5rem; }
    .project-card { padding: 20px; }
}

@media (max-width: 768px) {
    .main-content { grid-template-columns: 1fr; }
    .profile img { width: 140px; height: 140px; }
    .profile p { max-width: 90%; }
    .menu-btn { top: 15px; right: 15px; width: 40px; height: 40px; }
    .wrapper ul li a h2 { font-size: 2.5rem; }
    ._social-links { padding: 5px; }
    ._social-link a { font-size: 0.9rem; }
}

/* ================================
   NAV MENU FONT FOR VERY SMALL SCREENS
   ================================ */
@media (max-width: 400px) {
    .wrapper ul li a h2 {
        font-size: 2rem;  /* smaller text for tiny screens */
    }
}
