/* 
   Chakshu Portfolio - Style.css
   Modern, Premium Design
*/

:root {
    --primary-color: #e65f78;
    /* From original template */
    --secondary-color: #333;
    --text-color: #767676;
    --heading-color: #000;
    --bg-color: #fff;
    --light-bg: #f9f9f9;
    --sidebar-width: 300px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Outfit', sans-serif;
}

/* ... [Previous CSS Content remains mostly the same, adding animation classes] ... */

/* Animation Utility Classes */



/* Scroll Reveal Animation Classes */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* ... [Rest of the CSS from previous step, ensuring I don't lose anything] ... */
/* I will rewrite the full file to be safe and include the new classes */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Helper Classes */
.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.colored {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #fff;
    z-index: -1;
    transition: var(--transition);
}

.btn:hover {
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.btn.outline {
    background: transparent;
    color: var(--heading-color);
    border-color: #ddd;
    margin-left: 20px;
}

.btn.outline:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.btn.outline::before {
    background: #333;
}

/* Layout */
.all_wrap {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.sidebar .logo img {
    max-height: 40px;
}

.sidebar .menu ul li {
    margin-bottom: 20px;
}

.sidebar .menu ul li a {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 16px;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
}

.sidebar .menu ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.sidebar .menu ul li a:hover,
.sidebar .menu ul li.current a {
    color: var(--primary-color);
}

.sidebar .menu ul li a:hover::after,
.sidebar .menu ul li.current a::after {
    width: 100%;
}

.sidebar .copyright p {
    font-size: 13px;
    font-family: var(--font-secondary);
    color: #999;
    line-height: 1.6;
}

/* Main Content */
.main_content {
    width: 100%;
    padding-left: var(--sidebar-width);
    transition: var(--transition);
}

section {
    padding: 120px 0;
}

/* Hero Section */
.hero_section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero_bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
    filter: grayscale(100%);
}

.hero_section .content .hello {
    font-size: 20px;
    font-weight: 600;
    color: var(--heading-color);
    display: block;
    margin-bottom: 15px;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero_section .content .name {
    font-size: 80px;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(45deg, #000, #555);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero_section .content .job {
    font-size: 22px;
    margin-bottom: 50px;
    font-weight: 300;
    color: #555;
}

/* Title Holder */
.title_holder {
    margin-bottom: 70px;
}

.title_holder span {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
}

.title_holder h3 {
    font-size: 40px;
    font-weight: 700;
}

.title_holder.center {
    text-align: center;
}

/* About Section */
.about_section {
    background-color: #fff;
}

.about_inner {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about_inner .left {
    width: 40%;
    position: relative;
}

.about_inner .left .image {
    position: relative;
    overflow: hidden;
}

.about_inner .left .image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    z-index: -1;
    transition: var(--transition);
}

.about_inner:hover .left .image::before {
    top: -10px;
    left: -10px;
}

.about_inner .right {
    width: 60%;
}

.about_inner .text {
    margin-bottom: 40px;
}

.about_inner .text p {
    font-size: 17px;
    color: #555;
}

.about_inner .info_list ul li {
    margin-bottom: 25px;
}

.about_inner .info_list .list_inner {
    display: flex;
    align-items: center;
}

.about_inner .info_list i {
    width: 55px;
    height: 55px;
    background: rgba(230, 95, 120, 0.08);
    /* Subtle pink bg */
    color: var(--primary-color);
    border-radius: 50%;
    /* Circle */
    padding: 14px;
    margin-right: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.about_inner .info_list .list_inner:hover i {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(360deg);
}

.about_inner .info_list .details span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    font-family: var(--font-secondary);
    text-transform: uppercase;
}

.about_inner .info_list .details p {
    font-weight: 500;
    color: var(--heading-color);
    font-size: 18px;
}

/* Timeline (Experience & Education) */
.experience_section,
.education_section {
    background-color: var(--light-bg);
}

.timeline_list ul {
    position: relative;
}

.timeline_list ul::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.timeline_list ul li {
    margin-bottom: 40px;
    position: relative;
    padding-left: 80px;
}

.timeline_list ul li::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 35px;
    width: 19px;
    height: 19px;
    border-radius: 100%;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    z-index: 2;
}

.timeline_list .list_inner {
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.timeline_list .list_inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--primary-color);
}

.timeline_list .time span {
    display: inline-block;
    background: #444;
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline_list .place h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.timeline_list .place span {
    font-style: italic;
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
    font-weight: 500;
}

.timeline_list .desc p {
    color: #666;
}


/* Skills Section */
.skills_inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.skills_inner .left {
    width: 50%;
}

.skills_inner .right {
    width: 50%;
    position: relative;
}

.skills_inner .right img {
    transform: rotate(2deg);
    transition: var(--transition);
}

.skills_inner:hover .right img {
    transform: rotate(0deg);
}

.progress_bar_wrap {
    margin-top: 40px;
}

.progress_item {
    margin-bottom: 30px;
}

.progress_item .label_wrap {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--heading-color);
    font-family: var(--font-secondary);
}

.progress_item .bar_bg {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress_item .bar_in {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    position: relative;
}

/* Achievements */
.achievements_section .features_list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.achievements_section .features_list ul li {
    width: calc(50% - 15px);
}

.achievements_section .list_inner {
    background: #fff;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.achievements_section .list_inner:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.achievements_section .list_inner i {
    width: 70px;
    height: 70px;
    background: rgba(230, 95, 120, 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    padding: 18px;
    transition: var(--transition);
}

.achievements_section .list_inner:hover i {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.achievements_section .list_inner h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Contact Section */
.contact_inner {
    display: flex;
    gap: 60px;
}

.contact_inner .left {
    width: 40%;
}

.contact_inner .right {
    width: 60%;
}

.contact_inner .text p {
    font-size: 24px;
    font-weight: 600;
    color: var(--heading-color);
    font-family: var(--font-secondary);
    line-height: 1.4;
    margin-bottom: 40px;
}

.contact_inner .info_list ul li {
    margin-bottom: 25px;
}

.contact_inner .info_list .list_inner {
    display: flex;
    align-items: center;
}

.contact_inner .info_list i {
    width: 50px;
    height: 50px;
    background: #f9f9f9;
    color: var(--heading-color);
    border-radius: 50%;
    padding: 12px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact_inner .info_list .list_inner:hover i {
    background: var(--primary-color);
    color: #fff;
}

.contact_inner .info_list span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    margin-bottom: 5px;
    font-family: var(--font-secondary);
}

.contact_inner .info_list p {
    font-size: 18px;
    font-weight: 600;
    color: var(--heading-color);
}

.contact_form {
    background: #fff;
    padding: 40px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

.contact_form .input_list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.contact_form input {
    width: 100%;
    padding: 15px 20px;
    background: #f9f9f9;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: var(--transition);
}

.contact_form input:focus,
.contact_form textarea:focus {
    background: #fff;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact_form textarea {
    width: 100%;
    height: 150px;
    resize: none;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 15px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.contact_form button {
    width: 100%;
    border: none;
    font-size: 16px;
    padding: 16px;
    font-family: var(--font-secondary);
    transition: var(--transition);
}


/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader_line {
    width: 1px;
    height: 100px;
    /* simple loader */
    background: #eee;
    position: relative;
    overflow: hidden;
}

.loader_line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--heading-color);
    animation: lineAnim 1s ease-in-out infinite;
    transform: translateY(-100%);
}

@keyframes lineAnim {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}


/* Mobile Menu */
.mobile_menu {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    section {
        padding: 40px 0;
    }

    .hero_section .content .name {
        font-size: 40px;
    }

    .about_inner {
        gap: 30px;
    }

    .title_holder {
        margin-bottom: 40px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 101;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main_content {
        padding-left: 0;
        padding-top: 70px;
    }

    .mobile_menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 100;
        padding: 20px 30px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile_menu .logo img {
        max-height: 35px;
    }

    .mobile_menu .trigger {
        cursor: pointer;
    }

    /* Hamburger */
    .hamburger-box {
        width: 30px;
        height: 24px;
        position: relative;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 30px;
        height: 3px;
        background-color: #333;
        position: absolute;
        border-radius: 4px;
        transition: var(--transition);
    }

    .hamburger-inner {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-inner::before {
        content: '';
        top: -10px;
    }

    .hamburger-inner::after {
        content: '';
        bottom: -10px;
    }

    .trigger.is-active .hamburger-inner {
        background-color: transparent;
    }

    .trigger.is-active .hamburger-inner::before {
        transform: translateY(10px) rotate(45deg);
        top: 0;
    }

    .trigger.is-active .hamburger-inner::after {
        transform: translateY(-10px) rotate(-45deg);
        bottom: 0;
    }


    .mobile_menu .dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px 30px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        display: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .mobile_menu .dropdown.active {
        display: block;
    }

    .mobile_menu .anchor_nav li {
        margin-bottom: 15px;
    }

    .mobile_menu .anchor_nav li a {
        font-size: 16px;
        font-weight: 500;
        color: var(--heading-color);
        font-family: var(--font-secondary);
    }

    .hero_section {
        height: auto;
        min-height: 100vh;
        padding: 60px 0 90px;
    }

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

    .about_inner {
        flex-direction: column;
    }

    .about_inner .left,
    .about_inner .right {
        width: 100%;
    }

    .about_inner .left {
        margin-bottom: 50px;
        padding-right: 0;
    }

    .timeline_list ul::before {
        left: 20px;
    }

    .timeline_list ul li {
        padding-left: 50px;
    }

    .timeline_list ul li::before {
        left: 11px;
    }

    .skills_inner {
        flex-direction: column-reverse;
    }

    .skills_inner .left,
    .skills_inner .right {
        width: 100%;
    }

    .skills_inner .right {
        margin-bottom: 50px;
        text-align: center;
    }

    .skills_inner .right img {
        display: inline-block;
        max-width: 80%;
    }

    .achievements_section .features_list ul li {
        width: 100%;
    }

    .contact_inner {
        flex-direction: column;
    }

    .contact_inner .left,
    .contact_inner .right {
        width: 100%;
    }

    .contact_inner .left {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .btn {
        padding: 12px 30px;
        font-size: 13px;
    }

    .hero_section .content .name {
        font-size: 44px;
    }

    .hero_section .content .job {
        font-size: 18px;
    }

    .title_holder h3 {
        font-size: 30px;
    }
}

/* Animations */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* Glassmorphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Apply Glassmorphism to Cards */
.timeline_list .list_inner,
.achievements_section .list_inner,
.contact_form,
.sidebar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.sidebar {
    background: rgba(255, 255, 255, 0.9);
    /* Slightly more opaque for readability */
}

/* Timeline Cards specific adjustments */
.timeline_list .list_inner:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

/* Mobile Menu Glass */
.mobile_menu {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile_menu .dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}