:root {
    --primary: #7c4dff;
    --dark: #0f172a;
    --text-main: #334155;
    --bg-light: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- Hero Section --- */
.hero-section {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    padding: 120px 0;
    position: relative;
    color: white;
}

.badge-premium {
    background: rgba(124, 77, 255, 0.2);
    color: #b392ff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(124, 77, 255, 0.3);
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 20px;
}

.main-title .name {
    background: linear-gradient(to right, #fff, #7c4dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 25px 0;
}

.btn-primary-custom {
    background: var(--primary);
    color: white;
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.btn-outline-custom {
    background: transparent;
    color: white;
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    display: inline-block;
}

/* Profile Image Anim */
.profile-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.05);
    animation: morph 8s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(124, 77, 255, 0.2);
}

@keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 50%;
    }
}

/* --- Content Layout --- */
.content-wrapper {
    padding-top: 80px;
}

.premium-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark);
}

/* --- Timeline --- */
.custom-timeline {
    border-left: 2px solid #e2e8f0;
    margin-left: 10px;
    padding-left: 30px;
    position: relative;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.1);
}

/* --- Education Item --- */
.edu-item-premium {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fdfdff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

.edu-icon {
    width: 60px;
    height: 60px;
    background: rgba(124, 77, 255, 0.1);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* --- Works Section Wrapper --- */
.works-section-wrapper {
    padding: 120px 0;
    background: #ffffff;
    border-radius: 60px 60px 0 0;
    margin-top: 50px;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.02);
}

.sub-heading {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
}

/* --- Work Cards --- */
.work-card-premium {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
}

.work-card-premium.mini {
    height: 400px;
}

.work-card-premium img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s ease;
}

.work-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 10%, rgba(15, 23, 42, 0) 70%);
}

.work-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 2;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.work-card-premium:hover .work-content {
    transform: translateY(0);
}

.work-card-premium:hover img {
    transform: scale(1.05);
}

.work-tags span {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-right: 8px;
    backdrop-filter: blur(4px);
}

.work-title {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    margin: 10px 0;
}

.work-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    opacity: 0;
    transition: 0.4s;
}

.work-card-premium:hover .work-description {
    opacity: 1;
}

.work-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
    display: block;
}

/* --- Footer --- */
.modern-footer {
    background: #0f172a;
    color: #fff;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-blob {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.1) 0%, transparent 70%);
}

.cta-box-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px;
    border-radius: 30px;
}

.btn-cta {
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 20px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 50px;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .main-title {
        font-size: 2.8rem;
    }

    .works-section-wrapper {
        border-radius: 30px 30px 0 0;
    }
}