/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Classic Nautical Theme */
    --navy-blue: #1e3a5f;
    --navy-light: #2c5282;
    --white: #ffffff;
    --red-accent: #dc2626;
    --gold: #f59e0b;
    --rope-brown: #8b4513;
    
    /* Sunset Theme */
    --sunset-orange: #ff6b35;
    --sunset-pink: #f7931e;
    --sunset-purple: #8b5cf6;
    
    /* Tropical Theme */
    --tropical-turquoise: #06b6d4;
    --tropical-coral: #f97316;
    --tropical-sand: #fbbf24;
    
    /* Stormy Theme */
    --storm-gray: #4b5563;
    --storm-blue: #1e40af;
    --storm-white: #f3f4f6;
    
    /* Default Theme */
    --primary-color: var(--navy-blue);
    --secondary-color: var(--navy-light);
    --accent-color: var(--red-accent);
    --text-color: var(--white);
    --background-color: var(--navy-blue);
}

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Theme Classes */
body.sunset-theme {
    --primary-color: var(--sunset-orange);
    --secondary-color: var(--sunset-pink);
    --accent-color: var(--sunset-purple);
    --background-color: linear-gradient(135deg, var(--sunset-orange) 0%, var(--sunset-pink) 50%, var(--sunset-purple) 100%);
}

body.tropical-theme {
    --primary-color: var(--tropical-turquoise);
    --secondary-color: #0891b2;
    --accent-color: var(--tropical-coral);
    --background-color: linear-gradient(135deg, var(--tropical-turquoise) 0%, var(--tropical-coral) 100%);
}

body.stormy-theme {
    --primary-color: var(--storm-gray);
    --secondary-color: var(--storm-blue);
    --accent-color: var(--storm-white);
    --background-color: linear-gradient(135deg, var(--storm-gray) 0%, var(--storm-blue) 100%);
}

/* Control Panel */
.control-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.control-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Animated Sky */
.sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, #87ceeb 0%, #98d8e8 50%, #b0e0e6 100%);
    z-index: -2;
    transition: all 1s ease;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.8;
    animation: float-cloud 20s infinite linear;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50px;
}

.cloud-1 {
    width: 80px;
    height: 40px;
    top: 20%;
    left: -100px;
    animation-duration: 25s;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud-1::after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 10px;
}

.cloud-2 {
    width: 60px;
    height: 30px;
    top: 40%;
    left: -80px;
    animation-duration: 30s;
    animation-delay: -10s;
}

.cloud-2::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
}

.cloud-2::after {
    width: 50px;
    height: 30px;
    top: -10px;
    right: 15px;
}

.cloud-3 {
    width: 70px;
    height: 35px;
    top: 60%;
    left: -90px;
    animation-duration: 35s;
    animation-delay: -20s;
}

.cloud-3::before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 12px;
}

.cloud-3::after {
    width: 55px;
    height: 35px;
    top: -12px;
    right: 12px;
}

@keyframes float-cloud {
    0% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(calc(100vw + 100px));
    }
}

/* Stars */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    transition: opacity 1s ease;
}

body.night-mode .stars {
    opacity: 1;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        20px 20px white, 40px 70px white, 90px 40px white, 130px 80px white,
        180px 30px white, 220px 90px white, 270px 50px white, 310px 20px white,
        350px 70px white, 400px 40px white, 450px 80px white, 500px 30px white;
    animation: twinkle 3s infinite;
}

.stars::after {
    left: 50px;
    top: 30px;
    animation-delay: -1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Seagulls */
.seagull {
    position: fixed;
    width: 40px;
    height: 20px;
    z-index: 10;
    animation: fly-seagull 15s infinite linear;
}

.seagull::before,
.seagull::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: flap-wings 0.5s infinite alternate;
}

.seagull::before {
    left: 0;
    transform-origin: right center;
}

.seagull::after {
    right: 0;
    transform-origin: left center;
}

