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

:root {
    /* DBBS Brand Colors - From Logo */
    --primary: #6BAE46;
    --primary-rgb: 107, 174, 70;
    --primary-dark: #2D5016;
    --primary-medium: #4A8B3A;
    --primary-light: rgba(107, 174, 70, 0.1);
    --primary-gradient: linear-gradient(135deg, #6BAE46 0%, #2D5016 100%);
    --cover-gradient: linear-gradient(135deg, #6BAE46 0%, #4A8B3A 50%, #2D5016 100%);
    
    /* Modern Minimalist Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --background: #ffffff;
    --surface: #f9fafb;
    --surface-hover: #f3f4f6;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s ease;
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-muted: #9ca3af;
        --background: #111827;
        --surface: #1f2937;
        --surface-hover: #374151;
        --border: #374151;
        --border-light: #4b5563;
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    }
}

[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --background: #111827;
    --surface: #1f2937;
    --surface-hover: #374151;
    --border: #374151;
    --border-light: #4b5563;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --background: #ffffff;
    --surface: #f9fafb;
    --surface-hover: #f3f4f6;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Typography */
html {
    font-size: 16px;
    line-height: 1.6;
}

/* Status Bar Color Variables - Production Approach */
:root {
    --status-bar-loading: #2D5016;
    --status-bar-light: #ffffff;
    --status-bar-dark: #111827;
}

/* iOS Status Bar Integration */
@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .loading-screen {
        padding-top: calc(env(safe-area-inset-top) + var(--space-6));
        padding-bottom: calc(env(safe-area-inset-bottom) + var(--space-6));
    }
    
    .loading-progress {
        top: env(safe-area-inset-top);
    }
    
    .header {
        top: env(safe-area-inset-top);
        padding-top: 0;
    }
    
    .container {
        padding-top: calc(60px + env(safe-area-inset-top));
    }
}

/* Ensure seamless status bar integration */
body {
    background-color: var(--background);
    transition: background-color 0.3s ease;
}

body.loading {
    background-color: #2D5016;
}

/* Ensure perfect status bar integration */
html {
    background-color: #2D5016;
}

html:not(.loading) {
    background-color: var(--background);
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen - Visible by default */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #2D5016;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--space-6);
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(107, 174, 70, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(107, 174, 70, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
    pointer-events: none;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Hide progress bar when loading complete */
.loading-progress.hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-content {
    text-align: center;
    color: white;
    width: 100%;
    max-width: 300px;
}

.loading-logo {
    margin-bottom: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.beam-animation {
    position: relative;
    width: 110px;
    height: 105px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Energy beams radiating from center */
.beam-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, transparent 40%, rgba(107, 174, 70, 0.1) 45%, transparent 55%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: energyWave 3s ease-in-out 2s infinite;
    -moz-animation: energyWave 3s ease-in-out 2s infinite;
    animation: energyWave 3s ease-in-out 2s infinite;
    border-radius: 50%;
    opacity: 0;
}

.beam-square {
    position: absolute;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #6BAE46 0%, #4A8B3A 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(107, 174, 70, 0.3);
    opacity: 0;
    transform: scale(0) rotate(180deg);
    filter: blur(2px) brightness(1.2);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Perfect logo spacing - consistent across all devices */
.beam-square.top-left {
    top: 5px;
    left: 5px;
    animation: beamSequenceA 8s ease-out 0.2s infinite;
}

.beam-square.top-right {
    top: 0;
    right: 5px;
    animation: beamSequenceB 8s ease-out 0.5s infinite;
}

.beam-square.bottom-left {
    bottom: 5px;
    left: 5px;
    animation: beamSequenceC 8s ease-out 0.8s infinite;
}

.beam-square.bottom-right {
    bottom: 5px;
    right: 5px;
    animation: beamSequenceD 8s ease-out 1.1s infinite;
}

/* Seamless Animation Sequences - No Mobile Flickering */
@keyframes beamSequenceA {
    /* Assembly Phase: 0-12.5% (1s of 8s) */
    0% {
        opacity: 0;
        transform: translate(-150px, -150px) scale(0.2) rotate(180deg);
        filter: blur(8px) brightness(2);
        box-shadow: 0 0 0 rgba(107, 174, 70, 0);
    }
    8.75% {
        opacity: 0.9;
        transform: translate(0, 0) scale(1.15) rotate(10deg);
        filter: blur(1px) brightness(1.3);
        box-shadow: 0 12px 48px rgba(107, 174, 70, 0.8);
    }
    12.5% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
        filter: blur(0) brightness(1);
        box-shadow: 0 8px 32px rgba(107, 174, 70, 0.5);
    }
    /* Pulse Phase: 25-87.5% repeating */
    25%, 87.5% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(107, 174, 70, 0.5);
    }
    56.25% {
        opacity: 0.85;
        transform: scale(1.05);
        box-shadow: 0 12px 48px rgba(107, 174, 70, 0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(107, 174, 70, 0.5);
    }
}

@keyframes beamSequenceB {
    0% {
        opacity: 0;
        transform: translate(150px, -150px) scale(0.2) rotate(180deg);
        filter: blur(8px) brightness(2);
        box-shadow: 0 0 0 rgba(107, 174, 70, 0);
    }
    8.75% {
        opacity: 0.9;
        transform: translate(0, 0) scale(1.15) rotate(-10deg);
        filter: blur(1px) brightness(1.3);
        box-shadow: 0 12px 48px rgba(107, 174, 70, 0.8);
    }
    12.5% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
        filter: blur(0) brightness(1);
        box-shadow: 0 8px 32px rgba(107, 174, 70, 0.5);
    }
    25%, 87.5% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(107, 174, 70, 0.5);
    }
    56.25% {
        opacity: 0.85;
        transform: scale(1.05);
        box-shadow: 0 12px 48px rgba(107, 174, 70, 0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(107, 174, 70, 0.5);
    }
}

@keyframes beamSequenceC {
    0% {
        opacity: 0;
        transform: translate(-150px, 150px) scale(0.2) rotate(180deg);
        filter: blur(8px) brightness(2);
        box-shadow: 0 0 0 rgba(107, 174, 70, 0);
    }
    8.75% {
        opacity: 0.9;
        transform: translate(0, 0) scale(1.15) rotate(-10deg);
        filter: blur(1px) brightness(1.3);
        box-shadow: 0 12px 48px rgba(107, 174, 70, 0.8);
    }
    12.5% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
        filter: blur(0) brightness(1);
        box-shadow: 0 8px 32px rgba(107, 174, 70, 0.5);
    }
    25%, 87.5% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(107, 174, 70, 0.5);
    }
    56.25% {
        opacity: 0.85;
        transform: scale(1.05);
        box-shadow: 0 12px 48px rgba(107, 174, 70, 0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(107, 174, 70, 0.5);
    }
}

@keyframes beamSequenceD {
    0% {
        opacity: 0;
        transform: translate(150px, 150px) scale(0.2) rotate(180deg);
        filter: blur(8px) brightness(2);
        box-shadow: 0 0 0 rgba(107, 174, 70, 0);
    }
    8.75% {
        opacity: 0.9;
        transform: translate(0, 0) scale(1.15) rotate(10deg);
        filter: blur(1px) brightness(1.3);
        box-shadow: 0 12px 48px rgba(107, 174, 70, 0.8);
    }
    12.5% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
        filter: blur(0) brightness(1);
        box-shadow: 0 8px 32px rgba(107, 174, 70, 0.5);
    }
    25%, 87.5% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(107, 174, 70, 0.5);
    }
    56.25% {
        opacity: 0.85;
        transform: scale(1.05);
        box-shadow: 0 12px 48px rgba(107, 174, 70, 0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(107, 174, 70, 0.5);
    }
}


@keyframes energyWave {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    30% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    70% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

.loading-text h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
    color: #6BAE46;
    text-shadow: 0 2px 20px rgba(107, 174, 70, 0.3);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.8s forwards;
}

.loading-text p {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    opacity: 0;
    margin-bottom: var(--space-12);
    color: #9BC470;
    animation: fadeInUp 0.8s ease-out 2.2s forwards;
}

/* Real Progress Bar - Instant Display */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(107, 174, 70, 0.15);
    z-index: 10000;
    opacity: 1;
    visibility: visible;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6BAE46 0%, #9BC470 100%);
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(107, 174, 70, 0.4);
    border-radius: 0 1.5px 1.5px 0;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* Prevent scrolling during loading */
body.loading {
    overflow: hidden;
    height: 100vh;
}

/* Main Content - Hidden by default */
.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.main-content.visible {
    opacity: 1;
    visibility: visible;
}

/* Ensure loading screen is visible by default */
html.loading .main-content {
    opacity: 0;
    visibility: hidden;
}

html.loading .loading-screen {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
HEADER WITH LOGO - ENTERPRISE DESIGN
========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

[data-theme="dark"] .header {
    background: rgba(17, 24, 39, 0.85);
    border-bottom-color: rgba(55, 65, 81, 0.3);
}

.header-content {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    height: 60px;
}

/* Header Logo */
.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-image {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: brightness(1) contrast(1);
}

[data-theme="dark"] .logo-image {
    filter: brightness(1.2) contrast(1.1);
}

.logo-image:hover {
    transform: scale(1.02);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 174, 70, 0.2);
}

[data-theme="dark"] .theme-toggle {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

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

/* Container */
.container {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 60px; /* Account for fixed header */
}

/* Cover Section */
.cover-section {
    position: relative;
    height: 200px;
    margin-bottom: 60px;
}

.cover-photo {
    width: 100%;
    height: 100%;
    background: var(--cover-gradient);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cover-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.cover-pattern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.profile-photo {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--background);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
    z-index: 10;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-photo:hover img {
    transform: scale(1.05);
}

/* Profile Info Section */
.profile-info-section {
    padding: var(--space-6) var(--space-6) var(--space-8);
    text-align: center;
}

.profile-details {
    max-width: 350px;
    margin: 0 auto;
}

.name {
    font-size: 1.875rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    position: relative;
    transition: all 0.3s ease;
    border-radius: var(--radius);
    padding: var(--space-2) var(--space-3);
    margin: 0 calc(-1 * var(--space-3)) var(--space-2);
}

/* Name element is static - no editing functionality */
.name {
    cursor: default; /* Default cursor - no editing */
    user-select: text; /* Allow text selection for copy only */
}

.title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-1);
    color: var(--text-secondary);
}

.company {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.location {
    font-size: 0.9rem;
    font-weight: var(--font-weight-normal);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
}

.location::before {
    content: '📍';
    font-size: 0.8rem;
}

/* Contact Section */
.contact-section {
    margin: 0;
    padding: 0 var(--space-6) var(--space-8);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    justify-items: stretch;
}

.contact-card {
    display: flex;
    align-items: center;
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    cursor: pointer;
    min-height: 72px;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.contact-card:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-3);
    flex-shrink: 0;
}

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

.contact-text {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* Social Links Section */
.social-section {
    margin: 0 var(--space-6) var(--space-6);
}

.social-category {
    margin-bottom: var(--space-8);
}

.social-category:last-child {
    margin-bottom: 0;
}

.social-category-title {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    text-align: center;
    margin-bottom: var(--space-5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
}

.social-category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 1px;
    background: var(--border);
    border-radius: 1px;
    transition: var(--transition);
}

.social-category:hover .social-category-title::after {
    width: 40px;
    background: var(--primary);
}

.social-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-2);
}

/* Dynamic sizing based on icon count */
.social-grid[data-count="1"] { gap: 0; max-width: 90px; }
.social-grid[data-count="2"] { gap: var(--space-8); max-width: 200px; }
.social-grid[data-count="3"] { gap: var(--space-6); max-width: 280px; }
.social-grid[data-count="4"] { gap: var(--space-4); max-width: 320px; }
.social-grid[data-count="5"] { gap: var(--space-3); max-width: 350px; }

/* Icon sizing based on count - Mobile optimized */
.social-grid[data-count="1"] .social-link { width: 80px; height: 80px; }
.social-grid[data-count="2"] .social-link { width: 70px; height: 70px; }
.social-grid[data-count="3"] .social-link { width: 65px; height: 65px; }
.social-grid[data-count="4"] .social-link { width: 60px; height: 60px; }
.social-grid[data-count="5"] .social-link { width: 55px; height: 55px; }

/* Icon size adjustments - Maintain accessibility */
.social-grid[data-count="1"] .social-icon { width: 36px; height: 36px; }
.social-grid[data-count="2"] .social-icon { width: 32px; height: 32px; }
.social-grid[data-count="3"] .social-icon { width: 30px; height: 30px; }
.social-grid[data-count="4"] .social-icon { width: 28px; height: 28px; }
.social-grid[data-count="5"] .social-icon { width: 26px; height: 26px; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    text-decoration: none;
    position: relative;
    overflow: visible;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 174, 70, 0.2);
}

.social-icon {
    width: 28px;
    height: 28px;
    z-index: 2;
    position: relative;
}

/* Social Tooltips */
.social-tooltip {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--background);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.social-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid var(--text-primary);
}

