@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');


/* Variable Create */
:root {
    --dark-clr: #081d2c;
    --second-dark-clr: #112e42;
    --text-clr: #f1f5f9;
    --light-text-clr: #c9d9e8;
    --global-clr: #0fbbff;
    --btn-clr: #ff499e;
}


/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}


/* html and body styles */
html {
    overflow-x: hidden;
    line-height: calc(1em + 0.5rem);
}

body {
    font-family: "Jost", serif;
    background: var(--dark-clr);
    color: var(--text-clr);
    line-height: 1.3;
    text-decoration: none;
    letter-spacing: 1px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}


/* Header */
header {
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1.5rem 0;
}

.navbar {
    padding: 0.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-clr);
}

.logo span {
    color: var(--global-clr);
}


/* Navigation Menu */
.navbar ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    position: relative;
    flex-wrap: wrap;
}

header nav ul li {
    position: relative;
    margin-right: 20px;
}

.navbar ul li a {
    position: relative;
    font-size: 1.3rem;
    font-weight: 500;
    margin-left: 20px;
    color: var(--text-clr);
    transition: .3s;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--global-clr);
}

header nav ul li a::after {
    content: '';
    position: absolute;
    background: var(--global-clr);
    height: 3px;
    width: 0;
    left: 0;
    bottom: 0;
    pointer-events: none;
    transition: .3s;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

/* CV Button */
.cvbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--btn-clr);
    color: var(--text-clr);
    padding: 12px;
    border-radius: 5px;
    box-shadow: 0 0 5px var(--btn-clr);
    cursor: pointer;
    transition: .5s;
}

.cvbtn:hover {
    box-shadow: 0 0 5px var(--btn-clr),
        0 0 10px var(--btn-clr),
        0 0 15px var(--btn-clr);
}


/* section */
section {
    padding: 2% 10%;
}


/* Hero Section */
.hero-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 10%;
}

.hero-image img {
    width: min(600px, 48vw);
    height: auto;
    min-width: 320px;
    filter: drop-shadow(0 0 60px var(--global-clr));
}

.hero-content {
    max-width: 50%;
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
}

.hero-content h2 span {
    color: var(--global-clr);
}

.hero-content p {
    font-size: 1.2rem;
    margin: 2rem 0;
}


/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.social-icons a {
    display: inline-flex;
    font-size: 2rem;
    background: transparent;
    color: var(--global-clr);
    transition: .5s;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-10px);
    text-decoration: none;
}


/* Buttons */
.hero-btn {
    display: flex;
    gap: 1.5rem;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 100%;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.6rem 0;
    color: var(--dark-clr);
    background: var(--global-clr);
    border: 2px solid var(--global-clr);
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    color: var(--global-clr);
}

.hero-btn .btn:nth-child(2) {
    background: transparent;
    color: var(--global-clr);
}

.hero-btn .btn:nth-child(2)::before {
    background: var(--global-clr);
}

.hero-btn .btn:nth-child(2):hover {
    color: var(--dark-clr);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--dark-clr);
    z-index: -1;
    transition: .5s;
}

.btn:hover::before {
    width: 100%;
}


/* Stats Section */
.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stats .stat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-width: 200px;
}

.stats .stat:not(:last-child) {
    border-right: 1px solid var(--light-text-clr);
    padding-right: 5%;
}

.stats .stat h2 {
    font-size: 3.5rem;
    font-weight: 600;
}

.stats .stat span {
    display: inline-block;
    color: var(--light-text-clr);
    font-size: 1.1rem;
}

/* Portfolio sections */
.portfolio-intro {
    max-width: 900px;
    margin: -0.5rem auto 2rem;
    color: var(--light-text-clr);
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.65;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.portfolio-grid.portfolio-grid-single {
    grid-template-columns: minmax(0, 900px);
    justify-content: center;
}

.portfolio-item {
    background: var(--second-dark-clr);
    border: 1px solid rgba(15, 187, 255, 0.28);
    border-radius: 16px;
    padding: 1.5rem;
    padding-right: 3.2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    position: relative;
}

.portfolio-item h3 {
    font-size: 1.4rem;
    color: var(--text-clr);
    margin-bottom: 0.9rem;
}

.portfolio-item p {
    color: var(--light-text-clr);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.portfolio-meta {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.portfolio-meta li {
    position: relative;
    color: var(--light-text-clr);
    padding-left: 1.2rem;
    line-height: 1.5;
}

.portfolio-meta li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.56rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--global-clr);
}

.portfolio-embed {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 187, 255, 0.2);
    background: #ffffff;
}

