/* Base styles */
:root {
    --primary-color: #00eaff;
    --primary-dark: #00b8cc;
    --bg-dark: #1a1a1a;
    --bg-darker: #111;
    --bg-card: #2c2c2c;
    --text-light: #fff;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --transition-speed: 0.3s;
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem; /* Account for fixed header */
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Improved focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Header & Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 100;
    align-items: center;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    width: auto;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.logo:hover {
    color: var(--primary-dark);
}

.logo img {
    height: 2rem;
    width: auto;
    flex-shrink: 0;
}

.logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #00eaff;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('images/hero-bg.jpg') no-repeat center/cover;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1, .hero p, .hero .cta-button {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 0;
}

.hero p {
    font-size: 1.5rem;
}

.cta-button, .learn-more, .submit-button {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.cta-button:hover, .submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.learn-more {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    width: fit-content;
    margin: auto auto 0;
}

.learn-more:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.rentals, .booking {
    padding: 4rem 2rem;
    text-align: center;
}

.rentals h2, .booking h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.category {
    margin-bottom: 4rem;
}

.category:last-child {
    margin-bottom: 2rem;
}

.category h3 {
    font-size: 2rem;
    margin: 0 0 2rem 0;
    color: #00eaff;
    padding-top: 0;
}

.category:first-child h3 {
    padding-top: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.item {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: 10px;
    transition: transform var(--transition-speed), 
                box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    will-change: transform; /* Optimize animations */
}

.item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 234, 255, 0.1);
}

.item .content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: var(--spacing-sm);
    transition: transform var(--transition-speed);
    cursor: pointer;
    will-change: transform;
}

.item:hover img {
    transform: scale(1.05);
}

.item h4 {
    font-size: 1.25rem;
    margin: 0;
    color: #00eaff;
}

.item p {
    margin: 0.5rem 0 1rem 0;
    line-height: 1.5;
}

.learn-more {
    color: #00eaff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 1px solid #00eaff;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
    width: fit-content;
    margin: auto auto 0;
}

.learn-more:hover {
    background: #00eaff;
    color: #1a1a1a;
    transform: translateY(-2px);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

input, select, textarea {
    padding: 0.8rem;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #333;
    color: var(--text-light);
    transition: border-color var(--transition-speed);
    width: 100%;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-button {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #00b8cc;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #111;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    align-items: center;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 1.5rem; /* Set fixed height for consistent alignment */
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.social-links i {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Emoji specific styling */
.social-links a:last-child {
    font-size: 1.7rem; /* Slightly larger to match Facebook icon */
    line-height: 1;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .sticky-nav {
        padding: 1rem;
        background: none;
        position: fixed;
    }
    
    .hamburger {
        display: block;
        position: fixed;
        right: 1rem;
        top: 1rem;
        width: 44px;
        height: 44px;
        padding: 10px;
        z-index: 102;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 50%;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .logo {
        font-size: 1.2rem;
        padding-right: 0;
        width: auto;
        background: rgba(0, 0, 0, 0.8);
        padding: 0.5rem 1rem;
        border-radius: 25px;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .logo img {
        height: 1.8rem;
        width: auto;
    }
    
    .logo span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.97), rgba(0, 20, 40, 0.97));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        gap: var(--spacing-md);
        transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
        padding: 5rem var(--spacing-md) var(--spacing-md);
        margin: 0;
        z-index: 101;
        transform: translateX(100%);
        overflow-y: auto;
    }
    
    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    
    .nav-menu a {
        font-size: 1.8rem;
        font-weight: 500;
        letter-spacing: 1px;
        position: relative;
        padding: 0.5rem 0;
        display: inline-block;
    }
    
    .nav-menu a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: #00eaff;
        transition: width 0.3s ease;
    }
    
    .nav-menu a:hover::after {
        width: 100%;
    }
    
    .nav-menu.active {
        right: 0;
        transform: translateX(0);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .rentals, .booking {
        padding: 2rem 1rem;
    }
    
    .category {
        margin-bottom: 4rem;
    }
    
    .category h3 {
        font-size: 1.75rem;
        margin: 0 0 1.5rem 0;
        padding-top: 2.5rem;
    }
    
    .item img {
        height: 180px;
    }
    
    .item p {
        margin: 0.5rem 0 0.75rem 0;
    }
    
    .learn-more {
        margin-top: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .sticky-nav {
        padding: 0.8rem;
    }
    
    .nav-menu {
        padding: 4rem 1.5rem 2rem;
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
        padding: 0.4rem 0;
    }
    
    .rentals h2, .booking h2 {
        font-size: 2rem;
    }
    
    .rentals, .booking {
        padding: 1.5rem 1rem;
    }
    
    .category {
        margin-bottom: 3rem;
    }
    
    .category h3 {
        font-size: 1.5rem;
        margin: 0 0 1rem 0;
        padding-top: 2rem;
    }
    
    .grid {
        gap: 1.5rem;
    }
    
    .item img {
        height: 160px;
    }
    
    .item p {
        margin: 0.5rem 0 0.75rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid #ff0000;
}

/* Form Styles */
.form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
}

.equipment-selection {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.equipment-selection h3 {
    margin: 0 0 1.5rem 0;
    color: #00eaff;
    font-size: 1.2rem;
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-group h4 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.checkbox-group label {
    display: block;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.checkbox-group label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.8rem;
    accent-color: #00eaff;
}

@media screen and (max-width: 768px) {
    .equipment-selection {
        padding: 1rem;
    }
    
    .checkbox-group label {
        padding: 0.7rem 0.5rem;
    }
}

/* Disable button styles */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    background: #1f1f1f;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

.contact-content {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info, .quick-contact {
    flex: 1;
    max-width: 500px;
}

.contact h3 {
    color: #00eaff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact a {
    color: #00eaff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact a:hover {
    color: #00b8cc;
}

.contact .cta-button {
    display: inline-block;
    margin-top: 1rem;
    color: #1a1a1a;
}

@media screen and (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .contact-info, .quick-contact {
        width: 100%;
        padding: 0 1rem;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 234, 255, 0.2), 
                0 0 60px rgba(0, 234, 255, 0.1);
    transition: box-shadow 0.3s ease;
    margin: auto;
}

.close-lightbox {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

/* Make grid images show pointer cursor */
.grid .item img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.grid .item img:hover {
    transform: scale(1.02);
}

/* Loading optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    .sticky-nav, .cta-button, .learn-more {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    font-weight: bold;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Form Styles */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-field label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

input[type="date"] {
    cursor: pointer;
    position: relative;
    min-height: 2.8rem;
    background: #333;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    width: 40px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300eaff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--text-light);
}

input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

/* Add a placeholder style when empty */
input[type="date"]:invalid {
    color: rgba(255, 255, 255, 0.5);
}