/* Desktop-only tooltips - only show on hover-capable devices */
@media (hover: hover) and (pointer: fine) {
    .social-link:hover .social-tooltip {
        opacity: 1;
        visibility: visible;
        bottom: -40px;
    }
}

/* Hide tooltips completely on touch devices to prevent interference */
@media (hover: none) and (pointer: coarse) {
    .social-tooltip {
        display: none;
    }
}

/* Dark mode tooltip adjustments */
[data-theme="dark"] .social-tooltip {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

[data-theme="dark"] .social-tooltip::before {
    border-bottom-color: var(--surface);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 174, 70, 0.25);
}

.social-link:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(107, 174, 70, 0.2);
}

/* Dark mode specific enhancements */
[data-theme="dark"] .social-link {
    background: var(--surface);
    border-color: var(--border-light);
    color: var(--text-muted);
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 8px 25px rgba(107, 174, 70, 0.3);
}

/* Subtle platform-specific accent on hover */
.social-link.whatsapp:hover { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.2); }
.social-link.viber:hover { box-shadow: 0 8px 25px rgba(115, 96, 223, 0.2); }
.social-link.messenger:hover { box-shadow: 0 8px 25px rgba(0, 132, 255, 0.2); }
.social-link.telegram:hover { box-shadow: 0 8px 25px rgba(0, 136, 204, 0.2); }
.social-link.discord:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2); }
.social-link.facebook:hover { box-shadow: 0 8px 25px rgba(24, 119, 242, 0.2); }
.social-link.instagram:hover { box-shadow: 0 8px 25px rgba(228, 64, 95, 0.2); }
.social-link.twitter:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2); }
.social-link.linkedin:hover { box-shadow: 0 8px 25px rgba(10, 102, 194, 0.2); }
.social-link.youtube:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2); }

