/* CSS Variables for theme management */
:root {
    --bg-dark-navy: #0a0f1c;
    --bg-light-navy: #1a1f2e;
    --accent-green: #a4ff4d;
    --accent-green-dark: #8ee02f;
    --accent-orange: #ff6b47;
    --accent-blue: #4dd9ff;
    --accent-blue-dark: #2fc7ef;
    --water-blue: #0ea5e9;
    --water-blue-light: #38bdf8;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --border-color: rgba(164, 255, 77, 0.2);
    --border-color-blue: rgba(77, 217, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark-navy) 0%, var(--bg-light-navy) 50%, #0f1419 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--accent-green);
    color: var(--bg-dark-navy);
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.skip-to-content:focus {
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-green);
    text-decoration: none;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 20px; 
    list-style: none;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links li::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 999;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a:focus {
    color: var(--accent-green);
    background-color: rgba(164, 255, 77, 0.1);
}

.nav-links > li > a.active {
    color: var(--accent-green);
    background-color: rgba(164, 255, 77, 0.1);
}

.nav-links .sub-arrow svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.nav-links li:hover > a .sub-arrow svg,
.nav-links li:focus-within > a .sub-arrow svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%; 
    left: 50%;
    background: var(--bg-light-navy);
    border-radius: 12px;
    padding: 15px;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    visibility: hidden;
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s, visibility 0.3s ease 0.1s;
    list-style: none;
    z-index: 1000;
}

.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu,
.sub-menu:hover,
.sub-menu:focus-within {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
    transition-delay: 0s;
}

.sub-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    width: 100%;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sub-menu li a:hover,
.sub-menu li a:focus {
    background-color: rgba(164, 255, 77, 0.1);
    transform: translateX(5px);
    color: var(--accent-green) !important; 
}

.sub-menu-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.sub-menu-text-wrap {
    display: flex;
    flex-direction: column;
}

.sub-menu-title {
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.sub-menu-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sub-menu li a:hover .sub-menu-title,
.sub-menu li a:focus .sub-menu-title {
    color: var(--accent-green);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 2rem;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
    z-index: 9999;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
    transform-origin: center;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 20px;
    background: 
        radial-gradient(circle at 20% 80%, rgba(164, 255, 77, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 71, 0.1) 0%, transparent 40%);
}

/* Monitor Container */
.monitor-container {
    position: relative;
    max-width: 1000px; 
    width: 100%;
    perspective: 1200px;
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0; 
    transform-style: preserve-3d;
}

.monitor-container:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.02);
}

.monitor-frame {
    background: linear-gradient(145deg, #2a2d3e, #1a1d2e);
    border-radius: 24px;
    padding: 20px; 
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    position: relative;
}

.monitor-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-orange), #4ade80);
    border-radius: 24px;
    z-index: -1;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
}

.monitor-screen {
    background: linear-gradient(135deg, var(--bg-dark-navy) 0%, #111827 100%);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 550px;
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: center; 
    gap: 40px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

/* Hero Content */
.hero-content {
    flex: 1;
    min-width: 300px; 
    max-width: 400px;
    z-index: 10;
    opacity: 0; 
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent-green), var(--text-primary), #4ade80);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

/* Marina specific title styles */
.marina-screen h1 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.marina-screen h1 .main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue), var(--text-primary), var(--water-blue-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

.marina-screen h1 .subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    font-style: italic;
    opacity: 0.9;
    color: var(--text-secondary);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-weight: 300;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    color: var(--bg-dark-navy);
    padding: 15px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(164, 255, 77, 0.3);
}

.cta-button:focus {
    outline: 3px solid var(--accent-green);
    outline-offset: 4px;
}

/* Parking Grid */
.parking-grid {
    display: grid;
    grid-template-columns: repeat(12, 28px);
    grid-template-rows: repeat(7, 28px);
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0; 
}

/* Marina Container */
.marina-container {
    position: relative;
    max-width: 1000px; 
    width: 100%;
    perspective: 1200px;
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0; 
    transform-style: preserve-3d;
}

.marina-container:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.02);
}

