.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.hero-image-container {
    width: 100%;
    max-width: 1000px; /* Limits width so it doesn't get too huge on desktop */
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.full-view-img {
    width: 100%;
    height: auto;      /* Maintains original aspect ratio */
    display: block;
    border-radius: 8px; /* Slightly rounded corners for a modern look */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
}

/* On larger screens, put text next to the photo */
@media (min-width: 768px) {
    .profile-container {
        flex-direction: row;
        text-align: left;
    }
}:root {
    --bg: #f4f6f8;
    --text: #111;
    --card: #fff;
    --accent: #2563eb;
}

body.dark {
    --bg: #0f172a;
    --text: #e5e7eb;
    --card: #1e293b;
    --accent: #38bdf8;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: 0.3s;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: var(--accent);
    color: #fff;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #111827;
}

nav a {
    color: #fff;
    padding: 12px;
    text-decoration: none;
}

section {
    margin: 20px;
    padding: 25px;
    background: var(--card);
    border-radius: 8px;
}

h2 {
    color: var(--accent);
}

.card {
    border-left: 5px solid var(--accent);
    padding: 15px;
}

.skills {
    list-style: none;
    padding: 0;
}

.skills li {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    margin: 6px;
    padding: 8px 12px;
    border-radius: 4px;
}

/* Buttons */
#themeToggle, #topBtn {
    position: fixed;
    right: 15px;
    padding: 10px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
}

#themeToggle { top: 15px; }
#topBtn { bottom: 20px; display: none; }

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 600px) {
    section {
        margin: 10px;
    }
    /* General Mobile-First Styles */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevents side-scrolling on mobile */
}

.container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* The Image Layout */
.hero-container {
    width: 100%;
    line-height: 0; /* Removes tiny gap under images */
}

.responsive-img {
    width: 100%;      /* Image fills the width of the phone */
    height: auto;     /* Keeps the face from looking stretched */
    display: block;
    object-fit: cover;
}

/* Navigation - Mobile Friendly Stack */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    padding: 15px;
    text-decoration: none;
    font-size: 14px;
}

/* Skills List - Grid for Mobile */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
}

.skills-grid li {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border-left: 4px solid #007bff;
}

/* Desktop Adjustment */
@media (min-width: 768px) {
    .responsive-img {
        max-height: 500px; /* Prevents image from being too tall on PC */
        object-position: center 20%; /* Focuses on the face if cropped */
    }
}
}









