@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ceb187;
    background-image: url('./assets/sand-texture-bg.png');
    background-blend-mode: normal;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: repeat;
    color: #303030;
    text-align: center;
    min-height: 100vh;
    line-height: 1.6;
}

/* Footprint system variables */
:root {
    --footprint-size: clamp(16px, 2vw, 28px);
    --footprint-gap: calc(var(--footprint-size) * 4.0);
    --footprint-scale: 1;
}

/* Responsive footprint scaling */
@media (max-width: 900px) {
    :root {
        --footprint-size: clamp(14px, 1.8vw, 22px);
        --footprint-scale: 0.6;
    }
}

@media (max-width: 600px) {
    :root {
        --footprint-size: clamp(12px, 1.6vw, 18px);
        --footprint-scale: 0.35;
    }
}

@media (max-width: 400px) {
    :root {
        --footprint-size: clamp(10px, 1.4vw, 16px);
        --footprint-scale: 0.25;
    }
}

/* Footprint canvas */
#footprint-canvas {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

/* Cat Paw canvas for About page */
#cat-paw-canvas {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

/* Homepage specific background - no texture overlay */
body.homepage {
    background: #e6d7c2 !important;
    background-image: none !important;
    background-blend-mode: normal !important;
    background-attachment: initial !important;
    background-size: initial !important;
    background-repeat: initial !important;
}

/* Animated Waves */
.waves-wrapper {
    position: fixed;
    top: -50px;
    left: 0;
    width: 100%;
    height: 300px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Sand Texture Overlay (above waves, below content) */
.sand-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/sand-texture-overlay.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    mix-blend-mode: overlay;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
    display: none !important;
    visibility: hidden;
}

.sand-overlay.show {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

/* Sand Texture Background (CSS-based) for project pages */
.sand-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #D4B896;
    background-image: url('../assets/sand-texture-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* Resume Button */
.resume-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.resume-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    pointer-events: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.resume-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.resume-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .resume-button-container {
        top: 15px;
        right: 15px;
    }
    
    .resume-btn {
        padding: 10px 18px;
        font-size: 12px;
        border-radius: 6px;
    }
}

/* Ensure all main content appears above waves */
.container {
    position: relative;
    z-index: 10;
}

.splash-screen {
    position: relative;
    z-index: 9999;
}

.logo-nav {
    position: relative;
    z-index: 1000;
}

/* Typography */
h1, h2 {
    font-family: 'Kalam', cursive;
    font-weight: 700;
    color: #303030;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #303030;
}

/* Projects page main heading - match hero title size */
.container header h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: #303030;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #303030;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #303030;
}

/* Logo Navigation */
.logo-nav {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1000;
}

.logo-nav img {
    width: 160px;
    height: 160px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo-nav img:hover {
    transform: scale(1.05);
}

/* Shell Navigation for project subpages */
.shell-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    text-align: left;
}

.shell-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    padding: 15px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    width: fit-content;
}

.shell-nav-btn:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    text-decoration: none !important;
}

.shell-nav-btn:visited {
    text-decoration: none !important;
}

.shell-nav-btn img {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.shell-nav-btn:hover img {
    transform: rotate(5deg);
    filter: 
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3))
        drop-shadow(0 0 0 2px rgba(153, 107, 61, 0.6))
        brightness(0.8);
}

