* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --platinum: #E5E4E2;
    --dark-bg: #0a0a0a;
    --lime-green: #CCFF00;
    --silver: #C0C0C0;
    --white: #FFFFFF;
    --dark-gray: #1a1a1a;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700&display=swap');

body {
    font-family: 'Playfair Display', 'Georgia', serif;
    background: #0a0a0a;
    color: var(--platinum);
    overflow-x: hidden;
    cursor: default;
    min-height: 100vh;
    position: relative;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-content {
    text-align: center;
}

.counter {
    font-size: 8rem;
    font-weight: 200;
    background: linear-gradient(135deg, var(--platinum) 0%, var(--white) 50%, var(--lime-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 10px;
    margin-bottom: 20px;
}

.loader-text {
    font-size: 1rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--silver);
    opacity: 0.6;
}

/* London Background */
.london-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('london.avif');
    background-size: cover;
    background-position: center;
    filter: blur(1px) brightness(0.3);
    opacity: 1.0;
    z-index: 1;
    transform: scale(1.1);
}

/* Texture Overlay */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(229, 228, 226, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(229, 228, 226, 0.03) 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(229, 228, 226, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(229, 228, 226, 0.03) 3px
        ),
        radial-gradient(circle at 20% 30%, rgba(204, 255, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(229, 228, 226, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--lime-green);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
    opacity: 0.9;
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 3;
}

/* Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
    position: relative;
}

.content {
    position: relative;
    text-align: center;
    z-index: 10;
}

/* Decorative Elements */
.decor-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--lime-green), transparent);
    opacity: 0.2;
    height: 1px;
}

.decor-line-1 {
    width: 300px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.decor-line-2 {
    width: 400px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.decor-circle {
    position: absolute;
    border: 1px solid var(--lime-green);
    border-radius: 50%;
    opacity: 0.15;
}

.decor-circle-1 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.decor-circle-2 {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Profile Section */
.profile-section {
    margin-bottom: 60px;
    opacity: 0;
    padding: 20px 0;
}

.profile-mask {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    clip-path: polygon(
        30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%
    );
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(20%) contrast(1.1);
    transition: all 0.5s ease;
}

.profile-mask:hover .profile-image {
    filter: grayscale(0%) contrast(1.2);
    transform: scale(1.1);
}

.mask-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    clip-path: polygon(
        30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%
    );
    border: 2px solid var(--lime-green);
    pointer-events: none;
    opacity: 0.5;
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

/* Name Styling */
.name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.letter-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.letter-group.single-line {
    gap: 12px;
}

.letter {
    font-size: 4.5rem;
    font-weight: 400;
    font-family: 'Playfair Display', 'Georgia', serif;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, var(--platinum) 0%, var(--white) 50%, var(--silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(100px) rotateX(-90deg);
    transition: opacity 0.3s ease;
}

.letter.animate-glow {
    animation: subtleGlow 4s ease-in-out infinite;
    animation-delay: calc(var(--letter-index) * 0.15s);
}

@keyframes subtleGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 0px rgba(204, 255, 0, 0));
    }
    50% {
        filter: brightness(1.15) drop-shadow(0 0 8px rgba(204, 255, 0, 0.3));
    }
}

.letter.space-letter {
    margin-left: 20px;
}

/* Subtitle */
.subtitle {
    position: relative;
    margin-top: 60px;
}

.subtitle-text {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--silver);
    display: inline-block;
    opacity: 0;
    position: relative;
    padding: 0 30px;
}

.subtitle-text::before,
.subtitle-text::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lime-green));
    top: 50%;
}

.subtitle-text::before {
    left: -70px;
}

.subtitle-text::after {
    right: -70px;
    background: linear-gradient(90deg, var(--lime-green), transparent);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-mask {
        width: 240px;
        height: 240px;
    }
    
    .letter {
        font-size: 3.5rem;
    }
    
    .letter.space-letter {
        margin-left: 15px;
    }
    
    .decor-circle-1 {
        width: 400px;
        height: 400px;
    }
    
    .decor-circle-2 {
        width: 600px;
        height: 600px;
    }
}

@media (max-width: 768px) {
    .profile-mask {
        width: 160px;
        height: 160px;
    }
    
    .profile-section {
        margin-bottom: 30px;
        padding: 10px 0;
    }
    
    .letter {
        font-size: 2.2rem;
    }
    
    .letter.space-letter {
        margin-left: 10px;
    }
    
    .letter-group {
        gap: 6px;
    }
    
    .letter-group.single-line {
        gap: 8px;
    }
    
    .subtitle-text {
        font-size: 0.9rem;
        letter-spacing: 4px;
    }
    
    .decor-line-1 {
        width: 200px;
    }
    
    .decor-line-2 {
        width: 250px;
    }
    
    .counter {
        font-size: 4rem;
    }
    
    .loader-text {
        font-size: 0.8rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .profile-mask {
        width: 120px;
        height: 120px;
    }
    
    .profile-section {
        margin-bottom: 20px;
        padding: 5px 0;
    }
    
    .letter {
        font-size: 1.3rem;
    }
    
    .letter.space-letter {
        margin-left: 4px;
    }
    
    .letter-group.single-line {
        gap: 3px;
    }
    
    .name-wrapper {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .subtitle-text {
        font-size: 0.7rem;
        letter-spacing: 3px;
    }
    
    .subtitle-text::before,
    .subtitle-text::after {
        width: 40px;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

.decor-circle-1 {
    animation: float 8s ease-in-out infinite;
}

.decor-circle-2 {
    animation: float 12s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.letter {
    animation: shimmer 4s linear infinite;
}

/* London Background Animation */
@keyframes londonFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.london-background {
    animation: londonFloat 20s ease-in-out infinite;
}

/* Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid var(--lime-green);
    border-radius: 8px;
    padding: 60px 80px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 
        0 0 30px rgba(204, 255, 0, 0.2),
        0 0 60px rgba(204, 255, 0, 0.1),
        inset 0 0 80px rgba(204, 255, 0, 0.05);
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--platinum);
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.popup-close:hover {
    color: var(--lime-green);
    transform: rotate(90deg);
}

.popup-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 3rem;
    font-weight: 400;
    background: linear-gradient(135deg, var(--platinum) 0%, var(--white) 50%, var(--lime-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.popup-message {
    font-size: 1.2rem;
    color: var(--silver);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.popup-contact {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--platinum);
    text-decoration: none;
    padding: 15px 40px;
    border: 1px solid var(--lime-green);
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    background: transparent;
}

.popup-contact:hover {
    background: var(--lime-green);
    color: #0a0a0a;
    box-shadow: 0 0 20px var(--lime-green);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .popup-content {
        padding: 40px 30px;
    }
    
    .popup-title {
        font-size: 2rem;
    }
    
    .popup-message {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .popup-contact {
        font-size: 0.9rem;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 30px 20px;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
    
    .popup-message {
        font-size: 0.8rem;
        margin-bottom: 30px;
    }
    
    .popup-contact {
        font-size: 0.8rem;
        padding: 10px 25px;
    }
}