.marina-frame {
    background: linear-gradient(145deg, #2a2d3e, #1a1d2e);
    border-radius: 24px;
    padding: 20px; 
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    position: relative;
}

.marina-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #4dd9ff, var(--accent-orange), #0ea5e9);
    border-radius: 24px;
    z-index: -1;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
}

.marina-screen {
    background: linear-gradient(135deg, var(--bg-dark-navy) 0%, #111827 100%);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: center; 
    gap: 40px;
    border: 1px solid var(--border-color-blue);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

/* Marina Grid - Boat Slips */
.marina-grid {
    display: grid;
    grid-template-columns: repeat(8, 45px);
    grid-template-rows: repeat(6, 60px);
    gap: 12px;
    padding: 25px;
    background: linear-gradient(135deg, 
        rgba(14, 165, 233, 0.1) 0%, 
        rgba(77, 217, 255, 0.05) 50%, 
        rgba(56, 189, 248, 0.1) 100%);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(77, 217, 255, 0.15);
    flex-shrink: 0;
    position: relative;
}

/* Water effect overlay */
.marina-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(77, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    border-radius: 12px;
    animation: waterShimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes waterShimmer {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

.parking-spot {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

/* Boat Slip */
.boat-slip {
    width: 45px;
    height: 60px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
}

.parking-spot.occupied {
    background: linear-gradient(135deg, var(--accent-orange), #ff4757);
    box-shadow: 0 0 20px rgba(255, 107, 71, 0.5);
}

.parking-spot.free {
    background: linear-gradient(135deg, #4ade80, #2ed573);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

.parking-spot:hover,
.parking-spot:focus {
    transform: scale(1.4) translateY(-5px);
    z-index: 10;
    filter: brightness(1.2);
    outline: 2px solid var(--text-primary);
}

/* Boat slip states */
.boat-slip.occupied {
    background: linear-gradient(135deg, var(--accent-orange), #ff4757);
    box-shadow: 0 0 25px rgba(255, 107, 71, 0.4);
    border-color: rgba(255, 107, 71, 0.3);
}

.boat-slip.free {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    box-shadow: 0 0 25px rgba(77, 217, 255, 0.4);
    border-color: rgba(77, 217, 255, 0.3);
}

.boat-slip:hover {
    transform: scale(1.2) translateY(-8px);
    z-index: 10;
    filter: brightness(1.3);
    box-shadow: 0 8px 30px rgba(77, 217, 255, 0.6);
}

/* Boat icons for occupied slips */
.boat-slip.occupied::after {
    content: '⛵';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Floating animation for boats - only on hover to avoid conflict */
.boat-slip.occupied:not(:hover) {
    animation: boatFloat 3s ease-in-out infinite;
}

@keyframes boatFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Fix hover state for occupied boats */
.boat-slip:hover,
.boat-slip:focus {
    transform: scale(1.2) translateY(-8px) !important;
    animation: none !important;
}

/* Legend */
.legend {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 12px;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.legend-item:last-child { 
    margin-bottom: 0; 
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin-right: 10px;
}

.legend-dot.occupied { 
    background: var(--accent-orange); 
}

.legend-dot.free { 
    background: #4ade80; 
}

/* Marina legend specific */
.marina-screen .legend {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(77, 217, 255, 0.2);
}

.marina-screen .legend-dot.occupied { 
    background: var(--accent-orange); 
}

.marina-screen .legend-dot.free { 
    background: var(--water-blue); 
}

/* Solutions Section */
.solutions {
    padding: 120px 0;
    background-color: rgba(0,0,0,0.2);
}

.solutions h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 80px;
    color: var(--accent-green);
}

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

.solution-card {
    background: linear-gradient(145deg, #1e2336, #141824);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(164, 255, 77, 0.15) 0%, transparent 40%);
    transition: opacity 0.5s ease;
    opacity: 0;
    transform-origin: center;
}

.solution-card:hover,
.solution-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--border-color);
}

.solution-card:hover::before,
.solution-card:focus-within::before {
    opacity: 1;
}

.solution-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    border-radius: 16px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark-navy);
    transition: transform 0.3s ease;
}

.solution-icon svg {
    width: 32px;
    height: 32px;
}

.solution-card:hover .solution-icon,
.solution-card:focus-within .solution-icon {
    transform: scale(1.1) rotate(-5deg);
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.solution-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--bg-dark-navy);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section h3 {
    color: var(--accent-green);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-section ul li a:hover,
.footer-section ul li a:focus {
    color: var(--accent-green);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: var(--bg-light-navy);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-green);
}

.newsletter-form input.error {
    border-color: var(--accent-orange);
}

.newsletter-form button {
    background: var(--accent-green);
    color: var(--bg-dark-navy);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover,
.newsletter-form button:focus {
    background: var(--accent-green-dark);
}

.newsletter-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    background: rgba(164, 255, 77, 0.1);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    display: block;
}

.form-message.error {
    background: rgba(255, 107, 71, 0.1);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    display: block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links { 
    display: flex; 
    gap: 30px; 
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent-green);
}

/* Notification */
#notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    color: var(--bg-dark-navy);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(164, 255, 77, 0.3);
    z-index: 2000;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#notification.show {
    transform: translateX(-50%) translateY(0);
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.loading-spinner.show {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .monitor-screen,
    .marina-screen {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 0;
        order: 1;
    }
    
    .parking-grid {
        margin-left: 0;
        order: 2;
    }
    
    .legend {
        position: static;
        margin: 20px auto 0;
        order: 3;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .parking-grid {
        grid-template-columns: repeat(8, 28px);
        grid-template-rows: repeat(5, 28px);
        transform: scale(0.9);
    }
    
    .marina-grid {
        grid-template-columns: repeat(6, 40px);
        grid-template-rows: repeat(5, 55px);
        gap: 10px;
        transform: scale(0.9);
    }
    
    .boat-slip {
        width: 40px;
        height: 55px;
    }
    
    .marina-container {
        transform: none; 
    }
    
    .monitor-container {
        transform: none;
    }
    
    .legend {
        padding: 10px 15px;
    }
    
    /* Mobile Navigation */
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        inset: 0 0 0 30%;
        flex-direction: column;
        padding: min(20vh, 10rem) 2rem;
        gap: 2rem;
        background: rgba(10, 15, 28, 0.95);
        backdrop-filter: blur(1rem);
        transform: translateX(100%);
        transition: transform 350ms ease-out;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav-links[data-visible="true"] { 
        transform: translateX(0%); 
    }
    
    .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 10px 0 0 20px;
        min-width: auto;
        width: 100%;
    }
    
    .nav-links li:hover > .sub-menu,
    .nav-links li:focus-within > .sub-menu { 
        display: block; 
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .parking-grid {
        grid-template-columns: repeat(6, 26px);
        grid-template-rows: repeat(4, 26px);
        gap: 6px;
    }
    
    .parking-spot {
        width: 26px;
        height: 26px;
    }
    
    .marina-grid {
        grid-template-columns: repeat(5, 38px);
        grid-template-rows: repeat(4, 50px);
        gap: 8px;
    }
    
    .boat-slip {
        width: 38px;
        height: 50px;
    }
    
    .marina-screen {
        padding: 20px;
    }
    
    .monitor-screen {
        padding: 20px;
        min-height: auto;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .nav-links {
        inset: 0;
    }
    
    .hero {
        min-height: auto;
        padding: 80px 20px 40px;
    }
    
    .solutions {
        padding: 80px 0;
    }
    
    .solutions h2 {
        margin-bottom: 40px;
    }
    
    .solutions-grid {
        gap: 20px;
    }
    
    .solution-card {
        padding: 30px 20px;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .cta-button,
    .parking-grid,
    #notification {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-content {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --accent-green: #00ff00;
        --accent-orange: #ff6600;
        --text-secondary: rgba(255, 255, 255, 0.9);
    }
    
    .cta-button {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}