/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Color Variables */
    --bg-dark: #040d1a;
    --navy-deep: #061224;
    --navy-light: #0a192f;
    --navy-glass: rgba(6, 18, 36, 0.65);
    
    /* Gold Theme Colors */
    --gold-primary: #d4af37;
    --gold-hover: #e5c158;
    --gold-glow: rgba(212, 175, 55, 0.25);
    
    /* Logo Brand Colors */
    --purple-logo: #51247a;
    --orange-logo: #f58220;
    
    /* Typography Colors */
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.45);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-logo: 'Playball', cursive;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Split-Screen Background Panels */
.split-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    z-index: 0;
    overflow: hidden;
}

.split-panel {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Left Panel: International (Amalfi Coast) */
.left-panel {
    background-image: url('images/amalfi.jpg');
    background-size: cover;
    background-position: center;
}

/* Right Panel: Sri Lankan Landscape (Misty Ella/Tea Field) */
.right-panel {
    background-image: url('images/ella.jpg');
    background-size: cover;
    background-position: center;
}

/* Panel Overlays */
.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(4, 13, 26, 0.45) 0%, 
        rgba(6, 18, 36, 0.8) 100%
    );
    transition: background 0.8s ease, opacity 0.8s ease;
    z-index: 1;
}

/* Hover Expanding Effect */
.split-bg-container:hover .split-panel:not(:hover) {
    flex: 0.8;
    filter: brightness(0.5) saturate(0.7) blur(2px);
}

.split-bg-container:hover .split-panel:hover {
    flex: 1.25;
    filter: brightness(1.05) saturate(1.1);
}

/* Side Labels */
.panel-label {
    position: absolute;
    bottom: 80px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--text-dim);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    user-select: none;
    z-index: 2;
    transition: color 0.4s ease, letter-spacing 0.4s ease;
}

.left-panel .panel-label {
    left: 30px;
    transform: rotate(-90deg);
    transform-origin: left bottom;
}

.right-panel .panel-label {
    right: 30px;
    transform: rotate(90deg);
    transform-origin: right bottom;
    text-align: right;
}

.split-panel:hover .panel-label {
    color: var(--gold-primary);
    letter-spacing: 0.45em;
}

/* Main Container and Center Overlay */
.main-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 24px;
    pointer-events: none;
}

/* Glassmorphism content card */
.glass-card {
    width: 100%;
    max-width: 580px;
    padding: 56px 48px;
    border-radius: 28px;
    background: var(--navy-glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4), 
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 100px rgba(4, 13, 26, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 36px;
    text-align: center;
    pointer-events: auto;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.55), 
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 120px rgba(4, 13, 26, 0.6);
}

/* Cursor Glow Effect on Card */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(212, 175, 55, 0.08), 
        transparent 50%
    );
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
}

/* Card content ordering */
.header, .content, .interaction, .footer {
    position: relative;
    z-index: 2;
}

/* Header & Logo styling */
.header {
    display: flex;
    justify-content: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 5px;
}

.logo-img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.logo-img:hover {
    transform: scale(1.03);
}

/* Content Area */
.content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.headline {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-white);
    margin: 0;
    text-wrap: balance;
}

.description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    text-wrap: pretty;
}

/* Form and Interaction */
.interaction {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: stretch;
}

.input-group {
    position: relative;
    flex-grow: 1;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: var(--text-white);
    outline: none;
    transition: all 0.3s ease;
}

/* Floating Label styling */
.input-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dim);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(4, 13, 26, 0.4);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.08);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    transform: translateY(-135%);
    font-size: 0.75rem;
    color: var(--gold-primary);
    font-weight: 500;
}

/* Submit Button */
.submit-btn {
    padding: 16px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--orange-logo) 0%, var(--gold-primary) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(245, 130, 32, 0.25);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 130, 32, 0.4);
    background: linear-gradient(135deg, #ff9233 0%, var(--gold-hover) 100%);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(245, 130, 32, 0.25);
}

/* Button shine reflection animation */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.35), 
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.75s ease;
}

.submit-btn:hover .btn-shine {
    left: 125%;
}

/* Form Feedback States */
.form-feedback {
    font-size: 0.85rem;
    text-align: left;
    margin-top: 4px;
    padding-left: 4px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.35s ease;
}

.form-feedback.success {
    opacity: 1;
    height: auto;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-feedback.error {
    opacity: 1;
    height: auto;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Footer Section */
.footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    width: 100%;
}

/* Contact Details Group */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
    text-align: center;
    max-width: 90%;
}

.contact-icon {
    width: 16px;
    height: 16px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

a.contact-item:hover {
    color: var(--text-white);
}

#phoneLink:hover .contact-icon {
    transform: scale(1.15) rotate(5deg);
    transition: transform 0.2s ease;
}

/* Social Icon Row */
.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.social-icon:hover {
    color: var(--bg-dark);
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: translateY(-4px);
    box-shadow: 0 6px 18px var(--gold-glow);
}

/* Responsive Media Queries */

/* Tablet & Mobile Landscape Viewports */
@media (max-width: 768px) {
    .split-bg-container {
        flex-direction: column;
    }
    
    .split-panel {
        width: 100%;
        height: 50%;
    }
    
    .split-bg-container:hover .split-panel:not(:hover) {
        flex: 0.85;
        height: 42.5%;
    }
    
    .split-bg-container:hover .split-panel:hover {
        flex: 1.15;
        height: 57.5%;
    }

    .left-panel .panel-label {
        left: 20px;
        bottom: 20px;
        transform: none;
        transform-origin: initial;
    }

    .right-panel .panel-label {
        right: 20px;
        bottom: 20px;
        transform: none;
        transform-origin: initial;
    }
    
    .main-container {
        padding: 40px 16px;
    }
    
    .glass-card {
        padding: 40px 24px;
        gap: 28px;
    }
    .logo-img {
        max-height: 75px;
    }

    .headline {
        font-size: 1.75rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 14px;
    }
    
    .submit-btn {
        padding: 16px;
        width: 100%;
    }

    .footer {
        gap: 20px;
        padding-top: 24px;
    }
}

/* Small Mobile Viewports */
@media (max-width: 400px) {
    .glass-card {
        padding: 32px 16px;
        gap: 24px;
    }
    .logo-img {
        max-height: 60px;
    }

    .headline {
        font-size: 1.5rem;
    }
}

/* Shake Animation for Invalid Inputs */
.shake {
    animation: shakeAnim 0.4s ease-in-out;
}

@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