.shell-nav-btn .shell-label {
    font-family: 'Kalam', cursive;
    font-size: 1.2rem;
    font-weight: 400;
    color: #303030;
    display: block;
    text-align: left;
    text-decoration: none !important;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ceb187;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-logo {
    width: 150px;
    height: 150px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 20px;
}

/* Navigation */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.nav-link {
    background: rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    color: #303030;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: rgba(244, 209, 168, 0.4);
    border-color: #f4d1a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 209, 168, 0.5);
}

/* Sleeping Cat Decoration */
.sleeping-cat {
    position: absolute;
    top: -50px;
    right: 20px;
    width: 80px;
    height: auto;
    z-index: 10;
    opacity: 0.9;
}

/* Vine Decorations on Cards */
.vine-card-decoration {
    position: absolute;
    width: 60px;
    height: auto;
    opacity: 1;
    z-index: 15;
    pointer-events: none;
    transform-origin: top center;
}

.vine-top-left {
    top: 0;
    left: -20px;
}

.vine-top-right {
    top: 0;
    right: -20px;
}

/* Vine1 specific scaling */
.vine-top-left.vine1 {
    transform: scale(0.75);
}

.vine-top-right.vine1 {
    transform: scale(0.9) scaleX(-1);
}

/* Vine2 specific scaling */
.vine-top-left.vine2 {
    transform: scale(0.3);
}

.vine-top-right.vine2 {
    transform: scale(0.45) scaleX(-1);
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 80px;
    padding: 20px;
    background: #996b3d;
    border-radius: 10px;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.projects-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./assets/wood-texture-overlay.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: soft-light;
    opacity: 0.1;
    pointer-events: none;
    border-radius: 10px;
}

/* Filter Chips */
.filter-container {
    margin: 30px 0;
}

.filter-chips {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid transparent;
    color: #303030;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-chip:hover {
    background: rgba(202, 161, 112, 0.3);
    border-color: #caa170;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(202, 161, 112, 0.4);
}

.filter-chip.active {
    background: linear-gradient(135deg, rgba(244, 209, 168, 0.4), rgba(202, 161, 112, 0.3));
    border-color: #caa170;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(202, 161, 112, 0.3);
}

.project-card.hidden {
    display: none;
}

.project-card {
    background: #ffffff;
    padding: 0;
    border-radius: 15px;
    text-decoration: none;
    color: #303030;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    background: #ffffff;
    transform: none;
    box-shadow: 
        inset 0 0 4px rgba(89, 59, 34, 1),
        inset 0 0 2px rgba(89, 59, 34, 1),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    font-family: 'Kalam', cursive;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #303030;
}

/* New Project Card Layout */
.project-image {
    width: 100%;
    height: 220px;
    margin: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #f5f5f5;
}

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

.project-content {
    flex: 1;
    padding: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.tag {
    background: rgba(153, 107, 61, 0.1);
    color: #996b3d;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(153, 107, 61, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.project-meta {
    font-size: 0.75rem;
    color: #303030;
    font-weight: 500;
    margin-top: auto;
    text-align: left;
}

.project-card p {
    font-size: 0.9rem;
    color: #505050;
    margin: 0;
}

/* Back Navigation */
.back-nav {
    margin-bottom: 30px;
}

.back-link {
    background: rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #303030;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-link:hover {
    background: rgba(244, 209, 168, 0.4);
    border-color: #f4d1a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 209, 168, 0.5);
}

/* Content Sections */
.content-section {
    background: rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(48, 48, 48, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    color: #303030;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #caa170;
    box-shadow: 0 0 10px rgba(202, 161, 112, 0.4);
}

.submit-btn {
    background: rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border: 2px solid #caa170;
    border-radius: 25px;
    color: #303030;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, rgba(244, 209, 168, 0.3), rgba(202, 161, 112, 0.3));
    border-color: #caa170;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(202, 161, 112, 0.4);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 80px 15px 15px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .filter-chips {
        gap: 10px;
    }
    
    .filter-chip {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-section {
        padding: 25px;
    }
    
    .logo-nav {
        top: 0px;
        left: 0px;
    }
    
    .logo-nav img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .content-section {
        padding: 20px;
    }
}

/* Contact Page Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 0px;
    align-items: start;
}

.contact-left,
.contact-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

.contact-left h2 {
    font-family: 'Kalam', cursive;
    font-size: 3rem;
    color: #303030;
    margin-bottom: 5px;
    text-align: left;
}

.contact-left p {
    font-size: 1rem;
    color: #303030;
    margin-bottom: 5px;
    text-align: left;
}

.contact-left p:last-of-type {
    margin-bottom: 15px;
    text-align: left;
    font-size: 0.9rem;
}

.contact-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #303030;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #996b3d;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.submit-btn {
    background: #996b3d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.submit-btn:hover {
    background: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 107, 61, 0.3);
}

.contact-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3,
.social-section h3 {
    font-family: 'Kalam', cursive;
    font-size: 1.8rem;
    color: #303030;
    margin-bottom: 20px;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #303030;
}

.contact-item .material-icons {
    color: #996b3d;
    font-size: 20px;
}

.social-section {
    margin-top: 40px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #303030;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #996b3d;
}

.social-link img {
    width: 24px;
    height: 24px;
}

.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-left h2 {
        font-size: 2rem;
    }
    
    .contact-info h3,
    .social-section h3 {
        font-size: 1.5rem;
    }
}

/* About Page Layout */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 10px;
    align-items: start;
}

.about-left {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.photo-container {
    position: relative;
    display: inline-block;
    transform: rotate(-6deg);
    width: min(80vw, 400px); /* Responsive width with max of 400px */
    max-width: 100%;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 8px solid white;
}

.sticker {
    position: absolute;
    object-fit: contain;
}

.cat-sticker {
    bottom: -20px;
    right: -20px;
    transform: rotate(15deg);
    width: 80px;
    height: auto;
}

.star-sticker {
    top: -30px;
    left: -30px;
    transform: rotate(-20deg);
    width: 90px;
    height: auto;
}

.about-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.intro-text {
    font-size: 1.1rem;
    color: #303030;
    font-style: italic;
    margin: 0;
}

.about-right h1 {
    font-family: 'Kalam', cursive;
    font-size: 3rem;
    color: #303030;
    margin: 0;
    text-align: left;
}

.about-right p {
    font-size: 1.1rem;
    color: #303030;
    line-height: 1.6;
    margin: 0;
}

.view-work-btn {
    background: #996b3d;
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 10px;
}

.view-work-btn:hover {
    background: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 107, 61, 0.3);
}

.about-bottom {
    margin-top: 30px;
    padding: 40px;
    text-align: left;
}

.about-bottom p {
    font-size: 1.1rem;
    color: #303030;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-link {
    color: #996b3d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #8B4513;
    text-decoration: underline;
}

.about-bottom p:last-child {
    font-family: 'Kalam', cursive;
    font-size: 1.6rem;
    text-align: center;
}

.gallery-container {
    margin: 40px 0;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #996b3d;
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #8B4513;
}

.gallery-scroll .gallery-item {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-scroll .gallery-item:hover {
    transform: scale(1.05);
}

.gallery-scroll .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-right {
        order: -1;
    }
    
    .photo-container {
        width: min(70vw, 250px); /* Smaller width for mobile */
    }
    
    .about-right h1 {
        font-size: 2.5rem;
    }
    
    .about-right {
        padding: 30px;
    }
    
    .gallery-scroll .gallery-item {
        width: 220px; /* Increased from 180px to 220px */
        height: 220px; /* Increased from 180px to 220px */
    }
}

/* Beach Homepage Styles */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-family: 'Kalam', cursive;
    font-size: 4rem;
    font-weight: 700;
    color: #303030;
    margin-bottom: 1rem;
    margin-top: 100px; /* Push title down below waves */
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #303030;
    margin-bottom: 0; /* Set to 0 for no gap */
    font-weight: 400;
    line-height: 1.3;
}

.shell-navigation {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin: 4rem 0;
    flex-wrap: wrap;
    align-items: flex-end;
}

.shell-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* V-shaped positioning with rotation */
.shell-btn:first-child {
    transform: translateY(80px) rotate(-6deg);
}

.shell-btn:nth-child(2) {
    transform: translateY(0px);
}

.shell-btn:last-child {
    transform: translateY(80px) rotate(6deg);
}

.shell-btn:hover {
    transform: translateY(-10px) scale(1.05);
}

/* V-shaped positioning with hover adjustments and rotation */
.shell-btn:first-child:hover {
    transform: translateY(60px) rotate(-6deg) scale(1.05);
}

.shell-btn:nth-child(2):hover {
    transform: translateY(-10px) scale(1.05);
}

.shell-btn:last-child:hover {
    transform: translateY(60px) rotate(6deg) scale(1.05);
}

.shell-image {
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.shell-btn:hover .shell-image {
    transform: rotate(5deg);
    filter: 
        drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3))
        drop-shadow(0 0 0 2px rgba(153, 107, 61, 0.6))
        brightness(0.8);
}

