/* =========================================
   ROOT (LIGHT + DARK THEME VARIABLES)
========================================= */
:root {
    --bg: #e0e0e0;
    --fg: #111;
    --card-bg: rgba(224, 224, 224, 0.9);

    --shadow-light: #ffffff;
    --shadow-dark: #b8b8b8;

    --glow: #c9a96e; /* Luxury gold color */
}

body.dark {
    --bg: #1f1f1f;
    --fg: #e6e6e6;
    --card-bg: rgba(31, 31, 31, 0.9);

    --shadow-light: #2a2a2a;
    --shadow-dark: #131313;

    --glow: #c9a96e;
}

/* =========================================
   GLOBAL
========================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--fg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 40px 20px;
    transition: 0.4s;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

/* Luxury Background Image for large screens */
@media (min-width: 1024px) {
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://images.unsplash.com/photo-1493663284031-b7e3aefcae8e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -2;
        transition: opacity 0.4s ease;
    }

    /* Dark mode background for large screens */
    body.dark::before {
        background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2053&q=80');
    }

    /* Background overlay for better readability on large screens */
    .background-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        transition: background 0.4s ease;
    }

    body.dark .background-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* Hide background overlay on small screens */
@media (max-width: 1023px) {
    .background-overlay {
        display: none;
    }
}

h2, h3 {
    margin-bottom: 10px;
}

.job {
    color: #c9a96e;
    font-weight: 500;
    margin-bottom: 20px;
}

.section-title {
    color: #c9a96e;
    margin-top: 20px;
}

/* =========================================
   SUPER ANIMATED NEUMORPHIC THEME TOGGLE 
========================================= */

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#switch {
    display: none;
}

.toggle-label {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    transition: 0.4s ease;
    transform: translateX(0);
    box-shadow:
        6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light),
        0 0 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Rotation + Press animation */
.toggle-label.active {
    transform: rotate(360deg) scale(0.95);
}

/* Glow effect in dark mode */
body.dark .toggle-label {
    box-shadow:
        0 0 20px var(--glow),
        6px 6px 14px var(--shadow-dark),
        -6px -6px 14px var(--shadow-light);
}

/* Icon inside toggle */
.toggle-label .icon {
    display: block;
    pointer-events: none;
    transition: 0.4s ease;
    /* Green pulsate for both sun and moon */
    animation: pulseShadowGreen 2.5s infinite ease-in-out;
}

