@font-face {
    font-family: "Merriweather";
    src: url("./fonts/Merriweather-Regular.ttf");
}

@font-face {
    font-family: "Sintony";
    src: url("./fonts/Sintony-Regular.ttf");
}

html {
    scroll-behavior: smooth;
}

body, html {
    background-color: #1a1a1a;
    font-family: 'Sintony', sans-serif;
    font-size: 12px;
    width: 100%;
    margin: 0;
}

a {
    color: #fff;
    text-decoration: none;
}

/* ---- Fixed Background ---- */

.bg-img {
    background-image: url("./images/hero-image.jpg");
    width: 100%;
    background-color: #cccccc;
    height: 100vh;
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover;
    position: fixed;
    top: 0;
    z-index: 0;
}

/* ---- Navigation ---- */

.nav-bar {
    font-size: 14px;
    padding: 5px 0;
    background-color: #163150;
    width: 90%;
    position: fixed;
    border: black solid 1px;
    text-align: center;
    margin-top: 20px;
    left: 50%;
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 20;
    -webkit-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);
    -moz-box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);
    box-shadow: 7px 9px 10px -5px rgba(0,0,0,0.12);
}

.nav-bar ul li {
    display: inline;
    list-style-type: none;
    margin-left: 2%;
    margin-right: 2%;
}

.nav-bar ul {
    width: 100%;
    padding: 0;
}

.nav-drop {
    overflow: hidden;
    background-color: #163150;
    position: fixed;
    display: none;
    width: 100%;
    z-index: 20;
}

.nav-drop #bar {
    position: relative;
}

.nav-drop #bar #logo {
    float: left;
    position: relative;
    padding: 14px 16px;
}

.nav-drop #links {
    display: none;
    position: relative;
    margin-top: 50px;
}

.nav-drop #links .link {
    padding: 14px 16px;
    text-align: center;
}

.nav-drop a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    display: block;
}

.nav-drop a.icon {
    background: black;
    padding: 14px 16px;
    display: block;
    position: relative;
    float: right;
}

.nav-drop a:hover {
    background-color: #ddd;
    color: black;
}

.active {
    background-color: #4CAF50;
    color: white;
}

/* ---- Button ---- */

.fill {
    position: relative;
    color: #16c02d;
    border: 1px solid #16c02d;
    border-radius: 5px;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    overflow: hidden;
    background: none;
    z-index: 1;
    text-transform: uppercase;
    outline: 0;
    transition: 0.08s ease-in;
    -o-transition: 0.08s ease-in;
    -ms-transition: 0.08s ease-in;
    -moz-transition: 0.08s ease-in;
    -webkit-transition: 0.08s ease-in;
}

.fill:hover {
    color: white;
}

.fill:before {
    content: "";
    position: absolute;
    background: #16c02d;
    bottom: 0;
    left: 0;
    right: 0;
    top: 100%;
    z-index: -1;
    transition: 0.09s ease-in;
    -webkit-transition: top 0.09s ease-in;
}

.fill:hover:before {
    top: 0;
}

/* ---- Hero ---- */

#hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-text {
    text-align: center;
    width: 60%;
    position: relative;
    z-index: 2;
}

.hero-greeting {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 8px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 64px;
    font-family: 'Merriweather', serif;
    font-weight: bold;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.15;
}

.hero-role {
    font-size: 22px;
    color: #16c02d;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
}

.hero-stack {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 36px 0;
    letter-spacing: 0.5px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    transition: color 0.15s;
}

.hero-social a:hover {
    color: #16c02d;
}

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
    animation: bounce 2s infinite;
    transition: color 0.15s;
}

.scroll-indicator:hover {
    color: #fff;
}

@keyframes bounce {
    0%, 60%, 100% { transform: translateX(-50%) translateY(0); }
    30%            { transform: translateX(-50%) translateY(8px); }
}

/* ---- Page Sections ---- */

.page-section {
    padding: 50px 0;
    position: relative;
}

