@font-face {
    font-family: 'Adobe Clean';
    src: url('fonts/adobe-clean-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Adobe Clean';
    src: url('fonts/adobe-clean-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Dax';
    src: url('fonts/dax-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Dax';
    src: url('fonts/dax-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Adobe Clean', 'Dax', sans-serif;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    background-color: #1a1a2e;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
    box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.2);
}

header.scrolled {
    background-color: #0f3460;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 10px 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Press Start 2P', cursive;
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav ul li a:hover {
    color: #ff007f;
}

nav ul li.current-page a {
    color: #00bfff;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    flex-direction: column;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -46%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero p {
    font-size: 1.5rem;
    font-family: 'Press Start 2P', cursive;
    animation: fadeIn 2s ease;
    color: #ff007f;
    -webkit-text-stroke: 6px #fff;
    paint-order: stroke fill;
    text-shadow: 0px 3px 5px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    height: auto;
}

.hero img {
    object-fit: contain;
    animation: fadeIn 2s ease;
    width: 50%;
    height: auto;
}

@media (max-width: 768px) {
  .hero img {
    width: 85%;
  }
}

main.content {
    flex: 1;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

h2 {
    font-family: 'Press Start 2P', cursive;
    margin: 60px 0 45px;
    font-size: 2.5rem;
    color: #ff007f;
    text-align: center;
}

.portfolio-section p {
    font-size: 1.1rem;
    color: #ccc;
    text-align: center;
    padding-top: 18px;
}


.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    padding-top: 20px;
}

.portfolio-item {
    width: calc(33.333% - 40px);
    background: #1a1a2e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: grid;
    grid-template-rows: auto 1fr;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    background-color: #1a1a2e;
}

.portfolio-item h3 {
    margin: 0;
    padding: 15px;
    background-color: #0f3460;
    font-family: 'Adobe Clean', 'Dax', sans-serif;
    font-size: 1.2rem;
    color: #ccc;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.portfolio-item h3:hover {
    color: #ff007f;
}


footer {
    background-color: #1a1a2e;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0px -5px 7px rgba(0, 0, 0, 0.2);
}

.about-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 20px auto 0;
}

.about-image {
    position: relative;
    width: 300px; /* Adjust the size as needed */
    height: 367px; /* Adjust the size as needed */
}

.about-profile,
.about-hover {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.2s ease;
    border-style: solid;
    border-color: #ccc;
    border-radius: 0.7cap;
}

.about-hover {
    opacity: 0;
}

.about-profile:hover + .about-hover,
.about-hover:hover {
    opacity: 1;
}

.about-text {
    max-width: 600px;
    text-align: left;
    color: #ccc;
    font-size: 1.1rem;
}

.linkedin-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 50px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #ffffff;
    background-color: #0077b5;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.3s;
    text-align: center;
    align-self: center;
    box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.2);
}

.linkedin-button:hover {
    background-color: #005582;
    transform: translateY(-5px);
}

.linkedin-button:active {
    animation: bounce 0.3s;
}

@media (max-width: 768px) {
    .hero p {
        font-size: 1.2rem;
    }

    .portfolio-item {
        width: calc(100% - 40px);
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero p {
        font-size: 1rem;
    }

    nav ul li {
        margin: 5px 10px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.5s;
}

.modal-content {
    background-color: #1a1a2e;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s;
    color: #ccc; /* Modal text color */
}

.modal-content h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.4rem;
    color: #ccc;
    text-align: center;
    margin-bottom: 40px; /* Double the space */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

@keyframes slideIn {
    from { transform: translateY(-10%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}