/* Phone screen styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Oswald", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: #333;
    line-height: 1.6;
    overflow-y: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.section-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    background: rgba(0,0,0,.4);
    padding: 0.5rem 0.8rem;
    backdrop-filter: blur(8px);
}

.section-nav a {
    color: #fff;
    mix-blend-mode: difference;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.section-nav a:hover,
.section-nav a:focus {
    background: rgba(255,255,255,.25);
    transform: translateY(-1px);
}

.snap-container {
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: auto;
    scroll-padding-top: 70px;
}

.page-section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.7s ease, transform 0.7s ease;
    opacity: 0.85;
    transform: translateY(20px);
}

.page-section.active {
    opacity: 1;
    transform: translateY(0);
}

.page-section.footer {
    min-height: 60vh;
    padding: 30px 20px;
}

/* Header */
header {
    display: none;
    /* position: fixed;
    width: 100%;
    background: #333;
    padding: 10px 0;
    z-index: 1000; */
}

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

.logo {
    font-size: 24px;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    padding: 5px 10px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: #555;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    height:100vh;
    padding: 25px;
    background: url('MyPhoto.JPG') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    text-align: center;
}

.hero-img {
    background: none;
}

.hero-contents {
    background: #ffffff70;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

.hero .btn {
    padding: 10px 20px;
    background: #2e86c1;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

.hero .btn:hover {
    background: #3498db;
}

/* About Section */
.about {
    padding: 50px 20px;
    text-align: center;
    background: #f9f9f9;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* Portfolio Section */
.portfolio {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

.portfolio h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.portfolio-item {
    background: #2e86c1;
    color: white;
    padding: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.portfolio-item:hover {
    user-select: none;
    background: #3498db;
    padding: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.portfolio-contents {
    display: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.portfolio-item {
    background: linear-gradient(135deg, #2e86c1, #3498db);
    color: white;
    border: 2px solid transparent;
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #2980b9, #4aa3de);
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.project-modal.visible {
    display: flex;
}

.project-modal-content {
    width: min(1000px, 94vw);
    max-height: min(90vh, 860px);
    overflow-y: auto;
    background: #fff;
    color: #202020;
    border-radius: 1rem;
    padding: 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0,0,0,0.4);
}

.project-modal-body {
    display: grid;
    gap: 15px;
}

.project-modal-body h3 {
    margin-top: 0;
    color: #2e86c1;
}

.project-modal-body .project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.project-detail {
    display: none;
}

.sm2-img {
    width: 100%;
}

.winston-img {
    width: 100%;
}

.shop-img {
    width: 100%;
}

.my-img {
    width: 100%;
}

.strength-img {
    width: 100%
}

.manager-img {
    width: 100%
}

.port-img {
    width: 100%
}

.keylog-img {
    width: 100%
}

.integrity-img {
    width: 100%
}

.rad-img {
    width: 100%
}

/* Contact Section */
.contact {
    padding: 50px 20px;
    text-align: center;
    background: #f9f9f9;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input, form textarea, form button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    background: #333;
    color: white;
    cursor: pointer;
}

form button:hover {
    background: #555;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

footer .social-links a {
    color: white;
    margin-left: 10px;
}