/* ==========================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================== */
:root {
    /* Theme Colors from Palette */
    --color-dark: #324047;
    --color-dark-rgb: 50, 64, 71;
    --color-light: #EFEFEF;
    --color-light-rgb: 239, 239, 239;
    --color-cyan: #00CECE;
    --color-cyan-rgb: 0, 206, 206;
    --color-teal: #00A8A8;
    --color-teal-rgb: 0, 168, 168;

    /* Semantic Hues */
    --text-primary: #2d3a41;
    --text-secondary: #5e6f77;
    --whatsapp-color: #25D366;
    
    /* Layout & Styling Tokens */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-light);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    padding: 2rem 1rem;
}

/* Ambient Background Glows */
.bg-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

.bg-glow-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(0,206,206,0.6) 0%, rgba(0,168,168,0) 70%);
}

.bg-glow-2 {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(0,168,168,0.6) 0%, rgba(0,206,206,0) 70%);
    animation-delay: -5s;
}

.bg-glow-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(50,64,71,0.2) 0%, rgba(50,64,71,0) 60%);
    width: 40vw;
    height: 40vw;
    animation-duration: 20s;
}

@keyframes pulseGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

/* ==========================================
   LAYOUT CONTAINER
   ========================================== */
.container {
    width: 100%;
    max-width: 1024px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s var(--transition-normal);
}

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

/* ==========================================
   HEADER / PROFILE CARD
   ========================================== */
.profile-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(var(--color-dark-rgb), 0.06);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-teal));
}

/* Profile Photo Ring */
.profile-image-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 1.5rem;
}

.glow-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
    z-index: 1;
    animation: rotateGlow 8s linear infinite;
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 5px solid #fff;
    box-shadow: 0 8px 24px rgba(var(--color-dark-rgb), 0.1);
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Typography Inside Profile */
.profile-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    color: var(--color-teal);
    letter-spacing: 0.2px;
    margin-bottom: 0.5rem;
}

.profile-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Availability Pulse Indicator */
.pulse-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--color-cyan-rgb), 0.08);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(var(--color-cyan-rgb), 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(var(--color-cyan-rgb), 0.7);
    animation: pulse 1.8s infinite;
}

.pulse-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-teal);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--color-cyan-rgb), 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(var(--color-cyan-rgb), 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--color-cyan-rgb), 0);
    }
}

/* ==========================================
   MAIN CONTENT: STRUCTURES GRID
   ========================================== */
.structures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.structure-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(var(--color-dark-rgb), 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.structure-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(var(--color-dark-rgb), 0.08), 0 0 25px rgba(var(--color-cyan-rgb), 0.08);
    border-color: rgba(var(--color-cyan-rgb), 0.25);
}

/* Card Header & Logos */
.card-header {
    margin-bottom: 2rem;
}

.logo-wrapper {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.2rem;
}

.da-vinci-logo-bg {
    /* Optional slight styling or padding adjustment for da vinci logo */
    padding: 5px 0;
}

.structure-logo {
    max-height: 100%;
    max-width: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(var(--color-dark-rgb), 0.03));
}

.structure-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.structure-location-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-teal);
    background: rgba(var(--color-teal-rgb), 0.07);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

/* Contact List & Items */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(var(--color-cyan-rgb), 0.15);
}

.contact-icon-wrapper {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(var(--color-teal-rgb), 0.08);
    color: var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.contact-item:hover .contact-icon-wrapper {
    transform: scale(1.08);
}

.contact-icon {
    width: 20px;
    height: 20px;
}

/* Specific Theme for WhatsApp Icon Row */
.whatsapp-theme {
    background: rgba(37, 211, 102, 0.08);
    color: var(--whatsapp-color);
}

.contact-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    margin-bottom: 0.1rem;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action Circle Buttons */
.action-btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-teal-rgb), 0.15);
    background: #fff;
    color: var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}

.action-btn-circle svg {
    width: 16px;
    height: 16px;
}

.action-btn-circle:hover {
    background: var(--color-teal);
    color: #fff;
    border-color: var(--color-teal);
    box-shadow: 0 4px 10px rgba(var(--color-teal-rgb), 0.25);
    transform: scale(1.05);
}

.action-btn-circle:active {
    transform: scale(0.95);
}

/* ==========================================
   BUTTONS (CTA) SECTION
   ========================================== */
.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
}

.cta-button svg {
    width: 18px;
    height: 18px;
}

/* Primary Button (Teal Gradient / Solid) */
.primary-btn {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-teal) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--color-teal-rgb), 0.2);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--color-teal-rgb), 0.3), 0 0 15px rgba(var(--color-cyan-rgb), 0.2);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Outline Button */
.outline-btn {
    background: #fff;
    color: var(--color-dark);
    border: 1px solid rgba(var(--color-dark-rgb), 0.15);
}

.outline-btn:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
    background: rgba(var(--color-teal-rgb), 0.03);
    transform: translateY(-2px);
}

.outline-btn:active {
    transform: translateY(0);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ==========================================
   TOAST NOTIFICATION (COPY FEEDBACK)
   ========================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(50, 64, 71, 0.95);
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================== */
@media (max-width: 820px) {
    body {
        padding: 1.5rem 1rem;
    }
    
    .profile-card {
        padding: 2.5rem 1.5rem 2rem;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .structures-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .structure-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-image-container {
        width: 130px;
        height: 130px;
    }

    .profile-name {
        font-size: 1.6rem;
    }

    .profile-title {
        font-size: 0.95rem;
    }

    .profile-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .contact-item {
        padding: 0.7rem 0.8rem;
        gap: 0.75rem;
    }

    .contact-icon-wrapper {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .contact-icon {
        width: 18px;
        height: 18px;
    }

    .contact-value {
        font-size: 0.88rem;
    }

    .card-actions {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.25rem;
    }
}