/* Green Pulse Shadow Effect */
@keyframes pulseShadowGreen {
    0% { text-shadow: 0 0 0 #00d58c; }
    50% { text-shadow: 0 0 14px #00d58c; }
    100% { text-shadow: 0 0 0 #00d58c; }
}

/* Sun → Moon morph animation */
@keyframes sunToMoon {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    30% { transform: scale(0) rotate(180deg); opacity: 0; }
    60% { transform: scale(0) rotate(180deg); opacity: 0; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

/* Slide effect when dark */
body.dark .toggle-label {
    transform: translateX(-3px);
}

/* =========================================
   VCARD CONTAINER
========================================= */
.vcard {
    width: 380px;
    max-width: 95vw;
    padding: 2em;
    border-radius: 30px;
    background: var(--card-bg);
    box-shadow:
        6px 6px 16px var(--shadow-dark),
        -6px -6px 16px var(--shadow-light),
        0 0 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: 0.4s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Card Background for small screens */
.card-background {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: url('https://images.unsplash.com/photo-1493663284031-b7e3aefcae8e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80');
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.3;
}

body.dark .card-background {
    background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80');
}

/* Show card background only on small screens */
@media (max-width: 1023px) {
    .card-background {
        display: block;
    }
    
    .vcard {
        background: var(--card-bg);
    }
}

/* Content container */
.card-content {
    position: relative;
    z-index: 1;
}

/* =========================================
   AVATAR
========================================= */
.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        6px 6px 16px var(--shadow-dark),
        -6px -6px 16px var(--shadow-light),
        0 0 20px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(201, 169, 110, 0.3);
}

/* =========================================
   CONTACT BUTTONS (Neumorphic Style)
========================================= */
.info {
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 20px;
    background: var(--card-bg);
    text-decoration: none;
    color: var(--fg);
    transition: all 0.3s ease;
    box-shadow:
        4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
    backdrop-filter: blur(5px);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.contact-btn i {
    width: 20px;
    text-align: center;
    color: #c9a96e;
}

.contact-btn span {
    flex: 1;
    text-align: left;
    font-size: 14px;
}

/* =========================================
   WORKING HOURS
========================================= */
.working-hours {
    margin: 10px auto 0;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wh-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--card-bg);
    box-shadow:
        3px 3px 8px var(--shadow-dark),
        -3px -3px 8px var(--shadow-light);
    font-size: 14px;
}

.wh-row .off {
    color: #c9a96e;
    font-weight: 600;
}

/* =========================================
   QR SECTION
========================================= */
.qr-section {
    margin-top: 20px;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr {
    width: 160px;
    padding: 10px;
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.qr:hover {
    transform: scale(1.05);
}

.qr-hint {
    font-size: 12px;
    color: var(--fg);
    opacity: 0.7;
    margin: 0;
}

/* =========================================
   SERVICES
========================================= */
.services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.services .card {
    padding: 12px;
    border-radius: 20px;
    background: var(--card-bg);
    text-align: center;
    box-shadow:
        4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
    transition: transform 0.3s ease;
}

.services .card:hover {
    transform: translateY(-2px);
}

/* =========================================
   SKILLS
========================================= */
.skills {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.skill {
    padding: 8px 14px;
    border-radius: 14px;
    background: var(--card-bg);
    box-shadow:
        3px 3px 8px var(--shadow-dark),
        -3px -3px 8px var(--shadow-light);
    transition: transform 0.3s ease;
}

.skill:hover {
    transform: translateY(-1px);
}

/* =========================================
   GALLERY
========================================= */
.gallery {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow:
        4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* =========================================
   SOCIAL ICONS
========================================= */
.social {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    font-size: 20px;
    text-decoration: none;
    color: var(--fg);
    padding: 14px;
    border-radius: 50%;
    box-shadow:
        4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    transform: scale(1.1);
    box-shadow:
        4px 4px 10px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light),
        0 0 15px var(--glow);
}

/* =========================================
   BUTTON (NEUMORPHIC) - FIXED CENTERING
========================================= */
.neo-btn {
    margin: 20px auto 0 auto;
    padding: 1em 2em;
    border-radius: 30em;
    font-size: 15px;
    border: none;
    cursor: pointer;
    background: var(--card-bg);
    color: var(--fg);
    position: relative;
    overflow: hidden;
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    transition: all 0.5s ease;
    z-index: 1;
    font-weight: bold;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    /* Center the button */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.neo-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-radius: 30em;
    background-image: linear-gradient(to right, #c9a96e, #d4c19f); /* Luxury gold gradient */
    z-index: -1;
    transition: .5s ease;
}

.neo-btn:hover::before {
    width: 100%;
}

.neo-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
}

/* =========================================
   MODAL STYLES
========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    margin-top: 5vh;
    width: 90%;
    max-width: 800px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(201, 169, 110, 0.8);
    transform: scale(1.1);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 480px) {
    .vcard {
        padding: 1.5em;
        width: 350px;
    }
    
    .services {
        grid-template-columns: 1fr;
    }
    
    .gallery img {
        width: 90px;
        height: 70px;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
    
    .card-background {
        height: 150px;
    }
    
    .contact-btn {
        padding: 10px 12px;
    }
    
    .contact-btn span {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .vcard {
        width: 320px;
        padding: 1em;
    }
    
    .gallery {
        gap: 5px;
    }
    
    .gallery img {
        width: 80px;
        height: 60px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}