.portfolio-embed iframe {
    width: 100%;
    min-height: 390px;
    border: 0;
    display: block;
}

.project-preview-intro {
    max-width: 760px;
    margin: -0.5rem auto 2rem;
    color: var(--light-text-clr);
}

.project-preview-card {
    height: 100%;
    background: var(--second-dark-clr);
    border: 1px solid rgba(15, 187, 255, 0.28);
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.project-preview-card h3 {
    font-size: 1.2rem;
    margin: 0;
}

.project-preview-card p {
    color: var(--light-text-clr);
    margin: 0;
    line-height: 1.5;
}

.project-preview-link {
    margin-top: auto;
    color: var(--global-clr);
    font-weight: 600;
    text-decoration: none;
}

.project-preview-link:hover {
    color: #59d9ff;
}

.project-share-icon {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--global-clr);
    background: rgba(8, 29, 44, 0.86);
    border: 1px solid rgba(15, 187, 255, 0.45);
    z-index: 3;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.project-share-icon:hover {
    color: #7be6ff;
    border-color: #7be6ff;
    transform: translateY(-1px);
}

.project-image-card {
    position: relative;
    overflow: hidden;
}

.share-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1rem;
}

.share-popup-backdrop.active {
    display: flex;
}

.share-popup {
    width: min(520px, 100%);
    background: var(--second-dark-clr);
    border: 1px solid rgba(15, 187, 255, 0.4);
    border-radius: 14px;
    padding: 1.1rem 1rem 1rem;
    position: relative;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.share-popup h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.share-popup p {
    margin: 0 0 0.7rem;
    color: var(--light-text-clr);
    font-size: 0.98rem;
}

.share-popup-close {
    position: absolute;
    top: 0.65rem;
    right: 0.7rem;
    color: var(--light-text-clr);
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
}

.share-popup-url {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(15, 187, 255, 0.35);
    background: #0b2638;
    color: var(--text-clr);
}

.share-popup-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.share-popup-btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
}

.share-popup-copy {
    color: #061018;
    background: var(--global-clr);
}

.share-popup-cancel {
    color: var(--text-clr);
    background: transparent;
    border: 1px solid rgba(201, 217, 232, 0.45);
}

.share-popup-status {
    min-height: 1.1rem;
    margin-top: 0.55rem;
    color: #7be6ff;
    font-size: 0.9rem;
}

/* Shared form section */
.contact-form-section {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* Responsive */
@media (max-width: 992px) {
    section {
        padding: 4% 5%;
    }

    .navbar {
        padding: 0.5rem 5%;
        justify-content: center;
    }

    .logo {
        font-size: 2rem;
    }

    .navbar ul {
        width: 100%;
        justify-content: center;
        gap: 0.45rem 0.8rem;
    }

    header nav ul li {
        margin-right: 0;
    }

    .navbar ul li a {
        margin-left: 0;
        font-size: 1rem;
        white-space: nowrap;
    }

    .cvbtn {
        font-size: 1rem;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
        padding: 2rem 5%;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image img {
        width: min(100%, 420px);
        min-width: 0;
    }

    .social-icons,
    .hero-btn {
        justify-content: center;
    }

    .hero-btn {
        flex-wrap: wrap;
    }

    .stats {
        justify-content: center;
    }

    .stats .stat {
        min-width: calc(50% - 1rem);
    }

    .stats .stat:not(:last-child) {
        border-right: none;
        padding-right: 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 6% 5%;
    }

    .logo {
        font-size: 1.6rem;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar ul {
        gap: 0.35rem 0.7rem;
    }

    .navbar ul li a {
        font-size: 0.95rem;
    }

    .cvbtn {
        width: 100%;
        max-width: 280px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content h3 {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin: 1rem 0 1.5rem;
    }

    .hero-btn {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .hero-btn .btn {
        width: 100%;
        max-width: 220px;
    }

    .stats .stat {
        min-width: 100%;
        border-bottom: 1px solid rgba(201, 217, 232, 0.2);
        padding-bottom: 1rem;
    }

    .stats .stat:last-child {
        border-bottom: none;
    }

    .stats .stat h2 {
        font-size: 2.2rem;
    }

    .stats .stat span {
        font-size: 1rem;
    }

    .contact-form-section h2 {
        font-size: 2rem !important;
    }

    .portfolio-item,
    .project-preview-card {
        padding: 1.1rem;
    }

    .portfolio-item h3 {
        font-size: 1.2rem;
    }
}