.shell-label {
    font-family: 'Kalam', cursive;
    font-size: 1.4rem;
    font-weight: 400;
    color: #303030;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.welcome-text {
    font-size: 1.3rem;
    color: #303030;
    line-height: 1.6;
    max-width: 600px;
    margin: 2rem auto 0;
}

.welcome-text p {
    margin-bottom: 0;
}



/* Copyright Text */
.copyright {
    color: #303030;
    font-size: 0.9rem;
    text-align: center;
    margin: 40px 20px 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 102, 102, 0.2);
}

/* Responsive Design for Beach Homepage */
@media (max-width: 768px) {
    .waves-wrapper {
        height: 200px; /* Smaller waves on mobile */
    }
    
    .hero-title {
        font-size: 3rem;
        margin-top: 100px; /* Moved up by 50px from 150px */
    }
    
    .hero-subtitle {
        font-size: 1.2rem; /* Reduced from 1.5rem to fit in single line */
        margin-bottom: 0; /* Set to 0 for no gap */
    }
    
    .shell-navigation {
        gap: 60px;
        margin: 3rem 0;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 20px;
    }
    
    .shell-btn {
        padding: 10px;
        gap: 8px;
        flex: 1;
        max-width: 120px;
    }
    
    /* Maintain prominent V-shape on tablets with rotation */
    .shell-btn:first-child {
        transform: translateY(60px) rotate(-6deg);
    }
    
    .shell-btn:nth-child(2) {
        transform: translateY(0px);
    }
    
    .shell-btn:last-child {
        transform: translateY(60px) rotate(6deg);
    }
    
    .shell-btn:first-child:hover {
        transform: translateY(45px) rotate(-6deg) scale(1.05);
    }
    
    .shell-btn:nth-child(2):hover {
        transform: translateY(-10px) scale(1.05);
    }
    
    .shell-btn:last-child:hover {
        transform: translateY(45px) rotate(6deg) scale(1.05);
    }
    
    .shell-image {
        width: 70px !important;
        height: 70px !important;
    }
    
    .shell-label {
        font-size: 1rem;
        line-height: 1.1;
    }
    
    .welcome-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .shell-navigation {
        gap: 30px;
        margin: 2rem 0;
        padding: 0 10px;
    }
    
    .shell-btn {
        padding: 8px;
        gap: 6px;
        max-width: 100px;
    }
    
    /* Maintain V-shape on mobile with rotation */
    .shell-btn:first-child {
        transform: translateY(40px) rotate(-6deg);
    }
    
    .shell-btn:nth-child(2) {
        transform: translateY(0px);
    }
    
    .shell-btn:last-child {
        transform: translateY(40px) rotate(6deg);
    }
    
    .shell-btn:first-child:hover {
        transform: translateY(30px) rotate(-6deg) scale(1.05);
    }
    
    .shell-btn:nth-child(2):hover {
        transform: translateY(-10px) scale(1.05);
    }
    
    .shell-btn:last-child:hover {
        transform: translateY(30px) rotate(6deg) scale(1.05);
    }
    
    .shell-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    .shell-label {
        font-size: 0.9rem;
        line-height: 1;
    }
    
    .welcome-text {
        font-size: 1.1rem;
    }
}

