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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #fefefe 0%, #f8f6f3 50%, #f5f2ed 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.8) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.6) 0%, transparent 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* navigation */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-weight: 600;
    font-size: 1.5rem;
    color: #2d3748;
    letter-spacing: -0.025em;
}


/* hamburger icon */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: #2d3748;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.025em;
}

.nav-links a:hover {
    color: #2d3748;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: #2d3748;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


/* hero section */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #2d3748;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.3) 0%, transparent 70%), radial-gradient(ellipse at bottom right, rgba(248, 246, 243, 0.4) 0%, transparent 70%);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: none;
    letter-spacing: -0.025em;
    color: #1a202c;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    background-color: #1a202c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    /* backdrop-filter: blur(20px); */
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    letter-spacing: 0.025em;
}

.cta-button:hover {
    background-color: #2d3748;
    transform: translateY(-2px);
    /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); */
}


/* main content */

.main-content {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}


/* about section */

.about {
    padding: 5rem 0;
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #1a202c;
    letter-spacing: -0.025em;
}

.about-text p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: #2d3748;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-visual {
    position: relative;
    height: 400px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.about-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 50%), radial-gradient(circle at 70% 70%, rgba(248, 246, 243, 0.4) 0%, transparent 50%);
    opacity: 0.7;
}

.about-visual-content {
    position: relative;
    z-index: 2;
    color: #2d3748;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.case-study {
    padding: 6rem 0;
}

.case-section {
    margin-bottom: 4rem;
}

.case-study .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.case-section h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.case-section p {
    font-size: 1rem;
    line-height: 1.75;
    color: #2d3748;
    max-width: 960px;
}

.case-section p,
.case-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.case-section p+p {
    margin-top: 1rem;
}

.case-header {
    margin-bottom: 4rem;
}

.case-header h2 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.case-subtitle {
    font-size: 1.15rem;
    color: #4a5568;
    max-width: 960px;
    line-height: 1.6;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 1.5rem;
}

.case-meta span {
    position: relative;
}

.case-meta span::before {
    content: "•";
    position: absolute;
    left: -0.9rem;
    color: #d1d5db;
}

.case-meta span:first-child::before {
    content: "";
}

.case-figure {
    margin: 3rem 0 4rem;
}

.case-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.case-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: normal;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.case-placeholder {
    text-align: center;
    margin: 4rem 0;
}

.case-placeholder img {
    width: 100%;
    max-width: 960px;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    box-shadow: none;
    transition: none;
}


/* .case-placeholder img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
} */

.placeholder-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}


/* projects section */


/* .projects {
    padding: 5rem 0;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: #1a202c;
    letter-spacing: -0.025em;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

.custom-tooltip {
    position: fixed;
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateZ(0);
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #000;
}

.custom-tooltip.show {
    opacity: 1;
}

.project-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 246, 243, 0.6));
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #1a202c;
    letter-spacing: -0.025em;
}

.project-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    color: #2d3748;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.tap-badge {
    position: absolute;
    top: 0;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 12px 12px 12px;
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: opacity 0.2s ease;
    
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    border-radius: 4px 4px 0 0;
    display: none;
}

@media (hover: none) and (pointer: coarse) {
    .tap-badge {
        display: block;
    }
} */


/* contact section */

.contact {
    padding: 5rem 0;
    background: transparent;
    /* backdrop-filter: blur(10px); */
    color: #1a202c;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact p {
    font-size: 1rem;
    margin-bottom: 2rem;
    /* opacity: 0.8; */
    line-height: 1.6;
    color: #4a5568;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    font-style: italic;
    text-decoration: none;
    font-weight: 400;
    color: #1a202c;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: #2d3748;
    border-bottom: 1px solid #2d3748;
    transform: translateY(-1px);
}


/* site credit footer */

.site-credit {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: transparent;
}

.site-credit a {
    color: #2d3748;
    text-decoration: none;
    font-style: italic;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.site-credit a::after {
    content: '↗';
    font-size: 0.8em;
    margin-left: 0.25em;
    vertical-align: super;
}

.site-credit a:hover {
    color: #1a202c;
    text-decoration: underline;
}


/* animations */

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

@keyframes slidePattern {
    0% {
        transform: translateX(-50px);
    }
    100% {
        transform: translateX(50px)
    }
}


/* responsive breakpoints */


/* large desktop (1440px and above) */

@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
        padding: 0 3rem;
    }
    .hero h1 {
        font-size: 4.5rem;
    }
    .hero p {
        font-size: 1.25rem;
        max-width: 700px;
    }
    .about-grid {
        gap: 6rem;
    }
    .about-text h2 {
        font-size: 3rem;
    }
    .about-text p {
        font-size: 1.2rem;
    }
    .about-visual {
        height: 500px;
    }
    .projects h2 {
        font-size: 3rem;
    }
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
    .contact h2 {
        font-size: 3rem;
    }
    .contact p {
        font-size: 1.25rem;
    }
}


