/* ===== GLOBAL STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    overflow: hidden;
    height: 100%;
    background: #F5F0EB;
}

/* Texture background */
.bg-texture {
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 197, 181, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(95, 70, 62, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(212, 197, 181, 0.2) 0%, transparent 50%);
    background-color: #F5F0EB;
}

/* ===== SLIDE BASE ===== */
.slide {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0s 0.7s;
    transform: translateY(30px);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0s 0s;
}

.slide.exit-up {
    opacity: 0;
    transform: translateY(-30px);
}

/* ===== ARCH FRAME ===== */
.arch-frame {
    width: 340px;
    height: 440px;
    border-radius: 50% 50% 12px 12px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(61, 43, 31, 0.15),
        0 8px 20px rgba(61, 43, 31, 0.1);
    border: 4px solid rgba(212, 197, 181, 0.5);
    background: #D4C5B5;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.arch-frame:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 70px rgba(61, 43, 31, 0.2),
        0 10px 25px rgba(61, 43, 31, 0.12);
}

.arch-frame-sm {
    width: 280px;
    height: 360px;
}

/* ===== PILL BUTTON ===== */
.btn-pill {
    display: inline-block;
    padding: 16px 40px;
    background: #5F463E;
    color: #FFF9F4;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(95, 70, 62, 0.3);
}

.btn-pill:hover {
    background: #4A362F;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(95, 70, 62, 0.4);
}

/* ===== SOCIAL ICON ===== */
.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #D4C5B5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5F463E;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #5F463E;
    border-color: #5F463E;
    color: #FFF9F4;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(95, 70, 62, 0.3);
}

/* ===== ABOUT SECTION ===== */
.about-image-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .about-image-container {
        height: 100vh;
    }
}

/* ===== SPEC ITEM ===== */
.spec-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #F5F0EB;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #3D2B1F;
    font-weight: 500;
    transition: all 0.2s ease;
}

.spec-item:hover {
    background: #EDE5DB;
}

/* ===== SKILL CATEGORY ===== */
.skill-category {
    background: #F5F0EB;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-category:hover {
    border-color: #D4C5B5;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(61, 43, 31, 0.08);
}

.skill-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #5F463E;
    color: #FFF9F4;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: #8B7355;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(212, 197, 181, 0.3);
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-stars {
    color: #D4A574;
    font-size: 0.7rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* ===== SERVICE CARD ===== */
.service-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #EDE5DB;
    cursor: default;
}

.service-card h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #3D2B1F;
    font-family: 'Inter', sans-serif;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(61, 43, 31, 0.1);
    border-color: #5F463E;
}

/* ===== PROJECT CARD ===== */
.project-card {
    background: #F5F0EB;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.project-card:hover {
    border-color: #D4C5B5;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(61, 43, 31, 0.1);
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.project-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #3D2B1F;
}

.project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.metric {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    flex: 1;
    min-width: 80px;
    border: 1px solid #EDE5DB;
}

.metric-val {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #5F463E;
}

.metric-lbl {
    display: block;
    font-size: 0.65rem;
    color: #9B9189;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 2px;
}

/* ===== DASHBOARD CARD ===== */
.dash-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #EDE5DB;
    box-shadow: 0 4px 15px rgba(61, 43, 31, 0.05);
    position: relative;
    overflow: hidden;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5F463E, #D4C5B5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dash-card:hover::before {
    opacity: 1;
}

.dash-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(61, 43, 31, 0.12);
}

.dash-card-accent {
    border-color: #5F463E;
    background: linear-gradient(135deg, #FFF9F4, #F5F0EB);
}

/* ===== CONTACT LINK ITEM ===== */
.contact-link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #F5F0EB;
    border-radius: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.contact-link-item:hover {
    border-color: #D4C5B5;
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(61, 43, 31, 0.08);
}

.contact-link-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #5F463E;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF9F4;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== SLIDE DOT NAVIGATION ===== */
.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #D4C5B5;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
}

.slide-dot.active {
    background: #5F463E;
    border-color: #5F463E;
    transform: scale(1.3);
}

.slide-dot:hover {
    border-color: #5F463E;
}

.dot-label {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: #FFFFFF;
    color: #3D2B1F;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
}

.slide-dot:hover .dot-label {
    opacity: 1;
}

/* ===== ARROW BUTTON ===== */
.arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #D4C5B5;
    color: #5F463E;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(61, 43, 31, 0.1);
}

.arrow-btn:hover {
    background: #5F463E;
    border-color: #5F463E;
    color: #FFF9F4;
    box-shadow: 0 4px 15px rgba(95, 70, 62, 0.3);
    transform: translateY(-2px);
}

/* ===== ENTRANCE ANIMATIONS ===== */
.slide > div:nth-child(2) > * {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide.active > div:nth-child(2) > * {
    opacity: 1;
    transform: translateY(0);
}

.slide.active > div:nth-child(2) > *:nth-child(1) { transition-delay: 0.1s; }
.slide.active > div:nth-child(2) > *:nth-child(2) { transition-delay: 0.2s; }
.slide.active > div:nth-child(2) > *:nth-child(3) { transition-delay: 0.3s; }
.slide.active > div:nth-child(2) > *:nth-child(4) { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .arch-frame {
        width: 260px;
        height: 340px;
    }
    .arch-frame-sm {
        width: 220px;
        height: 280px;
    }
    .about-image-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .slide {
        padding: 60px 16px 40px;
    }
    .arch-frame {
        width: 220px;
        height: 280px;
    }
    .arch-frame-sm {
        width: 200px;
        height: 260px;
    }
    #slideNav {
        display: none;
    }
    .arrow-btn {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .btn-pill {
        padding: 14px 28px;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    .arch-frame {
        width: 180px;
        height: 240px;
    }
}

/* ===== SCROLLBAR (for slides with overflow) ===== */
.slide::-webkit-scrollbar {
    width: 4px;
}
.slide::-webkit-scrollbar-track {
    background: transparent;
}
.slide::-webkit-scrollbar-thumb {
    background: #D4C5B5;
    border-radius: 4px;
}