/* ============================================================================
   GLOBAL STYLES & VARIABLES
   ============================================================================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #0088ff;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-gray: #8a8a8a;
    --border-color: #1a1a1a;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* ============================================================================
   CUSTOM CURSOR - Desktop Only
   ============================================================================ */
.cursor,
.cursor-follower {
    display: none;
}

@media (min-width: 1025px) {
    .cursor {
        display: block;
        width: 20px;
        height: 20px;
        border: 2px solid var(--primary-color);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.2s ease, border-color 0.2s ease;
        mix-blend-mode: difference;
    }

    .cursor-follower {
        display: block;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(0, 255, 136, 0.3);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9998;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        mix-blend-mode: difference;
    }
    
    body {
        cursor: none;
    }
}

@media (max-width: 1024px) {
    body, button, input, textarea, select, a {
        cursor: auto !important;
    }
}

/* === Contact page navbar (extracted from index) === */
.navbar{
    position: fixed; /* override: fixed on contact page */
    top: 0; left: 0; width: 100%;
    padding: 10px clamp(12px, 5vw, 50px);
    height: clamp(48px, 12vw, 60px);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    background-color: rgba(10,10,10,0.097);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .navbar a{
    color:#fff; text-decoration:none; font-weight:200;
    font-size: clamp(0.65rem,1.5vw,0.8rem);
  }
  .logo-img{ height:clamp(20px,5vw,40px); width:auto; object-fit:contain; }
  .nav-links{ display:flex; gap:clamp(20px,5vw,40px); flex:1; justify-content:center; }
  .nav-actions{ display:flex; gap:clamp(8px,2vw,15px); align-items:center; }
  .action-btn{
    width:clamp(32px,8vw,40px); height:clamp(32px,8vw,40px); border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:rgba(24,24,24,0.1);
    border:1px solid rgba(255,255,255,0.2);
    transition:all .3s ease; padding:0; cursor:pointer; color:#fff;
  }
  .action-btn:hover{ background:rgba(255,255,255,0.2); transform:scale(1.1); }
  .call-btn:hover{ background:rgba(0,194,255,0.2); border-color:#00c3ff95; }
  
  /* Hamburger + mobile menu (from index) */
  .hamburger-menu{ display:none; background:none; border:0; cursor:pointer; padding:0; z-index:101; }
  .hamburger-menu .bar{
    display:block; width:25px; height:2px; background:#fff; margin:5px 0;
    transition:transform .3s, opacity .3s;
  }
  .hamburger-menu.is-active .bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .hamburger-menu.is-active .bar:nth-child(2){ opacity:0; }
  .hamburger-menu.is-active .bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  
  .nav-menu{
    position:fixed; inset:0 0 0 0; width:100%; height:100vh;
    background:rgba(0,0,0,0.9);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display:flex; flex-direction:column; justify-content:center; align-items:center;
    gap:40px; transform: translateX(100%); transition: transform .4s cubic-bezier(.76,0,.24,1);
    z-index:99;
  }
  .nav-menu.is-active{ transform: translateX(0); }
  .nav-menu a{ color:#fff; text-decoration:none; font-size:clamp(1.2rem,4vw,1.5rem); font-weight:300; }
  
  /* Responsive: show hamburger on tablet/mobile like index does */
  @media (max-width: 768px){
    .hamburger-menu{ display:block; }
    .nav-links{ display:none; }
    .logo-img{ height: clamp(24px,4vw,30px); }
    .nav-actions{ gap: clamp(8px,1.5vw,12px); }
    .action-btn{ width: clamp(32px,6vw,38px); height:clamp(32px,6vw,38px); }
  }
  
  /* Optional: add top padding so content doesn't sit under fixed navbar */
  body{ padding-top: clamp(48px, 10vw, 64px); }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

/* ============================================================================
   CONTACT SECTION - SWAPPED LAYOUT
   ============================================================================ */
.contact-section {
    color: #fff;
    padding: clamp(80px, 15vw, 150px) clamp(15px, 5vw, 50px) clamp(60px, 10vw, 100px);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 500;
    letter-spacing: clamp(1px, 1.5vw, 2px);
    display: block;
    text-align: center;
    margin: 0 auto clamp(40px, 8vw, 80px);
    position: relative;
}

/* ============================================================================
   SWAPPED GRID: Form LEFT (1.2fr), Contact Info + Map RIGHT (1fr)
   ============================================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(40px, 8vw, 80px);
    align-items: start;
    width: 100%;
}

/* ============================================================================
   CONTACT INFO + MAP WRAPPER (Now on RIGHT side)
   ============================================================================ */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(30px, 5vw, 50px);
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 3vw, 25px);
    width: 100%;
}

.info-item label {
    display: block;
    color: #888;
    font-size: clamp(0.65rem, 1.3vw, 0.8rem);
    margin-bottom: clamp(6px, 1vw, 10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p,
.info-item a {
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
}

.info-item a:hover {
    color: #00c2ff;
    transition: color 0.3s ease;
}

/* ============================================================================
   FORM WITH IMAGE BACKGROUND - OVERLAY LAYOUT (Now on LEFT side)
   ============================================================================ */
.form-image-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    border-radius: 16px;
    overflow: hidden;
}

/* Background Image Layer */
.form-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.form-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 136, 255, 0.15));
    pointer-events: none;
    animation: overlayPulse 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes overlayPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Form Overlay Layer */
.form-section {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3rem);
    min-height: 600px;
}

/* ============================================================================
   FORM CONTAINER SIZE CONTROLS
   ============================================================================ */