/* Shell throwing animation */
.throwing {
    position: fixed !important;
    left: 50% !important;
    top: 10% !important;
    transform: translate(-50%, -10%);
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease-in-out;
    z-index: 9999;
    opacity: 1 !important;
}

.throwing .shell-label {
    opacity: 0 !important;
    transition: opacity 0.2s ease;
}

.shell-hidden {
    opacity: 0;
    transition: opacity 0.4s;
}

/* Logo sparkle particles */
.logo-sparkle {
    position: fixed;
    z-index: 10020;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle at 30% 30%, #fff 0%, rgba(255,255,255,0.9) 30%, rgba(255,240,200,0.5) 55%, rgba(255,240,200,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity, filter;
    box-shadow:
        0 0 3px rgba(255,255,255,1),
        0 0 10px rgba(255,250,220,0.98),
        0 0 28px rgba(255,220,160,0.9),
        0 0 60px rgba(255,200,120,0.65);
    filter: blur(0.8px) saturate(1.3) contrast(1.1);
    mix-blend-mode: screen;
}

.logo-sparkle--pulse {
    animation: sparklePulse 2400ms ease-in-out infinite;
}

@keyframes sparklePulse {
    0% { filter: blur(0.6px) brightness(1); transform: scale(0.85); }
    40% { filter: blur(2.2px) brightness(2.2); transform: scale(1.12); }
    100% { filter: blur(0.6px) brightness(1); transform: scale(0.9); }
}

