:root {
    --bg-main: #FFFDFD;
    --text-main: #555555;
    --text-dark: #000000;
    --accent-purple: #FF2E7E; /* Hot Pink */
    --accent-light: #FFF0F5;  /* Soft Blush */
    --status-green: #56D04E;
    
    --font-primary: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: transparent;
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.logo-sans {
    font-weight: 800;
    color: var(--text-dark);
}

.logo-serif {
    font-family: var(--font-accent);
    color: var(--text-dark);
    font-style: italic;
    margin-left: -2px;
}

.menu-btn {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    height: 48px;
    width: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.menu-btn .line {
    width: 20px;
    height: 1.5px;
    background: var(--text-dark);
    display: block;
}

/* Full Screen Menu */
.full-menu.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,253,253,0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.full-menu.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 5%;
    background: transparent;
    border: none;
    font-size: 4rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.close-menu-btn:hover {
    transform: rotate(90deg);
    color: var(--accent-purple);
}

.menu-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.menu-link {
    font-size: clamp(3rem, 7vw, 5rem);
    font-family: var(--font-primary);
    font-weight: 800;
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.menu-link:hover {
    color: var(--accent-purple);
    transform: translateY(-5px);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    gap: 40px;
}

.hero-content {
    flex: 1;
    z-index: 10;
    max-width: 650px;
}

.hero-title {
    font-size: clamp(3rem, 7.5vw, 7rem);
    line-height: 1.0;
    letter-spacing: -0.05em;
    margin-bottom: 40px;
    color: #333333;
    white-space: nowrap;
}

.text-upper {
    font-weight: 800;
    color: var(--text-dark);
}

.text-accent {
    font-family: var(--font-accent);
    color: var(--accent-purple);
    font-weight: 500;
    font-style: italic;
    font-size: 1.15em;
    padding-left: 10px;
    padding-right: 10px;
}

.hero-bio {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 500px;
}

.profile-pic-container {
    flex-shrink: 0;
}

.profile-pic {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-bio p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-main);
}

.hero-bio strong {
    color: var(--text-dark);
    font-weight: 500;
}

/* 3D Canvas Container */
#canvas-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none; /* Let clicks pass through */
}

.spacer-large {
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Typography Common */
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

/* Case Studies */
.case-studies {
    position: relative;
    z-index: 10;
    padding: 100px 5%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: var(--accent-light);
    border-radius: 32px;
    padding: 40px;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 850px;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 48px rgba(255, 46, 126, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.badge {
    background-color: rgba(255, 46, 126, 0.15);
    color: var(--accent-purple);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.arrow-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
}

.project-title {
    font-size: 2.5rem;
    font-weight: 800;
    z-index: 2;
}

.project-image-placeholder {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 85%;
    height: 88%;
    border-radius: 24px 0 0 0;
    background: #fff;
    box-shadow: -10px -10px 30px rgba(0,0,0,0.03);
    transition: transform 0.4s ease;
    z-index: 1;
}

.project-card:hover .project-image-placeholder {
    transform: scale(1.03);
}

.navi-bg { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
.cult-bg { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

/* Industrial Carousel Section */
.industrial-carousel {
    padding: 100px 5%;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.carousel-item {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -225px; /* Half of 450px width */
    margin-top: -175px;  /* Half of 350px height */
    width: 450px;
    height: 350px;
    background-color: transparent;
    border-radius: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, z-index 0s;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.carousel-item.prev2 {
    transform: translateX(-160%) scale(0.65);
    opacity: 0.3;
    z-index: 2;
}

.carousel-item.prev1 {
    transform: translateX(-95%) scale(0.85);
    opacity: 0.7;
    z-index: 4;
}

.carousel-item.active {
    transform: translateX(0) scale(1.1);
    opacity: 1;
    z-index: 6;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}

.carousel-item.next1 {
    transform: translateX(95%) scale(0.85);
    opacity: 0.7;
    z-index: 4;
}

.carousel-item.next2 {
    transform: translateX(160%) scale(0.65);
    opacity: 0.3;
    z-index: 2;
}

.carousel-item.hidden {
    transform: translateX(0) scale(0.4);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* About Me / Hobbies Section */
.about-me {
    position: relative;
    z-index: 10;
    padding: 100px 5%;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.hobby-card {
    background-color: var(--bg-main);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.hobby-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 46, 126, 0.08); /* Soft pink hover shadow */
}

.hobby-icon {
    font-size: 3rem;
    background: var(--accent-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hobby-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
}

.hobby-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    padding: 120px 5%;
    background-color: var(--accent-light);
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.08), 0 -60px 150px rgba(0, 0, 0, 0.15);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    color: var(--text-dark);
}

.pulse {
    width: 12px;
    height: 12px;
    background-color: var(--status-green);
    border-radius: 50%;
    position: relative;
}

.pulse::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--status-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.footer-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.footer-title strong {
    font-weight: 800;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 16px 32px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.footer-link:hover {
    transform: translateY(-4px);
}

.footer-link span {
    background: var(--accent-light);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }
    .hero-bio {
        flex-direction: column;
        margin: 0 auto;
        text-align: center;
    }
    .hero-title {
        white-space: normal;
    }
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(247, 247, 247, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    position: relative;
    transform: translateY(40px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 80vh;
    margin: auto;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.modal-hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 30px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.modal-text-group {
    margin-bottom: 40px;
}

.modal-text-group h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-text-group p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal-gallery img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    object-fit: cover;
}

@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-content { padding: 40px 20px; }
}