.form-container {
    width: 100%;
    max-width: 500px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   FORM TITLE WITH GLITCH EFFECT
   ============================================================================ */
.form-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    animation: lineExpand 2s ease-in-out infinite;
}

@keyframes lineExpand {
    0%, 100% { transform: scaleX(0.5); }
    50% { transform: scaleX(1); }
}

/* Glitch Effect on Form Title */
.glitch {
    position: relative;
    color: var(--text-light);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-color);
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--secondary-color);
    animation: glitch-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(43% 0 1% 0); }
    60% { clip-path: inset(25% 0 58% 0); }
    80% { clip-path: inset(54% 0 7% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(65% 0 15% 0); }
    20% { clip-path: inset(12% 0 63% 0); }
    40% { clip-path: inset(78% 0 5% 0); }
    60% { clip-path: inset(32% 0 51% 0); }
    80% { clip-path: inset(85% 0 8% 0); }
    100% { clip-path: inset(45% 0 40% 0); }
}

/* ============================================================================
   ENQUIRY BUTTONS
   ============================================================================ */
.enquiry-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.enquiry-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.enquiry-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-light);
}

.enquiry-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 136, 255, 0.1));
    border-color: var(--primary-color);
    color: var(--text-light);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3), transparent);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.enquiry-btn.active .btn-glow {
    transform: translate(-50%, -50%) scale(1.5);
}

/* ============================================================================
   INPUT GROUPS
   ============================================================================ */
.input-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 0.9rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.input-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8a8a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

.input-group label {
    position: absolute;
    top: 0.9rem;
    left: 0;
    color: var(--text-gray);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label,
.input-group select:focus ~ label,
.input-group select:valid ~ label {
    top: -1.3rem;
    font-size: 0.75rem;
    color: var(--primary-color);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

.input-group input:focus ~ .input-border,
.input-group textarea:focus ~ .input-border,
.input-group select:focus ~ .input-border {
    width: 100%;
}

/* ============================================================================
   SUBMIT BUTTON
   ============================================================================ */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--bg-darker);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover .btn-particles {
    opacity: 1;
}

/* ============================================================================
   SUCCESS MESSAGE
   ============================================================================ */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 90%;
    max-width: 300px;
}

.success-message.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.success-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message p {
    font-size: 0.95rem;
}

/* ============================================================================
   MAP SECTION
   ============================================================================ */
.map {
    padding: 0;
    width: 100%;
    position: relative;
    z-index: 5;
    background: transparent;
    box-sizing: border-box;
}

.map-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.map-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 194, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(110%) brightness(90%);
    border: none;
}

.map p {
    text-align: center;
    margin-top: clamp(10px, 1.5vw, 15px);
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
}

.map .nav-link {
    color: #00c2ff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
}

.map .nav-link:hover {
    color: #fff;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
    background-color: #000;
    font-family: 'Roboto Mono', monospace;
    color: #fff;
    padding: clamp(20px, 4vw, 30px) clamp(15px, 5vw, 50px);
    border-top: 1px solid #2222222e;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: clamp(15px, 3vw, 30px);
    flex-wrap: wrap;
    box-sizing: border-box;
}

.footer-columns {
    display: flex;
    gap: clamp(40px, 8vw, 100px);
    flex-wrap: wrap;
}

.footer-column h4 {
    color: #888;
    font-size: clamp(0.65rem, 1.3vw, 0.8rem);
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: clamp(8px, 1vw, 12px);
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: clamp(8px, 1vw, 11px);
}

.footer-column a,
.footer-column p {
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.6rem, 1.2vw, 0.7rem);
    line-height: 1.6;
    margin: 0;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 0.7;
}

.footer-copyright p {
    margin: 0;
    color: #888;
    font-size: clamp(0.55rem, 1.1vw, 0.6rem);
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Tablet - 768px to 1024px */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: clamp(30px, 5vw, 60px);
    }

    .form-image-wrapper {
        min-height: 550px;
    }

    .form-section {
        min-height: 550px;
    }

    .form-container {
        max-width: 100%;
    }

    .enquiry-buttons {
        flex-direction: row;
        gap: 1rem;
    }
}

/* Mobile - 768px and below - FORM FIRST, THEN DETAILS, THEN MAP */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-menu a {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .hamburger-menu.is-active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.is-active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Reorder elements for mobile: Form first, Details second, Map last */
    .contact-grid {
        display: flex;
        flex-direction: column;
    }

    .form-image-wrapper {
        order: 1;
        min-height: 500px;
    }

    .contact-info-wrapper {
        order: 2;
    }

    .contact-info {
        order: 1;
    }

    .map {
        order: 2;
    }

    .form-section {
        min-height: 500px;
        padding: clamp(1.5rem, 3vw, 2rem);
    }

    .form-container {
        max-width: 100%;
        padding: clamp(1.2rem, 3vw, 1.8rem);
    }

    .form-title {
        font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    }

    .enquiry-buttons {
        flex-direction: column;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 25px;
        height: 25px;
    }

    .form-image-wrapper {
        min-height: 450px;
    }

    .form-section {
        min-height: 450px;
        padding: 1rem;
    }

    .form-container {
        padding: 1rem;
    }
}

/* Extra Small Mobile - 360px and below */
@media (max-width: 360px) {
    .form-image-wrapper {
        min-height: 420px;
    }

    .form-section {
        min-height: 420px;
    }
}

/* ============================================================================
   ACCESSIBILITY & PREFERENCES
   ============================================================================ */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #00ff00;
        --secondary-color: #00ffff;
        --border-color: #333333;
    }

    .enquiry-btn.active {
        background: rgba(0, 255, 136, 0.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cursor,
    .cursor-follower {
        display: none !important;
    }
}