.section-title {
    font-size: 40px;
    font-family: 'Merriweather', serif;
    color: #fff;
    text-align: center;
    margin: 0 0 40px 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.section-subtitle {
    color: #fff;
    text-align: center;
    font-size: 16px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* ---- About ---- */

.about-card {
    background: rgba(22, 49, 80, 0.88);
    border: 3px double rgb(255, 255, 255);
    border-radius: 15px;
    margin: 0 auto;
    padding: 40px 50px;
    width: 55%;
    color: #fff;
    font-size: 16px;
    line-height: 35px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

/* ---- Skills & Projects Cards ---- */

.services {
    position: relative;
    text-align: center;
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.services > div {
    background: rgba(64, 64, 64, 0.85);
    border: 3px double rgb(255, 255, 255);
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}

.services > div h1 {
    color: #fff;
    margin-top: 20px;
    font-family: 'Merriweather', serif;
    font-size: 24px;
    font-weight: bold;
}

.services > div p {
    font-size: 14px;
    color: #fff;
    margin: 20px 10px;
}

.skill-icon {
    font-size: 64px !important;
    color: #16c02d;
    margin-top: 10px;
    display: block;
}

.project-link {
    display: inline-block;
    margin-top: 10px;
}

.skill-tags {
    margin: 14px 4px 4px;
    text-align: center;
    line-height: 2.2;
}

.tag {
    display: inline-block;
    background: rgba(22, 49, 80, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    margin: 2px;
    font-size: 12px;
    color: #fff;
    font-family: 'Sintony', sans-serif;
}

/* ---- Gallery (Creative Side) ---- */

.gallery {
    position: relative;
    width: 70%;
    margin: 0 auto;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
    gap: 8px;
}

.gallery-col {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-col img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: block;
    transition: transform 0.2s, filter 0.2s, border-color 0.2s;
    filter: grayscale(60%);
}

.gallery-col img:hover {
    transform: scale(1.03);
    filter: grayscale(0);
    border-color: #16c02d;
    z-index: 10;
}

/* ---- Hobbies ---- */

.hobbies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 80%;
    margin: 0 auto;
}

.hobby-item {
    background: rgba(22, 49, 80, 0.88);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 28px 20px 20px;
    text-align: center;
    min-width: 120px;
    max-width: 140px;
    flex: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s, border-color 0.15s;
}

.hobby-item:hover {
    transform: translateY(-4px);
    border-color: #16c02d;
}

.hobby-icon {
    font-size: 40px !important;
    color: #16c02d;
    display: block;
    margin-bottom: 12px;
}

.hobby-item span {
    font-size: 13px;
    font-family: 'Sintony', sans-serif;
    color: #fff;
}

/* ---- Contact ---- */

.contact-wrapper {
    display: flex;
    gap: 24px;
    width: 72%;
    margin: 0 auto;
    align-items: stretch;
}

.contact-info {
    background: rgba(22, 49, 80, 0.88);
    border: 3px double rgb(255, 255, 255);
    border-radius: 15px;
    padding: 40px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.contact-info h3 {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    color: #fff;
    margin: 0 0 16px 0;
}

.contact-info p {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 30px 0;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.contact-link i {
    font-size: 22px;
    color: #16c02d;
    width: 26px;
    text-align: center;
}

.contact-link:hover {
    color: #16c02d;
}

.contact-form {
    background: rgba(64, 64, 64, 0.90);
    border: 3px double rgb(255, 255, 255);
    border-radius: 15px;
    padding: 36px 30px;
    flex: 1.6;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.form-group {
    display: flex;
    align-items: center;
    background: #2f2f2f;
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.15s;
}

.form-group:focus-within {
    border-color: #16c02d;
}

.form-group i {
    color: #16c02d;
    font-size: 14px;
    margin-right: 10px;
    width: 16px;
    flex-shrink: 0;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 12px 0;
    width: 100%;
    font-family: 'Sintony', sans-serif;
    font-size: 13px;
}

.form-group textarea {
    min-height: 110px;
    max-height: 110px;
    resize: none;
    padding-top: 12px;
    align-self: flex-start;
}

.contact-submit {
    width: 100%;
    margin-top: 4px;
    font-size: 14px;
}

/* ---- Footer ---- */

footer {
    padding: 20px;
    font-size: 14px;
    text-align: center;
    color: #fff;
    background-color: #404040;
    position: relative;
}

footer a {
    margin: 20px;
}

.social-media {
    padding: 20px;
    width: 30px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 30px !important;
}

.social-media:hover {
    color: lightskyblue;
}

/* ---- Responsive: Tablet ---- */

@media screen and (max-width: 768px) {
    .nav-bar {
        display: none;
    }

    .nav-drop {
        display: block;
    }

    #hero {
        padding-top: 60px;
    }

    .bg-img {
        filter: blur(3px);
        -webkit-filter: blur(3px);
    }

    .hero-text {
        width: 90%;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .hero-text p {
        font-size: 12px;
    }

    .about-card {
        width: 80%;
        padding: 30px 25px;
    }

    .services {
        width: 90%;
    }

    .contact-wrapper {
        width: 88%;
        flex-direction: column;
    }

    .section-title {
        font-size: 28px;
    }

    .gallery-col {
        flex: calc(50% - 8px);
        min-width: calc(50% - 8px);
    }

    .hobbies {
        width: 90%;
    }
}

/* ---- Responsive: Mobile ---- */

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .fill {
        font-size: 12px;
    }

    .about-card {
        width: 88%;
        padding: 20px 15px;
        font-size: 14px;
        line-height: 28px;
    }

    .services {
        width: 95%;
    }

    .services > div {
        min-width: 100%;
        max-width: 100%;
    }

    .contact-wrapper {
        width: 92%;
    }

    .section-title {
        font-size: 24px;
    }

    .gallery-col {
        flex: 100%;
        min-width: 100%;
    }

    .hobby-item {
        min-width: 100px;
        max-width: 120px;
        padding: 20px 12px 16px;
    }

    .hobby-icon {
        font-size: 32px !important;
        margin-bottom: 8px;
    }

    .hobbies {
        width: 95%;
        gap: 12px;
    }
}
