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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-transform: lowercase;
    background: #2a5f7f;
    color: #4a6b7d;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    letter-spacing: 0.3px;
}

html {
    scroll-behavior: smooth;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(107, 162, 197, 0.92);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(100, 180, 220, 0.2);
}

.nav-name {
    color: #c5e5f5;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.8px;
}

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

nav a {
    color: #b0d8f0;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

nav a:hover {
    background: rgba(100, 180, 220, 0.25);
    color: #e0f4ff;
    transform: translateY(-2px);
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.content {
    max-width: 800px;
    width: 100%;
    background: rgba(230, 245, 255, 0.93);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(100, 180, 220, 0.3);
}

h1 {
    font-size: 3rem;
    color: #2c5f8d;
    margin-bottom: 1rem;
    font-weight: 400;
}

h2 {
    font-size: 2rem;
    color: #2c5f8d;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid rgba(100, 180, 220, 0.4);
    padding-bottom: 0.5rem;
    font-weight: 400;
}

h3 {
    font-size: 1.3rem;
    color: #2c5f8d;
    margin-bottom: 0.3rem;
    font-weight: 400;
}

p {
    font-size: 1.1rem;
    color: #4a6b7d;
}

#home .content {
    text-align: center;
    background: rgba(230, 245, 255, 0.93);
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post {
    padding: 1.5rem;
    background: rgba(200, 230, 255, 0.5);
    border-radius: 15px;
    border-left: 4px solid #64b4dc;
    transition: all 0.3s ease;
}

.post:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(100, 180, 220, 0.2);
}

.date {
    color: #7a9aaa;
    font-size: 0.9rem;
}

.older-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.older-posts.hidden {
    display: none;
}

.show-more {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: #64b4dc;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: lowercase;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 500;
}

.show-more:hover {
    background: #52a0cc;
    transform: scale(1.02);
}

ul {
    list-style: none;
    margin-top: 1rem;
}

li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.resume-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: #64b4dc;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

.resume-link:hover {
    background: #52a0cc;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 180, 220, 0.3);
}

.content a {
    color: #2c5f8d;
    text-decoration: underline;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

.content a:hover {
    color: #64b4dc;
}

.see-all-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(100, 180, 220, 0.6);
    color: #2c5f8d;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}

.see-all-button:hover {
    background: rgba(100, 180, 220, 0.8);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(100, 180, 220, 0.3);
}

.idea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.idea-card {
    padding: 2rem 1rem;
    background: rgba(200, 230, 255, 0.5);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.idea-card:hover {
    transform: translateY(-5px);
    border-color: #64b4dc;
    box-shadow: 0 5px 20px rgba(100, 180, 220, 0.2);
}

/* Ensure interactive elements show cursor */
button, a, input, textarea, select {
    cursor: pointer;
}

/* Canvas for pixel ocean */
canvas {
    display: block;
}

/* Ocean Control Panel Island */
.ocean-island-controls {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(230, 245, 255, 0.93);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(100, 180, 220, 0.3);
    z-index: 9999;
    min-width: 180px;
    max-height: calc(100vh - 100px);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: top 0.4s ease, right 0.4s ease;
}

.island-header {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c5f8d;
    margin-bottom: 0.8rem;
    text-align: center;
    padding: 0.4rem;
    border-bottom: 2px solid rgba(100, 180, 220, 0.3);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.island-header:hover {
    background: rgba(100, 180, 220, 0.15);
    border-radius: 8px;
}

.header-text {
    flex: 1;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.ocean-island-controls.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.ocean-island-controls.collapsed .header-text {
    font-size: 0.9rem;
}

.ocean-island-controls.collapsed .header-text::before {
    content: 'ocean controls';
}

.ocean-island-controls:not(.collapsed) .header-text::before {
    content: 'ocean controls';
}

.ocean-island-controls.collapsed .island-header {
    margin-bottom: 0;
    border-bottom: none;
}

.controls-content {
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
    flex: 1;
    min-height: 0;
}

.controls-content::-webkit-scrollbar {
    width: 6px;
}

.controls-content::-webkit-scrollbar-track {
    background: rgba(100, 180, 220, 0.2);
    border-radius: 3px;
}

.controls-content::-webkit-scrollbar-thumb {
    background: #64b4dc;
    border-radius: 3px;
}

.controls-content::-webkit-scrollbar-thumb:hover {
    background: #52a0cc;
}

.ocean-island-controls.collapsed .controls-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.control-group {
    margin-bottom: 0.8rem;
}

.control-group label {
    display: block;
    font-size: 0.75rem;
    color: #2c5f8d;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.control-group input[type="range"] {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: rgba(100, 180, 220, 0.3);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #64b4dc;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #64b4dc;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.value-display {
    display: inline-block;
    font-size: 0.65rem;
    color: #2c5f8d;
    margin-top: 0.15rem;
    font-weight: 500;
}

.island-button {
    width: 100%;
    padding: 0.6rem;
    background: #64b4dc;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.4rem;
}

.island-button:hover {
    background: #52a0cc;
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(100, 180, 220, 0.3);
}

/* Floating Action Buttons Container */
.floating-buttons {
    position: fixed;
    top: 80px;
    right: 220px;
    display: flex;
    gap: 10px;
    z-index: 9999;
    transition: top 0.4s ease, right 0.4s ease;
}

.floating-btn {
    background: rgba(230, 245, 255, 0.93);
    color: #2c5f8d;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(100, 180, 220, 0.3);
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    text-transform: lowercase;
    font-family: inherit;
    white-space: nowrap;
}

.floating-btn:hover {
    background: rgba(200, 230, 255, 0.95);
    color: #1a3a52;
    transform: scale(1.05);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.floating-btn.paused {
    background: rgba(100, 180, 220, 0.6);
    color: white;
}

.floating-btn.paused:hover {
    background: rgba(100, 180, 220, 0.8);
}

/* Content hiding for "sail the world" mode */
section.hidden-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

section {
    transition: opacity 0.4s ease;
}

nav.hidden-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

nav {
    transition: opacity 0.4s ease;
}

/* Sail the world mode - reposition buttons */
.floating-buttons.sail-mode {
    top: 20px;
    right: 220px;
}

.ocean-island-controls.sail-mode {
    top: 20px;
    right: 20px;
}


@media (max-width: 768px) {
    nav {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-name {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    nav a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

    .content {
        padding: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .idea-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Make ocean controls smaller on mobile */
    .ocean-island-controls {
        top: 120px;
        right: 10px;
        padding: 1rem;
        min-width: 180px;
        font-size: 0.85rem;
    }

    .floating-buttons {
        top: 120px;
        right: 10px;
        left: 10px;
        flex-direction: column;
    }

    .floating-btn {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }

    .ocean-island-controls {
        top: 230px;
    }
}

    .island-header {
        font-size: 0.95rem;
    }

    .control-group label {
        font-size: 0.75rem;
    }

    .island-button {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