.seagull-1 {
    top: 15%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.seagull-2 {
    top: 25%;
    animation-duration: 22s;
    animation-delay: -8s;
}

.seagull-3 {
    top: 35%;
    animation-duration: 20s;
    animation-delay: -15s;
}

@keyframes fly-seagull {
    0% {
        left: -60px;
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(5px);
    }
    75% {
        transform: translateY(-5px);
    }
    100% {
        left: calc(100vw + 60px);
        transform: translateY(0);
    }
}

@keyframes flap-wings {
    0% { transform: rotateZ(-20deg); }
    100% { transform: rotateZ(20deg); }
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

/* Ship's Wheel */
.ship-wheel {
    position: absolute;
    top: 0;
    right: 50px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.ship-wheel:hover {
    transform: rotate(360deg);
}

.ship-wheel::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 8px solid var(--gold);
    border-radius: 50%;
    background: radial-gradient(circle, var(--rope-brown) 30%, transparent 30%);
}

.wheel-spokes {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 4px;
    background: var(--gold);
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 0 4px var(--gold),
        0 0 0 4px var(--gold) rotate(45deg),
        0 0 0 4px var(--gold) rotate(90deg),
        0 0 0 4px var(--gold) rotate(135deg);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Lighthouse */
.lighthouse {
    position: fixed;
    top: 20%;
    right: 5%;
    width: 60px;
    height: 200px;
    z-index: 5;
}

.lighthouse-beam {
    position: absolute;
    top: 10px;
    left: -100px;
    width: 200px;
    height: 20px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    transform-origin: 110px center;
    animation: rotate-beam 4s infinite linear;
    opacity: 0.7;
}

@keyframes rotate-beam {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lighthouse-top {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 40px solid var(--red-accent);
}

.lighthouse-body {
    width: 40px;
    height: 120px;
    background: linear-gradient(to bottom, white 0%, white 45%, red 45%, red 55%, white 55%, white 100%);
    margin: 0 auto;
}

.lighthouse-base {
    width: 50px;
    height: 40px;
    background: var(--gray);
    margin: 0 auto;
    border-radius: 5px 5px 0 0;
}

/* Quote Container */
.quote-container {
    text-align: center;
    margin: 40px 0;
}

.quote-display {
    position: relative;
    margin: 20px auto;
    max-width: 600px;
}

.scroll-border {
    background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc6 100%);
    border: 3px solid var(--rope-brown);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(139, 69, 19, 0.1);
    position: relative;
}

.scroll-border::before,
.scroll-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--rope-brown);
    border-radius: 50%;
    top: 10px;
}

.scroll-border::before {
    left: 10px;
}

.scroll-border::after {
    right: 10px;
}

.quote-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #2c1810;
    margin-bottom: 15px;
    line-height: 1.4;
}

.quote-author {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: #5d4037;
    font-style: italic;
}

/* Quote Controls */
.quote-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.anchor-btn {
    background: var(--navy-blue);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px 50px 0 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.anchor-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.anchor-btn::before {
    content: '⚓';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
}

.message-bottle {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px 20px 5px 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.message-bottle:hover {
    transform: rotate(5deg) scale(1.05);
}

.message-bottle::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 8px;
    background: #8b4513;
    border-radius: 3px 3px 0 0;
}

/* Compass Rose */
.compass-rose {
    position: fixed;
    bottom: 20%;
    left: 5%;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.compass-rose:hover {
    transform: rotate(45deg);
}

.compass-rose::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
}

.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 50px;
    background: var(--red-accent);
    transform: translate(-50%, -100%);
    transform-origin: center bottom;
    z-index: 2;
}

.compass-needle::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 15px solid var(--red-accent);
}

.compass-directions {
    position: absolute;
    width: 100%;
    height: 100%;
}

.compass-directions span {
    position: absolute;
    font-weight: bold;
    color: var(--gold);
    font-size: 18px;
}

.n { top: 5px; left: 50%; transform: translateX(-50%); }
.e { right: 5px; top: 50%; transform: translateY(-50%); }
.s { bottom: 5px; left: 50%; transform: translateX(-50%); }
.w { left: 5px; top: 50%; transform: translateY(-50%); }

