* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Afacad Flux', sans-serif;
    background: white;
    overflow-x: hidden;
}

/* Decorative squares */
.square {
    position: absolute;
    z-index: 1;
}

.square-blue-tl {
    width: 45px;
    height: 45px;
    background: #0000ff;
    top: 35px;
    left: 80px;
}

.square-orange-tl {
    width: 45px;
    height: 45px;
    background: #ff6600;
    top: 80px;
    left: 125px;
}

.square-blue-tr {
    width: 45px;
    height: 45px;
    background: #0000ff;
    top: 190px;
    right: 50px;
}

.square-orange-br {
    width: 45px;
    height: 45px;
    background: #ff6600;
    bottom: 90px;
    right: 100px;
}

/* Navigation */
nav {
    position: relative;
    z-index: 100;
    display: flex;
    gap: 0;
    padding: 50px;
    justify-content: center;
}

.nav-item {
    padding: 20px 30px;
    background: transparent;
    color: black;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: #0000ff;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-item.active {
    background: #0000ff;
    color: white;
}

.nav-item.active::before {
    transform: scaleY(-1);
}

.nav-item.proximity {
    transform: scale(1.1) translateY(-5px);
}

/* Content sections */
.content-top {
    min-width: 600px;
    margin: 20px 500px 0;
    padding: 0 50px;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    position: relative;
    left: 140px;
    bottom: 35px;
}

.content-middle {
    max-width: 500px;
    margin: 40px 400px 0;
    padding: 0 50px;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
     position: relative;
    left: 70px;
    bottom: 45px;
}

/* Blue rectangle */
.blue-rectangle {
    width: 830px;
    height: 250px;
    background: #0000ff;
    margin: 80px 0 0 auto;
    position: relative;
    left: 30px;
    bottom: 80px
}

/* Portfolio text */
.portfolio-text {
    position: fixed;
    bottom: 50px;
    left: 80px;
    font-size: 200px;
    font-weight: 700;
    color: black;
    line-height: 0.9;
    letter-spacing: 5px;
    z-index: 50;
    -webkit-text-stroke: 7px black;
    paint-order: stroke fill;
}

.port-text {
    line-height: 0.9;
    position: relative;
    left: 0px;
}

.folio-text {
    line-height: 0.9;
    position: relative;
    left: 40px;
    top: -40px; 
}

.portfolio-text span {
    display: inline-block;
    transition: all 0.3s ease;
}

.portfolio-text span.scatter {
    transform: translate(var(--tx), var(--ty)) rotate(var(--r));
}

.portfolio-dot {
    color: black;
}

/* Page container */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* About page styles */
.about-container {
    padding: 100px 80px; 
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-image {
    width: 500px;
    height: auto;
    bottom: 195px;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    filter: contrast(120%);
    mix-blend-mode: multiply;
    position: relative;
    left: 20px;
    z-index: 2;
}

.about-blue-shape {
    width: 1200px;
    height: 250px;
    background: #0000ff;
    position: absolute;
    bottom: 200px;
    right: -120px;
    z-index: 1;
}

.about-content {
    flex: 1;
    padding-top: 100px; 
    position: relative;
    bottom: 150px; 
    left: 110px;  
}

.about-hello {
    font-size: 180px;
    font-weight: 700;
    letter-spacing: 4px;
    color: black;
    margin-bottom: 10px;
    line-height: 1;
     -webkit-text-stroke: 5px black;
     position: relative;
    top: 50px; 
    right: 130px;   
    width: fit-content;
    overflow: hidden;
    white-space: nowrap;
    border-right: 5px solid #0000ff;
    animation: typing 2s steps(4) 1s forwards, blink 0.50s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 50%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.about-hello-dot {
    color: #000000;
}

.about-square {
    width: 45px;
    height: 45px;
    background: #0000ff;
    display: inline-block;
    margin-left: 10px;
    position: relative;
    top: 50px; 
    left: 130px;
}

.about-text {
    font-size: 13px;
    line-height: 1.8;
    margin-top: 50px;
    max-width: 500px;
    position: relative;
    top: 20px;  
}

.about-text strong {
    font-weight: 700;
}

.about-orange-square {
    width: 45px;
    height: 45px;
    background: #ff6600;
    margin: 30px 0;
}

/* Works page styles */
.works-container {
    padding: 50px 80px;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.works-grid {
    display: grid;
    grid-template-columns: 420px 200px;
    grid-template-rows: 200px 225px 200px;
    gap: 15px;
    flex-shrink: 0;
    animation: fadeInScale 1s ease-out;
}

.work-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #666;
    opacity: 0;
    animation: zoomIn 0.6s ease-out forwards;
}

.work-large-h {
    grid-column: 1 / 3;
    grid-row: 1;
    animation-delay: 0.2s;
}

.work-medium-v {
    grid-column: 1;
    grid-row: 2 / 4;
    animation-delay: 0.4s;
}

.work-small {
    grid-column: 2;
    grid-row: 2 / 4;
    animation-delay: 0.6s;
}

.work-medium-h {
    grid-column: 1 / 3;
    grid-row: 4;
    height: 200px;
    animation-delay: 0.8s;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.work-item:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 255, 0.3);
}

.work-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 255, 0.95);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.work-item:hover .work-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

.work-overlay p {
    font-size: 12px;
    line-height: 1.4;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.2s;
}

.work-item:hover .work-overlay p {
    transform: translateY(0);
    opacity: 1;
}

.works-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-top: 0;
    max-width: 450px;
}

