/* ============================================= */
/* JOSH FLYNN PORTFOLIO – FINAL COMPLETE CSS   */
/* All text centered + Mobile Dev = Websites    */
/* Bubble pop-out menu + original colors       */
/* ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: clamp(16px, 2.5vw, 18px);
    line-height: 1.6;
    text-align: center; /* Centers all text by default */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(10px, 3vw, 20px);
    width: 100%;
}

/* ================== NAVBAR ================== */
.navbar {
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, #000000, #1a365d);
    color: #fff;
    padding: clamp(12px, 2.5vw, 18px) 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin: -10px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    z-index: 1002;
    width: 60px;
    height: 60px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.nav-links {
    position: fixed;
    top: 76px;
    right: 20px;
    width: clamp(200px, 35vw, 260px);
    background: linear-gradient(to bottom, #000000, #1a365d);
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.92);
    transition: all 0.35s ease;
    z-index: 999;
    pointer-events: none;
}

.nav-links li {
    padding: 14px 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    font-weight: 500;
    display: block;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #b0c4de;
}

.nav-links a.social-link {
    color: #b0c4de;
    font-weight: bold;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a.social-link:hover {
    color: #fff;
}

.nav-toggle:checked ~ .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ================== PROFILE HEADER ================== */
.profile-header {
    position: relative;
    background: #fff;
    padding-bottom: clamp(20px, 5vh, 40px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cover-image {
    height: clamp(150px, 25vh, 250px);
    overflow: hidden;
}

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

.profile-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    top: -60px;
}

.profile-img {
    width: clamp(100px, 15vw, 150px);
    height: clamp(100px, 15vw, 150px);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    object-fit: cover;
    margin: 0 auto;
}

.profile-name {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    margin: 12px 0 6px;
}

.profile-title {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    color: #1a365d;
}

.profile-tagline {
    color: #666;
    max-width: 600px;
    margin: 12px auto 0;
}

/* ================== MOBILE DEV + WEBSITES PAGE (IDENTICAL STYLE) ================== */
.mobile-dev-section,
.websites-section {
    padding: clamp(80px, 12vh, 120px) 0;
    background-color: #f5f5f5;
}

.mobile-dev-header,
.websites-header {
    margin-bottom: 60px;
}

.mobile-dev-header h2,
.websites-header h2 {
    font-size: clamp(2.2rem, 6vw, 3rem);
    color: #1a365d;
    margin-bottom: 20px;
    font-weight: 700;
}

.mobile-dev-intro,
.websites-intro {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: #555;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.dev-block {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.dev-block:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.16);
}

.dev-block .project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 4px solid #1a365d;
}

.dev-block h3 {
    font-size: 1.5rem;
    color: #1a365d;
    margin: 24px 20px 12px;
    font-weight: 600;
}

.dev-block .tech {
    color: #1a365d;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 20px 16px;
    letter-spacing: 0.8px;
}

.dev-block p {
    color: #444;
    margin: 0 20px 24px;
    flex-grow: 1;
    line-height: 1.7;
}

.project-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 0 20px 28px;
    flex-wrap: wrap;
}

.cta-button {
    background: #1a365d;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #2a4b7c;
    transform: translateY(-3px);
}

.cta-button.secondary {
    background: transparent;
    color: #1a365d;
    border: 2px solid #1a365d;
}

.cta-button.secondary:hover {
    background: #1a365d;
    color: #fff;
}

/* ================== CONTACT FORM ================== */
.contact-form {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.form-input,
textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    margin-top: 8px;
    transition: border-color 0.3s;
}

.form-input:focus,
textarea:focus {
    border-color: #1a365d;
    outline: none;
}

/* ================== BUTTONS ================== */
.cta-button {
    background: #1a365d;
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.cta-button:hover { background: #2a4b7c; }

.skill-item {
    background: #b0c4de;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.skill-item:hover { background: #2a4b7c; }

/* ================== FOOTER ================== */
.footer {
    background: linear-gradient(to top, #000000, #1a365d);
    color: #fff;
    padding: clamp(40px, 8vh, 60px) 0;
    margin-top: 100px;
}

.footer p { margin: 8px 0; opacity: 0.9; }

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .nav-links { top: 70px; right: 12px; width: clamp(180px, 45vw, 240px); }
    .project-grid { gap: 24px; padding: 0 12px; }
}

@media (max-width: 480px) {
    .nav-links { right: 8px; width: clamp(160px, 70vw, 220px); }
    .dev-block .project-img { height: 180px; }
}