/* About Section */
.about-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    margin: 0 var(--space-6) var(--space-8);
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    max-width: 350px;
    margin: 0 auto;
}

/* Actions Section */
.actions-section {
    display: flex;
    gap: var(--space-3);
    margin: 0 var(--space-6) var(--space-8);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 52px;
    white-space: nowrap;
}

.action-btn.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow);
}

.action-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.action-btn.secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.action-btn.secondary:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    transform: translateY(-1px);
}

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

/* Focus Styles */
.action-btn:focus,
.contact-card:focus,
.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 174, 70, 0.2);
}

/* Tablet Design */
@media (min-width: 640px) {
    .container {
        max-width: 480px;
        padding: 0 var(--space-8);
        padding-top: 60px; /* Account for fixed header */
    }
    
    .header-content {
        max-width: 480px;
        padding: var(--space-3) var(--space-8);
    }
    
    .logo-image {
        height: 40px;
    }
    
    .cover-section {
        height: 300px;
        margin-bottom: 80px;
    }
    
    .profile-photo {
        width: 160px;
        height: 160px;
        bottom: -80px;
    }
    
    .name {
        font-size: 2.25rem;
        white-space: nowrap;
    }
    
    .title {
        font-size: 1.25rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-5);
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-section {
        padding: 0 var(--space-8) var(--space-8);
    }
    
    .social-section {
        margin: 0 var(--space-8) var(--space-8);
    }
    
    .social-category {
        margin-bottom: var(--space-10);
    }
    
    .social-category-title {
        font-size: 1.0625rem;
        margin-bottom: var(--space-5);
    }
    
    .social-grid {
        gap: var(--space-4);
        max-width: 100%;
        padding: 0 var(--space-4);
    }
    
    .social-grid[data-count="1"] { gap: 0; max-width: 100px; }
    .social-grid[data-count="2"] { gap: var(--space-10); max-width: 220px; }
    .social-grid[data-count="3"] { gap: var(--space-8); max-width: 320px; }
    .social-grid[data-count="4"] { gap: var(--space-6); max-width: 400px; }
    .social-grid[data-count="5"] { gap: var(--space-5); max-width: 450px; }
    
    .social-grid[data-count="1"] .social-link { width: 90px; height: 90px; }
    .social-grid[data-count="2"] .social-link { width: 80px; height: 80px; }
    .social-grid[data-count="3"] .social-link { width: 75px; height: 75px; }
    .social-grid[data-count="4"] .social-link { width: 70px; height: 70px; }
    .social-grid[data-count="5"] .social-link { width: 65px; height: 65px; }
    
    .social-grid[data-count="1"] .social-icon { width: 42px; height: 42px; }
    .social-grid[data-count="2"] .social-icon { width: 38px; height: 38px; }
    .social-grid[data-count="3"] .social-icon { width: 36px; height: 36px; }
    .social-grid[data-count="4"] .social-icon { width: 34px; height: 34px; }
    .social-grid[data-count="5"] .social-icon { width: 32px; height: 32px; }
    
    
    .contact-text {
        font-size: 0.9375rem;
    }
    
    .contact-card {
        padding: var(--space-4) var(--space-3);
    }
    
    .action-btn {
        font-size: 1rem;
        padding: var(--space-4) var(--space-5);
    }
    
    .profile-details {
        max-width: 400px;
    }
    
    .about-section {
        margin: 0 var(--space-8) var(--space-8);
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--space-8);
    }
    
    .actions-section {
        margin: 0 var(--space-8) var(--space-8);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--space-8);
    }
    
    .beam-animation {
        width: 110px;
        height: 105px;
    }
    
    .beam-square {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
    
    .loading-text h2 {
        font-size: 3rem;
    }
}