/* desktop/laptop (1024px to 1439px) */

@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1400px;
        padding: 0 1.5rem;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero p {
        font-size: 1.1rem;
        max-width: 550px;
    }
    .about-grid {
        gap: 3rem;
    }
    .about-text h2 {
        font-size: 2.25rem;
    }
    .about-visual {
        height: 350px;
    }
    .projects h2 {
        font-size: 2.25rem;
    }
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px 1fr));
        gap: 2rem;
    }
    .contact h2 {
        font-size: 2.25rem;
    }
}


/* tablet (768px to 1023px) */

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 1.5rem;
    }
    nav .container {
        padding: 1rem 1.5rem;
    }
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 60%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    .hero {
        padding: 0 1rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1rem;
        max-width: 500px;
        margin-bottom: 2.5rem;
    }
    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
    .about {
        padding: 4rem 0;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .about-text h2 {
        font-size: 2rem;
    }
    .about-text p {
        font-size: 1rem;
    }
    .about-visual {
        height: 350px;
        max-width: none;
        width: 100%;
        margin: 0 auto;
    }
    .skills {
        justify-content: center;
    }
    .projects {
        padding: 4rem 0;
    }
    .projects h2 {
        font-size: 2rem;
    }
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    .project-content {
        padding: 1.5rem;
    }
    .project-content h3 {
        font-size: 1.3rem;
    }
    .contact {
        padding: 4rem 0;
    }
    .contact h2 {
        font-size: 2rem;
    }
    .contact p {
        font-size: 1rem;
    }
    .contact-links {
        gap: 1.5rem;
    }
}


/* mobile (767px and below) */

@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    nav .container {
        padding: 0.875rem 1rem;
    }
    .logo {
        font-size: 1.25rem;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    .hero {
        padding: 0 1rem;
        min-height: 90vh;
    }
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    .hero p {
        font-size: 0.95rem;
        max-width: 100%;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    .about {
        padding: 3rem 0;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    .about-visual-content {
        font-size: 1.2rem;
    }
    .skills {
        justify-content: center;
        gap: 0.75rem;
    }
    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    /* case study — mobile refinements */
    .case-study {
        padding: 4rem 0;
    }
    .case-header {
        margin-bottom: 3rem;
    }
    .case-header h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    .case-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
    }
    .case-section {
        margin-bottom: 3rem;
    }
    .case-header h2 {
        font-size: 2rem;
    }
    .case-section h3 {
        font-size: 1.25rem;
    }
    .case-section p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .case-meta {
        gap: 1rem;
        line-height: 1.6;
    }
    .case-figure {
        margin: 2.5rem 0 3rem;
    }
    .case-figure img {
        border-radius: 12px;
    }
    .case-figure figcaption {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    /* .projects {
        padding: 3rem 0;
    }
    .projects h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .project-card {
        border-radius: 15px;
    }
    .project-image {
        height: 150px;
        font-size: 1rem;
    }
    .project-content {
        padding: 1.5rem;
    }
    .project-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    .project-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .project-tags {
        gap: 0.4rem;
    }
    .project-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    } */
    .contact {
        padding: 3rem 0;
    }
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    .contact p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .contact-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}


/* additional mobile adjustments for very small screens */

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem
    }
    .hero p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    .about-text h2,
    .projects h2,
    .contact h2 {
        font-size: 1.6rem;
    }
    .about-visual {
        height: 200px;
    }
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .project-content {
        padding: 1rem;
    }
    .contact-link {
        max-width: 200px;
    }
    .case-header h2 {
        font-size: 1.75rem;
    }
    .case-section h3 {
        font-size: 1.15rem;
    }
    .case-section p {
        font-size: 0.9rem;
    }
}


/* @media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
} */


/* scroll indicator */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2d3748, #4a5568);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1001;
    transition: transform 0.1s ease-out;
}