/* Project Metadata Styles - Final Working Version */

/* Skills tags - centered, brown background */
.metadata-skills-container {
    text-align: center;
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tag {
    background: #8B7355;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #8B7355;
}

/* Timeline text - dark color (#303030), centered */
.metadata-title-container {
    text-align: center;
    margin-bottom: 20px;
}

.project-subtitle {
    color: #303030;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Team card - content width, centered */
.metadata-team-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.team-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    width: auto;
}

.individual-project {
    color: #303030;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.individual-project .material-icons {
    font-size: 20px;
    color: #8B7355;
}

/* Project Content Styling */
.project-hero {
    margin: 60px 0;
    text-align: center;
}

.hero-image-container {
    margin-bottom: 30px;
}

.hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: #303030;
    margin: 0;
    font-style: italic;
}

.project-summary {
    margin: 40px 0;
    padding: 30px;
    background: rgba(139, 115, 85, 0.05);
    border-radius: 12px;
    border-left: 4px solid #8B7355;
}

.summary-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #303030;
    margin: 0;
    font-weight: 500;
}

.project-section {
    margin: 60px 0;
}

.project-section h2 {
    font-size: 2.5rem;
    color: #303030;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #303030;
    margin-bottom: 40px;
}

.video-section {
    margin: 40px 0;
    text-align: center;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile responsiveness for video container */
@media (max-width: 768px) {
    .video-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .video-container iframe {
        height: 315px; /* Smaller height for mobile */
    }
}

@media (max-width: 480px) {
    .video-container {
        padding: 0 15px;
    }
    
    .video-container iframe {
        height: 250px; /* Even smaller for very small screens */
    }
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.video-caption {
    margin-top: 20px;
    font-size: 1rem;
    color: #8B7355;
    font-style: italic;
    line-height: 1.5;
}

.research-gallery {
    margin-top: 30px;
}

.gallery-caption {
    margin-bottom: 25px;
    font-size: 1rem;
    color: #8B7355;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #8B7355;
}

.gallery-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-item.placeholder {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    border: 2px dashed #ccc;
}

.placeholder-content {
    text-align: center;
    color: #8B7355;
}

.placeholder-content .material-icons {
    font-size: 32px;
    margin-bottom: 8px;
}

.placeholder-content p {
    margin: 0;
    font-weight: 500;
}

.insight-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.insight-image-placeholder {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    border: 2px dashed #ddd;
}

.key-insights {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(139, 115, 85, 0.05);
    border-radius: 8px;
}

.insight-icon {
    color: #8B7355;
    font-size: 28px;
}

.insight-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #303030;
}

.solution-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.packaging-gallery {
    display: block;
    margin: 20px 0;
    text-align: center;
}

/* Research Images Styling */
.research-process {
    margin: 40px 0;
}

.research-image-container {
    margin: 30px 0;
    text-align: center;
}

.research-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

/* Research Images Styling */
.research-process {
    margin: 40px 0;
}

.research-image-container {
    margin: 30px 0;
    text-align: center;
}

.research-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

.research-image-small {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

.small-images-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.small-images-row .research-image-container {
    flex: 0 1 auto;
    margin: 0;
}

.research-text {
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #303030;
    text-align: left;
}

.research-headline {
    max-width: 800px;
    margin: 30px auto 15px auto;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.miro-link-container {
    text-align: center;
    margin: 30px 0;
}

.miro-thumbnail {
    transition: transform 0.3s ease;
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    object-fit: contain !important;
}

.miro-thumbnail:hover {
    transform: scale(1.05);
}

/* Insight Photo Styling */
.insight-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.photo-credit {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #303030;
}

/* Video Thumbnail Styling */
.video-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-thumbnail:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Simple Packaging Layout */
.packaging-gallery-simple {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.packaging-description-left {
    text-align: center;
}

.packaging-description-left p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #303030;
    max-width: 800px;
    margin: 0 auto;
}

.packaging-images-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.packaging-row {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.first-row {
    width: 100%;
}

.second-row {
    width: 100%;
}

.first-row .packaging-image {
    flex: 1;
    max-width: calc(33.333% - 10px);
}

.second-row .packaging-image {
    flex: 1;
    max-width: calc(50% - 7.5px);
}

.packaging-images-right .packaging-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
}

/* Additional hover effects for specific image types */
.hero-image.clickable-image:hover {
    transform: scale(1.02);
}

.miro-thumbnail.clickable-image:hover {
    transform: scale(1.05);
}

.insight-photo.clickable-image:hover {
    transform: scale(1.03);
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ccc;
}

.packaging-images-right .packaging-image:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .packaging-gallery-simple {
        gap: 30px;
    }
    
    .packaging-row {
        flex-direction: column;
        align-items: center;
    }
    
    .first-row .packaging-image,
    .second-row .packaging-image {
        max-width: 250px;
        flex: none;
    }
}

/* New Packaging Layout */
.packaging-gallery-new {
    max-width: 1000px;
    margin: 0 auto;
}

.packaging-description-top {
    text-align: center;
    margin-bottom: 40px;
}

.packaging-description-top p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #303030;
    max-width: 600px;
    margin: 0 auto;
}

.packaging-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.logo-feature {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.featured-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.packaging-process {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-row {
    display: flex;
    gap: 20px;
    justify-content: space-around;
}

.process-item {
    text-align: center;
    flex: 1;
}

.process-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.process-image:hover {
    transform: scale(1.05);
}

.process-label {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #303030;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .packaging-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .process-item {
        max-width: 250px;
        margin: 0 auto;
    }
}

.packaging-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .packaging-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .packaging-images {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
}

.solution-image, .packaging-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.solution-description, .packaging-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #303030;
}

.reflection-section {
    margin: 80px 0;
    text-align: center;
}

.logo-showcase {
    margin-bottom: 40px;
}

.project-logo {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.reflection-quote {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #303030;
    font-style: italic;
    margin: 40px 0;
    padding: 40px;
    background: rgba(139, 115, 85, 0.08);
    border-radius: 12px;
    border: none;
    position: relative;
}

.reflection-quote::before {
    content: '"';
    font-size: 4rem;
    color: #8B7355;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

.reflection-quote::after {
    content: '"';
    font-size: 4rem;
    color: #8B7355;
    position: absolute;
    bottom: -10px;
    right: 20px;
    font-family: serif;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .project-section h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gallery-thumbnail {
        height: 120px;
    }
    
    .insight-content, .solution-gallery, .packaging-gallery {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .key-insights {
        gap: 20px;
    }
    
    .insight-item {
        padding: 15px;
    }
    
    .summary-text {
        font-size: 1.1rem;
    }
    
    .reflection-quote {
        font-size: 1.1rem;
        padding: 50px 30px;
    }
    
    .reflection-quote::before {
        font-size: 3rem;
        top: 5px;
        left: 10px;
    }
    
    .reflection-quote::after {
        font-size: 3rem;
        bottom: 5px;
        right: 10px;
    }
}