* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
picture {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    --primary-color: #77f6a6;
    --secondary-color: #ffe16a;
    --accent-color: #b0ff9d;
    --bg-color: #071207;
    --surface-color: rgba(10, 18, 13, 0.95);
    --card-color: rgba(8, 16, 11, 0.88);
    --text-primary: #e8fbf0;
    --text-muted: #b7d7bc;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top left, rgba(119, 246, 166, 0.16), transparent 18%),
                radial-gradient(circle at bottom right, rgba(255, 225, 106, 0.12), transparent 16%),
                linear-gradient(180deg, #061204 0%, #0b1907 45%, #101e09 100%);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 10, 20, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
}

.site-logo {
    height: 42px;
    width: auto;
    display: block;
}

.logo span {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.25s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-cta {
    display: inline-flex;
    padding: 0;
    border: none;
    background: transparent;
}

.nav-cta a {
    display: inline-flex;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
    color: #020617;
    text-decoration: none;
    font-weight: 700;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.hero {
    margin-top: 82px;
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(35px);
    opacity: 0.7;
}

.hero::before {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: rgba(93, 153, 255, 0.18);
}

.hero::after {
    width: 360px;
    height: 360px;
    bottom: -90px;
    left: -100px;
    background: rgba(0, 240, 255, 0.12);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    width: 100%;
}

.hero-eyebrow,
.section-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.hero h1,
.section-title {
    font-size: clamp(2.8rem, 4.5vw, 4.3rem);
    line-height: 1.05;
    margin-bottom: 1.4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description,
.about-content p,
.contact p,
.modal-details p,
.project-description,
.contact-form p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.85rem;
}

.cta-button,
.cta-button a,
.visit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-button,
.cta-button a {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000000;
    box-shadow: 0 18px 48px rgba(0, 240, 255, 0.18);
}

.cta-button:not(.cta-outline),
.cta-button:not(.cta-outline) a,
.nav-cta a,
.nav-cta a:link,
.nav-cta a:visited,
.nav-cta a:hover,
.nav-cta a:active {
    color: #000000 !important;
}

.cta-button:hover,
.visit-button:hover,
.nav-cta:hover a {
    transform: translateY(-3px);
}

.cta-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.hero-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-meta span {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.about,
.projects,
.contact,
.contact-form-section {
    padding: 90px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: start;
}

.about-copy {
    max-width: 100%;
}

.about-details {
    display: grid;
    gap: 1.5rem;
}

.about-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 0;
}

.about-list div {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.25rem 1.4rem;
}

.about-list strong {
    display: block;
    margin-bottom: 0.6rem;
    color: #f8fbff;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.skill-chip {
    padding: 0.75rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 0.9rem;
}

.section-title {
    margin-bottom: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(93, 153, 255, 0.35);
    box-shadow: 0 30px 70px rgba(26, 69, 161, 0.18);
}

.project-image-wrap {
    position: relative;
    overflow: hidden;
}

.project-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
    pointer-events: none;
}

.project-image-wrap:hover::before {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.40);
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.project-image-wrap:hover .project-image {
    transform: scale(1.02);
    filter: blur(4px);
}

.project-preview-link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.project-image-wrap:hover .project-preview-link {
    opacity: 1;
    pointer-events: auto;
}

.project-preview-button {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #0b191f;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.18);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.project-image-wrap:hover .project-preview-button {
    transform: scale(1);
}

.project-preview-button svg {
    width: 24px;
    height: 24px;
}

.project-info {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fbff;
}

.project-description {
    color: #aab9d6;
    font-size: 0.98rem;
    line-height: 1.7;
}

.project-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.project-card-actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.project-image-wrap:hover .project-card-actions,
.project-image-wrap:focus-within .project-card-actions {
    opacity: 1;
    pointer-events: auto;
}

.project-link-button {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    color: #0b191f;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-decoration: none;
}

.project-link-button:hover,
.project-link-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.project-link-button svg {
    width: 20px;
    height: 20px;
}

.project-link-button--github {
    background: rgba(255, 255, 255, 0.95);
    color: #0b191f;
    border-color: rgba(0, 0, 0, 0.08);
}

.language-chip,
.project-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--primary-color);
    font-size: 0.82rem;
    border: 1px solid rgba(119, 246, 166, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.language-chip {
    color: #cdeccb;
}

.project-tag {
    margin-top: auto;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(7, 12, 24, 0.98);
    margin: 5% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 860px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    animation: slideDown 0.3s ease;
    position: relative;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

#modalImage {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 18px;
}

.modal-details h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f8fbff;
}

.modal-details p {
    color: #b4c2dd;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.visit-button {
    display: inline-flex;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #020617;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.visit-button:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 45px rgba(0, 240, 255, 0.15);
}

.close {
    position: absolute;
    right: 22px;
    top: 22px;
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.close:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.contact {
    background: linear-gradient(180deg, rgba(7, 12, 24, 0) 0%, rgba(7, 12, 24, 1) 100%);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.contact-details a,
.contact-details p {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.page-shell,
.page-hero {
    padding-top: 90px;
}

.contact-hero {
    padding: 90px 0 40px;
    background: linear-gradient(135deg, rgba(9, 14, 29, 0.96), rgba(18, 24, 45, 0.92));
}

.contact-form-section {
    background: rgba(255, 255, 255, 0.02);
}

.contact-form {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255,255,255,0.03);
    color: #e2e8f0;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(93, 153, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(93, 153, 255, 0.08);
}

.contact-form textarea {
    grid-column: 1 / -1;
    min-height: 180px;
    resize: vertical;
}

.contact-form button.cta-button {
    align-self: flex-start;
    padding: 14px 30px;
}

.contact-success {
    display: none;
    max-width: 760px;
    margin: 1.5rem auto 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(119, 246, 166, 0.2);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    color: #e8fbf0;
    box-shadow: 0 18px 45px rgba(119, 246, 166, 0.12);
    backdrop-filter: blur(12px);
}

.contact-success.show {
    display: block;
    animation: fadeInUp 0.4s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-success h2 {
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-success p {
    color: #cdeccb;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

.footer {
    background: rgba(6, 12, 23, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 0;
    text-align: center;
    color: #7b8ba7;
}

@media (max-width: 1024px) {
    .about-grid,
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .section-title {
        font-size: clamp(2.4rem, 6vw, 3.4rem);
    }
}

@media (max-width: 820px) {
    .nav-actions {
        gap: 0.75rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 80px);
        background: rgba(5, 10, 20, 0.96);
        backdrop-filter: blur(14px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 1rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.05rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-buttons,
    .hero-meta {
        justify-content: center;
    }

    .hero-copy,
    .about-copy {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .about-list,
    .contact-details {
        align-items: center;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .navbar .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar .container {
        padding: 0 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0 20px;
    }

    .hero {
        margin-top: 70px;
        min-height: 70vh;
        padding: 2rem 0;
    }

    .hero::before,
    .hero::after {
        width: 250px;
        height: 250px;
        opacity: 0.5;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 12px 32px;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .projects {
        padding: 60px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        border-radius: 12px;
    }

    .project-image {
        height: 200px;
    }

    .project-info {
        padding: 1.2rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 0;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    #modalImage {
        height: 250px;
        max-height: 40vh;
    }

    .modal-details h2 {
        font-size: 1.5rem;
    }

    .modal-details p {
        font-size: 0.95rem;
    }

    .close {
        right: 15px;
        top: 15px;
        font-size: 1.5rem;
        width: 38px;
        height: 38px;
    }

    .contact {
        padding: 60px 0;
    }

    .contact p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .footer {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .hero {
        margin-top: 60px;
        min-height: 60vh;
        padding: 1rem 0;
    }

    .hero::before,
    .hero::after {
        width: 150px;
        height: 150px;
        opacity: 0.3;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 11px 28px;
        font-size: 0.9rem;
        min-width: 120px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .projects {
        padding: 40px 0;
    }

    .projects-grid {
        gap: 1rem;
    }

    .project-card {
        border-radius: 10px;
    }

    .project-image {
        height: 180px;
    }

    .project-info {
        padding: 1rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .project-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .modal-content {
        width: 98%;
        margin: 30% auto;
    }

    .modal-body {
        padding: 1.2rem;
        gap: 1rem;
    }

    #modalImage {
        height: 180px;
        border-radius: 8px;
    }

    .modal-details h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .modal-details p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .visit-button {
        padding: 10px 25px;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .close {
        right: 12px;
        top: 12px;
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }

    .contact {
        padding: 40px 0;
    }

    .contact p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }

    .footer {
        padding: 1.2rem 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .logo {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .contact p {
        font-size: 0.85rem;
    }
}