/* Large Tablet Design */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding-top: 60px; /* Account for fixed header */
    }
    
    .header-content {
        max-width: 600px;
        padding: var(--space-4) var(--space-10);
        height: 64px;
    }
    
    .logo-image {
        height: 42px;
    }
    
    .cover-section {
        height: 320px;
        margin-bottom: 90px;
    }
    
    .profile-photo {
        width: 180px;
        height: 180px;
        bottom: -90px;
    }
    
    .name {
        font-size: 2.5rem;
        white-space: nowrap;
    }
    
    .title {
        font-size: 1.375rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
        max-width: 600px;
        margin: 0 auto;
        justify-items: stretch;
    }
    
    .contact-grid .contact-card:nth-child(odd):last-child {
        grid-column: 1 / -1;
        max-width: 300px;
        justify-self: center;
    }
    
    .contact-section {
        padding: 0 var(--space-10) var(--space-10);
    }
    
    .social-section {
        margin: 0 var(--space-10) var(--space-10);
    }
    
    .contact-text {
        font-size: 0.9375rem;
    }
    
    .contact-card {
        min-height: 76px;
        padding: var(--space-4);
    }
    
    .action-btn {
        font-size: 1rem;
        padding: var(--space-4) var(--space-6);
    }
    
    .profile-details {
        max-width: 450px;
    }
    
    .about-section {
        margin: 0 var(--space-10) var(--space-10);
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--space-10);
    }
    
    .actions-section {
        margin: 0 var(--space-10) var(--space-10);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--space-10);
    }
}

