* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: relative;
    padding: 60px 0 80px;
    text-align: center;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 100vh;
    height: 100dvh;
}

header .glow {
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    width: 420px;
    height: 420px;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(121, 176, 249, 0.25) 0%, rgba(132, 194, 252, 0.15) 60%, rgba(10,10,10,0) 100%);
    filter: blur(100px);
}

footer {
    position: relative;
    padding: 60px 0 80px;
    text-align: center;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #79dff9 0%, #84c6fc 100%);
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(232, 121, 249, 0.15);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(121, 191, 249, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(121, 187, 249, 0.9);
    font-weight: 500;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

blockquote {
  font-style: italic;
  margin: 1em 0;
  padding-left: 1em;
  color: #8f8f8f;
}

cite {
  display: block;
  text-align: right;
  font-style: normal;
  color: #888;
}

.cite-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

.cite-icon:hover {
    color: #79bff9;
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}


.social-links,
.project-button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.project-button-container {
    margin-top: 80px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(121, 187, 249, 0.2);
    border-color: rgba(121, 181, 249, 0.4);
    color: #79a6f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(121, 181, 249, 0.15);
}

.project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 50px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-button:hover {
    background: rgba(121, 187, 249, 0.2);
    border-color: rgba(121, 181, 249, 0.4);
    color: #79a6f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(121, 181, 249, 0.15);
    cursor: pointer;
}

.projects-section {
    padding: 100px 0;
    background: rgba(15, 15, 15, 0.5);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: white;
    margin-bottom: 80px;
    letter-spacing: -1px;
}

.project {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    background: rgba(25, 25, 25, 0.8);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}

.project:nth-child(even) {
    flex-direction: row-reverse;
}

.project-image {
    flex: 1;
    max-width: 500px;
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.project-image img.active {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.project-content {
    flex: 1;
    color: white;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #79caf9 0%, #84a0fc 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(121, 155, 249, 0.4);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: rgba(25, 25, 25, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    color: white;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(121, 187, 249, 0.9);
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.modal-text a {
    color: rgba(121, 187, 249, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    transition: background 0.5s cubic-bezier(.4, 2, .6, 1);
}

.image-modal.active {
    display: flex;
    animation: fadeIn 0.5s;
}

.image-modal img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.7s cubic-bezier(.4, 2, .6, 1),
        opacity 0.7s cubic-bezier(.4, 2, .6, 1),
        box-shadow 0.7s cubic-bezier(.4, 2, .6, 1);
    transform: scale(0.4);
    opacity: 0;
    will-change: transform, opacity;
}

.image-modal.active img {
    transform: scale(1);
    opacity: 1;
}

@keyframes fadeIn {
    from {
        background: rgba(0, 0, 0, 0);
    }

    to {
        background: rgba(0, 0, 0, 0.65);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .project {
        flex-direction: column !important;
        gap: 30px;
        padding: 30px 20px;
    }

    .project-image {
        max-width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }
}

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #79f0f9 0%, #8490fc 100%);
    z-index: 1000;
    transition: width 0.3s ease;
}

.project-tag {
    position: absolute;
    top: 12px;
    right: -40px;
    background: #ff4081;
    color: #fff;
    padding: 4px 32px;
    font-size: 0.9em;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
    letter-spacing: 1px;
    pointer-events: none;
}