/* Sail Container */
.sail-container {
    position: fixed;
    bottom: 30%;
    right: 15%;
    width: 150px;
    height: 200px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sail-container.active {
    opacity: 1;
}

.sail {
    width: 120px;
    height: 150px;
    background: linear-gradient(135deg, white 0%, #f0f8ff 100%);
    border: 2px solid #ddd;
    border-radius: 10px 10px 0 0;
    position: relative;
    animation: sail-wind 3s infinite ease-in-out;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes sail-wind {
    0%, 100% { transform: skewX(0deg); }
    50% { transform: skewX(5deg); }
}

.sail-quote {
    font-family: 'Dancing Script', cursive;
    font-size: 0.9rem;
    color: #2c1810;
    text-align: center;
    line-height: 1.3;
}

.mast {
    position: absolute;
    left: 50%;
    bottom: -50px;
    width: 4px;
    height: 80px;
    background: var(--rope-brown);
    transform: translateX(-50%);
}

/* Treasure Chest */
.treasure-chest {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.treasure-chest:hover {
    transform: scale(1.1);
}

.chest-lid {
    width: 80px;
    height: 30px;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    border-radius: 40px 40px 5px 5px;
    position: relative;
    border: 2px solid #654321;
}

.chest-lid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
}

.chest-body {
    width: 80px;
    height: 30px;
    background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
    border-radius: 5px;
    border: 2px solid #654321;
    margin-top: -2px;
}

.favorites-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--red-accent);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Share Container */
.share-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.share-btn {
    background: var(--navy-blue);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Waves Animation */
.waves {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: -1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff" opacity="0.4"></path></svg>') repeat-x;
    animation: wave-move 10s infinite linear;
}

.wave-1 {
    animation-duration: 15s;
    opacity: 0.6;
}

.wave-2 {
    animation-duration: 20s;
    animation-delay: -5s;
    opacity: 0.4;
}

.wave-3 {
    animation-duration: 25s;
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Rope Dividers */
.rope-divider {
    position: absolute;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        var(--rope-brown) 0px,
        var(--rope-brown) 20px,
        #a0522d 20px,
        #a0522d 25px
    );
    border-radius: 10px;
}

.rope-top {
    top: 100px;
}

.rope-bottom {
    bottom: 150px;
}

/* Signal Flags */
.signal-flags {
    position: fixed;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flag {
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 16px;
    animation: flag-wave 2s infinite ease-in-out;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.flag:hover {
    transform: scale(1.1);
}

.flag-a { background: #ff0000; animation-delay: 0s; }
.flag-b { background: #0000ff; animation-delay: 0.2s; }
.flag-c { background: #00ff00; animation-delay: 0.4s; }
.flag-d { background: #ffff00; color: black; animation-delay: 0.6s; }

@keyframes flag-wave {
    0%, 100% { transform: skewX(0deg); }
    50% { transform: skewX(10deg); }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-ship {
    width: 80px;
    height: 40px;
    background: white;
    border-radius: 40px 40px 0 0;
    position: relative;
    animation: ship-bob 2s infinite ease-in-out;
}

.loading-ship::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid white;
}

.loading-ship::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background: #8b4513;
}

@keyframes ship-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.loading-text {
    margin-top: 20px;
    color: white;
    font-size: 1.2rem;
    font-family: 'Dancing Script', cursive;
}

/* Quotes Gallery */
.quotes-gallery {
    margin-top: 80px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 100px;
}

/* Prominent Quotes Gallery - when positioned at top */
.quotes-gallery-prominent {
    margin-top: 20px !important;
    margin-bottom: 40px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-header p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: var(--gold);
    opacity: 0.9;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.quote-card {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(44, 82, 130, 0.85) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.quote-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--gold);
}

.quote-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--gold), var(--accent-color), var(--gold));
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.quote-card:hover::before {
    opacity: 0.5;
}

.quote-card-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 15px;
    font-style: italic;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.quote-card-text::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

.quote-card-author {
    font-family: 'Dancing Script', cursive;
    font-size: 1.1rem;
    color: var(--gold);
    text-align: right;
    margin-top: 10px;
}

.quote-card-author::before {
    content: '— ';
}

.quote-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-card-favorite {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.quote-card-favorite:hover {
    background: var(--gold);
    color: var(--navy-blue);
    transform: scale(1.05);
}

.quote-card-favorite.favorited {
    background: var(--gold);
    color: var(--navy-blue);
}

.quote-card-share {
    display: flex;
    gap: 8px;
}

.share-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.share-icon:hover {
    transform: scale(1.1);
}

.twitter-share { background: #1da1f2; color: white; }
.facebook-share { background: #4267b2; color: white; }
.pinterest-share { background: #bd081c; color: white; }

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .ship-wheel {
        width: 60px;
        height: 60px;
        right: 20px;
    }
    
    .quote-text {
        font-size: 1.4rem;
    }
    
    .control-panel {
        top: 10px;
        right: 10px;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .control-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .lighthouse {
        width: 40px;
        height: 120px;
    }
    
    .compass-rose {
        width: 80px;
        height: 80px;
    }
    
    .sail-container {
        width: 100px;
        height: 150px;
    }
    
    .sail {
        width: 80px;
        height: 100px;
        padding: 15px;
    }
    
    .sail-quote {
        font-size: 0.8rem;
    }
    
    .quotes-gallery {
        margin-top: 40px;
        padding: 20px;
    }
    
    .gallery-header h2 {
        font-size: 2rem;
    }
    
    .quotes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .quote-card {
        padding: 20px;
    }
    
    .quote-card-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .quote-card-share {
        justify-content: center;
    }
}

/* Weather Effects */
body.stormy-weather .sky {
    background: linear-gradient(to bottom, #4b5563 0%, #374151 50%, #1f2937 100%);
}

body.stormy-weather .cloud {
    background: #6b7280;
    opacity: 0.9;
}

body.stormy-weather .cloud::before,
body.stormy-weather .cloud::after {
    background: #6b7280;
}

body.stormy-weather .waves {
    animation-duration: 8s;
}

body.stormy-weather .wave {
    height: 120px;
}

/* Time of Day Effects */
body.dawn-mode .sky {
    background: linear-gradient(to bottom, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

body.day-mode .sky {
    background: linear-gradient(to bottom, #87ceeb 0%, #98d8e8 50%, #b0e0e6 100%);
}

body.dusk-mode .sky {
    background: linear-gradient(to bottom, #f97316 0%, #ea580c 50%, #c2410c 100%);
}

body.night-mode .sky {
    background: linear-gradient(to bottom, #1e293b 0%, #0f172a 50%, #020617 100%);
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--accent-color);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

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

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-color); }
}

/* Parallax Effect */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.parallax-back {
    z-index: -3;
    opacity: 0.3;
}

.parallax-mid {
    z-index: -2;
    opacity: 0.6;
}

.parallax-front {
    z-index: -1;
    opacity: 0.9;
}