.works-intro {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.works-description {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.works-description p {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.works-description p:nth-child(1) {
    animation-delay: 1s;
}

.works-description p:nth-child(2) {
    animation-delay: 1.2s;
}

.works-description strong {
    font-weight: 700;
}

/* Contact page styles */
.contact-container {
    padding: 100px 80px;
    display: flex;
    gap: 150px;
    align-items: flex-start;
}

.contact-left {
    flex: 1;
    max-width: 400px;
    animation: slideInLeft 0.8s ease-out;
}

.contact-title {
    font-size: 70px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 40px;
    -webkit-text-stroke: 2.3px black;
    position: relative;
    top: 10px; 
    left: 60px;
    animation: fadeInScale 1s ease-out;
}

.contact-title span {
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-title span.scatter-contact {
    transform: translate(var(--tx), var(--ty)) rotate(var(--r));
}

.contact-exclamation {
    color: black;
}
.contact-description {
    font-size: 13px;
    line-height: 1.8;
    position: relative;
    top: 10px; 
    left: 60px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.contact-right {
    flex: 1;
    max-width: 500px;
    animation: slideInRight 0.8s ease-out;
}

.contact-heading {
    font-size: 40px;
    font-weight: 700;
    color: #0000ff;
    margin-bottom: 30px;
    line-height: 1;
    letter-spacing: 1px;
    -webkit-text-stroke: 2px #0000ff;
    position: relative;
    top: 10px; 
    left: 60px;
    animation: colorPulse 3s ease-in-out infinite;
}

.contact-info {
    margin-bottom: 80px;
}

.contact-item {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInSlide 0.6s ease-out forwards;
}

.contact-item:nth-child(1) {
    animation-delay: 0.4s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.6s;
}

.contact-item:nth-child(3) {
    animation-delay: 0.8s;
}

.contact-item:nth-child(4) {
    animation-delay: 1s;
}

.contact-link {
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px;
    margin-left: -10px;
    border-radius: 5px;
}

.contact-link:hover {
    background: #e6e6ff;
    transform: translateX(10px) scale(1.05);
    text-decoration: none;
}

.contact-link:visited {
    text-decoration: none;
}

.contact-link:active {
    text-decoration: none;
}

.contact-link:hover .contact-icon {
    transform: scale(1.3) rotate(15deg);
}

.contact-icon {
    font-size: 24px;
    display: inline-block;
    width: 35px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feedback-section {
    animation: fadeInUp 1s ease-out 1.2s both;
}

.feedback-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: bounceIn 1s ease-out 1.4s both;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    top: 10px; 
    left: -5px;
}

.feedback-input {
    width: 100%;
    padding: 20px;
    background: #e6e6ff;
    border: none;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    max-height: 60px;
    animation: expandWidth 0.8s ease-out 1.6s both;
    transform-origin: left;
}

.feedback-input:focus {
    background: #d4d4ff;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 255, 0.2);
}

.feedback-input::placeholder {
    color: #666;
}

.feedback-button {
    align-self: flex-start;
    padding: 15px 14px;
    background: #0000ff;
    color: white;
    border: none;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feedback-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.feedback-button:hover::before {
    width: 300px;
    height: 300px;
}

.feedback-button:hover {
    background: #0000cc;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 255, 0.4);
}

.feedback-button:active {
    transform: translateY(-1px) scale(1.02);
}

.feedback-success {
    margin-top: 20px;
    padding: 15px;
    background: #d7ffa5;
    color: black;
    font-weight: 700;
    text-align: center;
    animation: successPop 0.5s ease;
    position: relative;
    top: 10px; 
    left: 60px;
    border-radius: 5px;
}

/* Contact Page Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes colorPulse {
    0%, 100% {
        color: #0000ff;
    }
    50% {
        color: #3333ff;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes expandWidth {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
    50% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-icon-box {
    width: 30px;
    height: 30px;
    display: inline-block;
}

.instagram-icon {
    background: #ff6600;
}

.email-icon {
    background: #0000ff;
}

.phone-icon {
    background: #ff6600;
}

.linkedin-icon {
    background: #0000ff;
}
/* Works Page Animations */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Project Detail Page Styles */
.project-detail-container {
    padding: 50px 80px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.back-button {
    background: transparent;
    border: 2px solid #0000ff;
    color: #0000ff;
    padding: 12px 30px;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-button span {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.back-button:hover {
    background: #0000ff;
    color: white;
    transform: translateX(-5px);
}

.back-button:hover span {
    transform: translateX(-5px);
}

.project-detail-title {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    -webkit-text-stroke: 2px black;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.project-detail-description {
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.project-image-item {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 4/3;
    opacity: 0;
    animation: zoomIn 0.6s ease-out forwards;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-image-item:nth-child(1) {
    animation-delay: 0.6s;
}

.project-image-item:nth-child(2) {
    animation-delay: 0.8s;
}

.project-image-item:nth-child(3) {
    animation-delay: 1s;
}

.project-image-item:nth-child(4) {
    animation-delay: 1.2s;
}

.project-image-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.project-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image-item:hover img {
    transform: scale(1.1);
}
.project-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project-image-item:hover .project-image-caption {
    transform: translateY(0);
}

.project-image-caption h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.project-image-caption p {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.project-info {
    display: flex;
    gap: 80px;
    padding: 40px 0;
    border-top: 2px solid #0000ff;
    animation: fadeInUp 0.8s ease-out 1.4s backwards;
}

.project-info-item h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0000ff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info-item p {
    font-size: 18px;
    font-weight: 400;
}

/* Fullscreen image viewer */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: #0000ff;
    color: white;
    transform: rotate(90deg);
}