:root {
    --primary: #f7fafc;
    /* page background */
    --secondary: #ffffff;
    /* surface / cards / forms */
    --accent: #2d3748;
    /* primary accent (buttons, headers) */
    --accent-dark: #1f2a36;
    --accent-light: #506075;
    --text-primary: #2d3748;
    --text-secondary: #475569;
    --text-muted: #6b7280;
}

/* Theme utility helpers */
.bg-accent {
    background-color: var(--accent) !important;
}

.bg-accent-light {
    background-color: var(--accent-light) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.text-text-primary {
    color: var(--text-primary) !important;
}

.text-text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--text-primary) !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.luxury-bg {
    background: radial-gradient(ellipse at center, #f8fafc 0%, #eef2f6 70%);
}

/* Hero section: use a light surface so the hero appears white */
#home {
    background-color: var(--secondary);
    color: var(--text-primary);
}

/* Header / nav: ensure solid white header */
nav {
    background-color: var(--secondary) !important;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(45, 55, 72, 0.06);
    backdrop-filter: none;
}

.section-title {
    position: relative;
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.card-luxury {
    background: linear-gradient(145deg, var(--secondary), #f8fafc);
    border: 1px solid rgba(45, 55, 72, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-luxury:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(45, 55, 72, 0.12);
}

.card-luxury:hover::before {
    opacity: 1;
}

.card-luxury a {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-luxury {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-luxury:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 55, 72, 0.15);
}

.btn-luxury:hover::before {
    left: 100%;
}

.btn-outline-luxury {
    border: 1px solid var(--accent);
    color: var(--accent);
    transition: all 0.3s ease;
}

.btn-outline-luxury:hover {
    background-color: rgba(45, 55, 72, 0.06);
    transform: translateY(-2px);
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translate(0, 0px);
    }

    50% {
        transform: translate(0, -15px);
    }

    100% {
        transform: translate(0, 0px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-bar {
    height: 6px;
    background-color: #e6eef6;
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 1.5s ease-in-out;
}

.social-icon {
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 55, 72, 0.08);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--accent);
    background-color: rgba(45, 55, 72, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.luxury-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 55, 72, 0.08) 0%, transparent 70%);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

.gold-glow {
    box-shadow: 0 0 20px rgba(45, 55, 72, 0.12);
}

/* Contact Form Styling */
.contact-card {
    background: linear-gradient(145deg, var(--secondary), #f8fafc);
    border: 1px solid rgba(45, 55, 72, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.02) 0%, transparent 50%);
    z-index: 0;
}

.contact-header {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid rgba(45, 55, 72, 0.06);
    position: relative;
}

.contact-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    background: rgba(248, 250, 252, 0.6);
    border: 1px solid rgba(45, 55, 72, 0.08);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.06);
    background: rgba(255, 255, 255, 0.95);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background: var(--secondary);
    padding: 0 0.5rem;
    color: var(--accent);
}

.textarea-label {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-textarea:focus+.textarea-label,
.form-textarea:not(:placeholder-shown)+.textarea-label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background: var(--secondary);
    padding: 0 0.5rem;
    color: var(--accent);
}

.contact-icon {
    color: var(--accent);
    background: rgba(45, 55, 72, 0.06);
    border-radius: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cursor Blink Animation */
.cursor-blink {
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
    color: var(--accent);
    font-weight: 400;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title::after {
        width: 40%;
    }

    .card-luxury:hover {
        transform: translateY(-5px);
    }

    .contact-card {
        padding: 1.5rem;
    }
}

/* Testimonials */
#testimonials .testimonial-rating i {
    margin-right: 6px;
    color: var(--accent);
}

#testimonials img {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid rgba(45, 55, 72, 0.12);
}

/* fallback sizing utility if .w-14 is used elsewhere */
#testimonials .w-14 {
    min-width: 56px;
    min-height: 56px;
}

#testimonials .card-luxury {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    #testimonials .grid {
        grid-template-columns: 1fr;
    }

    #testimonials img,
    #testimonials .w-14 {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
}

/* Hide scrollbar */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}