/* Desktop Design */
@media (min-width: 1024px) {
    .container {
        max-width: 700px;
        padding-top: 60px; /* Account for fixed header */
    }
    
    .header-content {
        max-width: 700px;
        padding: var(--space-4) var(--space-12);
        height: 68px;
    }
    
    .logo-image {
        height: 44px;
    }
    
    .cover-section {
        height: 350px;
        margin-bottom: 100px;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
        bottom: -100px;
    }
    
    .name {
        font-size: 2.75rem;
        white-space: nowrap;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
        max-width: 600px;
        margin: 0 auto;
        justify-items: stretch;
    }
    
    .contact-grid .contact-card:nth-child(odd):last-child {
        grid-column: 1 / -1;
        max-width: 300px;
        justify-self: center;
    }
    
    .contact-section {
        padding: 0 var(--space-12) var(--space-12);
    }
    
    .social-section {
        margin: 0 var(--space-12) var(--space-12);
    }
    
    .social-category {
        margin-bottom: var(--space-12);
    }
    
    .social-category-title {
        font-size: 1.125rem;
        margin-bottom: var(--space-6);
    }
    
    .social-grid {
        gap: var(--space-5);
        max-width: 100%;
        padding: 0 var(--space-6);
    }
    
    .social-grid[data-count="1"] { gap: 0; max-width: 120px; }
    .social-grid[data-count="2"] { gap: var(--space-12); max-width: 260px; }
    .social-grid[data-count="3"] { gap: var(--space-10); max-width: 360px; }
    .social-grid[data-count="4"] { gap: var(--space-8); max-width: 450px; }
    .social-grid[data-count="5"] { gap: var(--space-6); max-width: 500px; }
    
    .social-grid[data-count="1"] .social-link { width: 100px; height: 100px; }
    .social-grid[data-count="2"] .social-link { width: 90px; height: 90px; }
    .social-grid[data-count="3"] .social-link { width: 85px; height: 85px; }
    .social-grid[data-count="4"] .social-link { width: 80px; height: 80px; }
    .social-grid[data-count="5"] .social-link { width: 75px; height: 75px; }
    
    .social-grid[data-count="1"] .social-icon { width: 48px; height: 48px; }
    .social-grid[data-count="2"] .social-icon { width: 44px; height: 44px; }
    .social-grid[data-count="3"] .social-icon { width: 40px; height: 40px; }
    .social-grid[data-count="4"] .social-icon { width: 38px; height: 38px; }
    .social-grid[data-count="5"] .social-icon { width: 36px; height: 36px; }
    
    
    .contact-text {
        font-size: 1rem;
    }
    
    .contact-card {
        min-width: 280px;
    }
    
    .contact-card {
        min-height: 84px;
        padding: var(--space-5) var(--space-4);
    }
    
    .contact-icon {
        margin-right: var(--space-4);
    }
    
    .profile-details {
        max-width: 500px;
    }
    
    .about-section {
        margin: 0 var(--space-12) var(--space-12);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--space-12);
    }
    
    .actions-section {
        margin: 0 var(--space-12) var(--space-12);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--space-12);
    }
    
    .action-btn {
        padding: var(--space-5) var(--space-8);
        font-size: 1.0625rem;
        min-height: 60px;
    }
}

/* Print Styles */
@media print {
    .header {
        position: static;
        background: white !important;
        border-bottom: 1px solid #e5e7eb !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .header-content {
        max-width: none;
        padding: var(--space-3) 0;
        height: auto;
    }
    
    .logo-image {
        height: 32px;
        filter: brightness(1) !important;
    }
    
    .theme-toggle {
        display: none;
    }
    
    .actions-section {
        display: none;
    }
    
    .container {
        padding-top: var(--space-6);
        box-shadow: none;
    }
    
    .contact-card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

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

@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --shadow: rgba(0, 0, 0, 0.5);
        --shadow-lg: rgba(0, 0, 0, 0.8);
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    color: white;
    font-weight: var(--font-weight-medium);
    z-index: 1000;
    transform: translateX(100%);
    transition: var(--transition);
    max-width: 300px;
    box-shadow: var(--shadow-lg);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification.info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}