@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --font-main: 'Inter', sans-serif;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}



body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    scroll-behavior: smooth;
    /* overflow-x: hidden; */
}

/* Navigation */
.top_nav {
    position: fixed;
    top: 0;
    cursor: pointer;
    width: 100%;
    padding: 30px 50px;
    background-color: transparent;
    z-index: 1000;
    display: flex;
    justify-content: center;
    scroll-behavior: smooth !important;
}

.top_nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1001;
}

.hamburger_btn {
    display: none;
    /* Hidden on desktop */
    cursor: pointer;
}

.menu_toggle {
    display: none;
}

.scroll_btn {
    text-decoration: none;
    color: var(--text-color);
}

.menu_links {
    /* scroll-behavior: smooth; */
    display: flex;
    gap: 40px;
}

.menu_link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.menu_link:hover {
    opacity: 0.7;
}

/* Home Section */
.home_page {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* Social Sidebar */
.social_bar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 10;
}

.social_bar_home {
    /* position: fixed; */
    /* left: 50px; */
    /* top: 50%; */
    /* transform: translateY(-50%); */
    display: flex;
    justify-content: center;
    /* flex-direction: column; */
    gap: 25px;
    z-index: 10;
}

@media (min-width:997px) {
    .social_bar_home {
        display: none;
    }
}


.social_link {
    width: 20px;
    height: 20px;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s ease;
    background: white;
    color: black;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
}

.social_link_home {
    width: 20px;
    height: 20px;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s ease;
    background: white;
    color: black;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
}

.social_link:hover {
    transform: scale(1.2);
}

/* Hero Content */
.hero_box {
    display: flex;
    justify-content: center;
    /* Center everything */
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Photo Box */
.photo_box {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-right: -50px;
    z-index: 2;
}

/* Background Blob Image */
.back_image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.back_image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Character Image Wrapper */
.dhanz {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* The Character Image */
.my_photo {
    height: 100%;
    width: auto;
    object-fit: cover;
    position: relative;
    bottom: 0;
    border-radius: 0 0 400px 178px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* Text Content */
.intro_text {
    z-index: 2;
    margin-left: 50px;
    max-width: 600px;
}

.intro_text h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.intro_text h2 {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.intro_text p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
    color: #ddd;
    text-transform: uppercase;
}

/* Scroll Down Indicator */
.scroll_btn {
    position: absolute;
    bottom: 40px;
    right: 50px;
    transform: rotate(90deg);
    transform-origin: right bottom;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.scroll_btn i {
    transform: rotate(0deg);
    /* Arrow is already pointing right, which becomes down when rotated parent */
}

/* Sections General */
.section {
    padding: 100px 50px;
    min-height: 100vh;
}

.section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.page_heading {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Simple scroll-triggered animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about_page,
.timeline_page,
.projects_page,
.contact_page {
    animation: fadeIn linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 20%;
}

/* Responsive */
@media (max-width: 992px) {
    .hero_box {
        flex-direction: column;
        text-align: center;
    }

    .photo_box {
        margin-right: 0;
        margin-bottom: 30px;
        width: 350px;
        height: 405px;
    }

    .intro_text {
        margin-left: 0;
    }

    .intro_text h1 {
        font-size: 40px;
    }

    .intro_text h2 {
        font-size: 24px;
    }

    .social_bar {
        left: 20px;
    }

    .top_nav {
        padding: 20px;
    }

    .menu_links {
        display: none;
        /* Hide nav links on mobile by default */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 20px;
        text-align: center;
        gap: 20px;
        backdrop-filter: blur(10px);
    }

    /* Show menu when checkbox is checked */
    #nav-toggle:checked~.menu_links {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* About Section */
.about_page {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0PX 50px;
}

.about_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 50px;
}

.about_info {
    flex: 1;
    max-width: 600px;
}

.about_info h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about_info p {
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 500px;
}

/* CSS Tabs */
.skill_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill_tabs input[type="radio"] {
    display: none;
}

.tab_btn {
    padding: 10px 20px;
    border: none;
    background-color: #333;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    font-family: var(--font-main);
    transition: background-color 0.3s;
    margin-bottom: 0;
}

/* Active Tab Style */
#tab-1:checked~label[for="tab-1"],
#tab-2:checked~label[for="tab-2"],
#tab-3:checked~label[for="tab-3"] {
    background-color: #fff;
    color: #000;
}

/* Skills Content Container */
.skills_box {
    width: 100%;
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 0 10px 10px 10px;
    margin-bottom: 40px;
    min-height: 250px;
    /* Ensure it breaks to a new line */
    flex-basis: 100%;
}

.skills_list {
    display: none;
}

/* Show Content Based on Checked Radio */
#tab-1:checked~.skills_box .content-1,
#tab-2:checked~.skills_box .content-2,
#tab-3:checked~.skills_box .content-3 {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill_item {
    margin-bottom: 20px;
}

.skill_name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

.progress_bar {
    width: 100%;
    height: 6px;
    background-color: #444;
    border-radius: 3px;
    position: relative;
}

.progress_bar span {
    display: block;
    height: 100%;
    background-color: #fff;
    border-radius: 3px;
    position: relative;
}

/* Download Button */
.download_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 4px;
    transition: transform 0.3s;
}

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

/* About Image */
.about_photo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about_shape {
    position: absolute;
    width: 500px;
    height: 520px;
    background-image: url("./source_files/Vector.png");
    background-size: 100%;
    background-position: center;
    z-index: 1;
}

.person_photo {
    position: relative;
    z-index: 2;
    max-width: 100%;
    transform: rotateY(180deg);
    height: 500px;
    width: auto;
    top: 11px;
    left: 41px;
    object-fit: cover;
    border-radius: 76% 59%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* Home Social Icons */

/* Experience & Education Section */
.timeline_page {
    /* height: 100vh; */
    padding: 80px 50px 20px 50px;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.timeline_page .container {
    /* height: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1600px;
    /* Wider to fit everything comfortably */
    width: 100%;
}

.timeline_box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 60px;
    /* Increased gap for better separation */
    position: relative;
    width: 100%;
    height: 100%;
    align-items: center;
}

.timeline_column {
    flex: 1;
    display: flex;
    height: 90%;
    align-items: center;
    position: relative;
}

/* --- Experience (Left Side) --- */
.timeline_column:first-child {
    flex-direction: row;
    justify-content: flex-end;
}

.timeline_column:first-child .timeline_list {
    order: 1;
    text-align: left;
    border-right: 2px solid #fff;
    padding-right: 40px;
    position: relative;
    margin-right: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.timeline_column:first-child .timeline_list::before,
.timeline_column:first-child .timeline_list::after {
    content: '';
    position: absolute;
    right: -2px;
    width: 60px;
    height: 2px;
    background: #fff;
}

.timeline_column:first-child .timeline_list::before {
    top: 0;
}

.timeline_column:first-child .timeline_list::after {
    bottom: 0;
}

.timeline_column:first-child .side_title_box {
    order: 2;
}

/* Experience Connectors */
.timeline_column:first-child .timeline_entry::before {
    content: '';
    position: absolute;
    right: -42px;
    /* Reach border (40px padding + 2px border) */
    top: 15px;
    /* Align with Date Tag center */
    width: 42px;
    /* Extend fully to the line */
    height: 2px;
    background-color: #fff;
}

/* --- Education (Right Side) --- */
.timeline_column:last-child {
    flex-direction: row;
    justify-content: flex-start;
}

.timeline_column:last-child .timeline_list {
    order: 2;
    text-align: left;
    border-left: 2px solid #fff;
    padding-left: 40px;
    position: relative;
    margin-left: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Education Hooks (Top & Bottom going Right) */
.timeline_column:last-child .timeline_list::before,
.timeline_column:last-child .timeline_list::after {
    content: '';
    position: absolute;
    left: -2px;
    width: 60px;
    /* Longer hook */
    height: 2px;
    background: #fff;
}

.timeline_column:last-child .timeline_list::before {
    top: 0;
}

.timeline_column:last-child .timeline_list::after {
    bottom: 0;
}

.timeline_column:last-child .side_title_box {
    order: 1;
}

/* Education Connectors */
.timeline_column:last-child .timeline_entry::before {
    content: '';
    position: absolute;
    left: -42px;
    top: 15px;
    width: 42px;
    /* Extend fully to the line */
    height: 2px;
    background-color: #fff;
}

/* --- Vertical Text --- */
.side_title_box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
}

.side_title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 12px;
    white-space: nowrap;
    margin: 0;
}

/* --- Content Styling --- */
.timeline_list {
    flex: 1;
    max-width: 500px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.timeline_entry {
    position: relative;
    margin-bottom: 0;
}

.date_badge {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 6px 16px;
    font-weight: 800;
    font-size: 13px;
    border-radius: 20px;
    margin-bottom: 10px;
    /* position: absolute; */
    /* right: 0; */
}

.timeline_entry h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
    line-height: 1.2;
}

.subtitle {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline_entry p:last-child {
    color: #ccc;
    line-height: 1.5;
    font-size: 14px;
}

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
    .timeline_page {
        height: auto;
        overflow: visible;
        padding: 100px 20px;
    }

    .timeline_column:first-child .timeline_list::before {
        top: 0;
        left: 0;
    }

    .timeline_column:first-child .timeline_list::after {
        bottom: 0;
        left: 0;
    }

    .my_photo {
        border-radius: 0px 0px 506px 251px;
        top: -1%;
    }

    .timeline_page .container {
        height: auto;
        display: block;
    }

    .timeline_box {
        flex-direction: column;
        gap: 80px;
        height: auto;
    }

    .timeline_column {
        height: auto;
        width: 100%;
    }

    /* Reset Experience for Mobile */
    .timeline_column:first-child {
        justify-content: center;
    }

    .timeline_column:first-child .timeline_list {
        height: auto;
        gap: 40px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Reset Education for Mobile */
    .timeline_column:last-child {
        justify-content: center;
    }

    .timeline_column:last-child .timeline_list {
        height: auto;
        gap: 40px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .side_title {
        font-size: 40px;
        letter-spacing: 5px;
    }
}

/* Projects Section */
.projects_page {
    height: 100vh;
    padding: 60px 0 20px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.projects_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
    column-gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.project_card {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
}

.project_info {
    background-color: #222;
    padding: 20px;
    width: 85%;
    min-height: 200px;
    position: relative;
    z-index: 1;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project_photo {
    position: absolute;
    cursor: pointer;
    width: 200px;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 8px 8px 20px 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.project_photo:hover {
    z-index: 20;
    transform: translateY(-50%) scale(1.05) rotate(0deg) !important;
}

/* Layout Image Right (Top Row) */
/* Layout Image Right (Top Row) */
.image_right .project_info {
    margin-right: auto;
    padding-right: 150px;
}

.image_right .project_photo {
    right: 0;
    transform: translateY(-50%) rotate(5deg);
}

.image_right .tilt_left {
    transform: translateY(-50%) rotate(-5deg);
}

.image_right .tilt_right {
    transform: translateY(-50%) rotate(5deg);
}


/* Layout Image Left (Bottom Row) */
.image_left {
    justify-content: flex-end;
    /* Align content to right */
}

.image_left .project_info {
    margin-left: auto;
    padding-left: 150px;
}

.image_left .project_photo {
    left: 0;
    transform: translateY(-50%) rotate(-5deg);
}

.image_left .tilt_left {
    transform: translateY(-50%) rotate(-5deg);
}

.image_left .tilt_right {
    transform: translateY(-50%) rotate(5deg);
}


/* Typography & Content */
.project_top {
    margin-bottom: 10px;
}

.project_top.right {
    text-align: right;
}

.project_num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    opacity: 0.9;
}

.project_label {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-top: 3px;
}

.project_info h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
    max-width: 80%;
}

.align_right h3 {
    text-align: right;
    margin-left: auto;
}

.project_desc {
    color: #aaa;
    font-size: 12px;
    line-height: 1.4;
}

.align_right .project_desc {
    text-align: right;
}

.desc_title,
.tools_title {
    font-weight: 700;
    color: #fff;
    margin-top: 15px;
    margin-bottom: 5px;
    display: block;
}

.project_desc p {
    margin-bottom: 5px;
}

/* Polaroid Image */
.polaroid {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    background-color: #ddd;
}

/* Pin */
.pin {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #ff5f5f, #d32f2f);
    border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    z-index: 25;
}

/* Mobile Responsive */
/* Mobile Responsive for Projects */
@media (max-width: 992px) {
    .projects_page {
        min-height: auto;
        height: auto;
        padding: 50px 0;
    }

    .projects_grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        row-gap: 80px;
        /* Space between cards */
        padding: 0 20px;
    }

    .project_card {
        flex-direction: column !important;
        align-items: center;
        justify-content: flex-start;
        min-height: auto;
        /* Allow auto height */
        margin-bottom: 90px;
        /* Increased margin for image overlap space */
    }

    .project_info {
        width: 100%;
        max-width: 500px;
        /* Limit width */
        padding: 40px 30px 280px 30px;
        /* Significantly increased bottom padding so text isn't covered by image */
        text-align: center;
        min-height: auto;
        margin: 0 auto;
        /* Center card */
    }

    .image_right .project_info,
    .image_left .project_info {
        padding-right: 30px;
        padding-left: 30px;
        margin: 0 auto;
        text-align: center;
        align-items: center;
    }

    .align_right h3,
    .align_right .project_desc,
    .project_top.right {
        text-align: center;
        margin-left: 0;
    }

    /* Reset positioning for ALL images on mobile to be centered */
    .project_photo,
    .image_left .project_photo,
    .image_right .project_photo {
        position: absolute;
        bottom: -30px;
        /* Adjusted to sit nicely with the large padding */
        top: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%) rotate(3deg);
        width: 280px;
        /* Slightly larger on mobile for better visibility */
        z-index: 20;
    }

    /* Slight rotation variation for visual interest */
    .image_left .project_photo {
        transform: translateX(-50%) rotate(-3deg);
    }

    .project_photo:hover,
    .image_left .project_photo:hover,
    .image_right .project_photo:hover {
        transform: translateX(-50%) rotate(0deg) scale(1.05) !important;
        z-index: 30;
    }
}

/* Contact Section */
/* Contact Section */
.contact_page {
    position: relative;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact_box {
    display: flex;
    justify-content: space-betwee;
    /* align-items: center; */
    gap: 100px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Left Column: Info */
.contact_left {
    flex: 0.8;
}

.page_title {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.info_list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info_row {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.info_row i {
    font-size: 28px;
    width: 40px;
    text-align: center;
    color: #fff;
}

/* Right Column: Form */
.form_box {
    flex: 1;
}

.message_form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input_field {
    width: 100%;
    padding: 15px 25px;
    background-color: #d9d9d9;
    border: none;
    font-family: var(--font-main);
    font-size: 16px;
    color: #000;
    outline: none;
    transition: background-color 0.3s;
}

.input_field:focus {
    background-color: #fff;
}

.pill_input {
    border-radius: 50px;
    height: 55px;
}

.message_input {
    border-radius: 20px;
    padding-top: 20px;
    resize: none;
}

.input_field::placeholder {
    color: #666;
    font-weight: 500;
}

.send_btn {
    padding: 12px 40px;
    background-color: #d9d9d9;
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s;
    width: 140px;
    /* Fixed width mostly */
    text-align: center;
}

.send_btn:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Go To Top */
.back_to_top {
    position: absolute;
    bottom: 50px;
    right: 50px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transition: opacity 0.3s;
}

.back_to_top i {
    transform: rotate(90deg);
    /* Arrow points up */
    font-size: 14px;
}

.back_to_top:hover {
    opacity: 0.7;
}

/* Responsive Contact */
@media (max-width: 992px) {
    .contact_box {
        flex-direction: column;
        gap: 50px;
        padding: 0 20px;
    }

    .page_title {
        text-align: center;
        margin-bottom: 40px;
    }

    .info_row {
        font-size: 14px;
        gap: 20px;
    }

    .info_row i {
        font-size: 24px;
    }

    .back_to_top {
        position: relative;
        bottom: auto;
        right: auto;
        writing-mode: horizontal-tb;
        justify-content: center;
        margin-top: 50px;
        flex-direction: row;
        width: 100%;
    }

    .back_to_top i {
        transform: rotate(0);
        /* Standard up arrow */
    }

    .social_link {
        display: none;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .top_nav {
        padding: 20px;
    }

    .menu_links {
        display: none;
    }

    .hamburger_btn {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-color);
    }

    /* About Section Mobile */
    .about_box {
        flex-direction: column-reverse;
        text-align: left;
        gap: 30px;
    }

    .about_photo {
        margin-top: 0;
        /* margin-bottom: 30px; */
        width: 100%;
    }

    .about_shape {
        width: 350px;
        height: 93%;
    }

    .person_photo {
        min-height: auto;
        height: 390px;
        transform: rotateY(180deg);
        border-radius: 83% 46%;
        top: -16px;
        left: 4px;
    }

    .about_info h2 {
        font-size: 24px;
    }

    .about_info p {
        font-size: 14px;
    }

    /* Adjust tabs for mobile */
    .skill_tabs {
        justify-content: flex-start;
    }

    .tab_btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* Experience & Education Mobile */
    .timeline_box {
        flex-direction: column;
        gap: 50px;
    }

    .timeline_column {
        flex-direction: column !important;
        /* Override inline styles if any */
        text-align: left !important;
    }

    .timeline_column:first-child .timeline_list {
        order: 2;
        border-right: none;
        border-left: 2px solid #fff;
        padding-right: 0;
        padding-left: 20px;
    }

    .timeline_column:first-child .side_title_box {
        order: 1;
    }

    .timeline_column:first-child .timeline_entry::before {
        right: auto;
        left: -26px;
    }

    .side_title_box {
        width: 100%;
        height: 50px;
        justify-content: flex-start;
    }

    .side_title {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 32px;
        letter-spacing: 2px;
    }

    .timeline_list {
        border-left: 2px solid #fff;
        padding-left: 20px;
        margin-left: 10px;
    }
}

/* --- EXTRA SMALL DEVICES (Mobile Phones) --- */
@media (max-width: 576px) {

    .person_photo {
        min-height: auto;
        height: 284px;
        transform: rotateY(180deg);
        border-radius: 83% 46%;
        top: -16px;
        left: 4px;
    }

    .scroll_btn {
        display: none;
    }

    .my_photo {
        border-radius: 79% 45%;
        top: 1%;
        width: 109%;
        /* transform: rotate(0deg); */
        /* left: 10px; */
    }

    /* Global Typography */
    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 24px !important;
        color: white !important;
        z-index: 99 !important;
    }

    .page_heading {
        font-size: 28px;
    }

    /* Home Section */
    .section {
        padding: 60px 20px;
    }

    .photo_box {
        width: 100%;
        max-width: 280px;
        height: 350px;
        background-size: contain;
    }

    .intro_text p {
        font-size: 14px;
    }

    /* About Section */
    .about_shape {
        width: 100%;
        max-width: 250px;
        height: 250px;
    }



    /* Skills */
    .skill_name {
        margin-bottom: 2px;
    }

    /* Experience / Education */
    .timeline_list {
        padding-left: 15px !important;
        border-left-width: 1px !important;
    }

    .timeline_entry::before {
        width: 20px !important;
        left: -20px !important;
    }

    .side_title_box {
        /* display: none; */
    }

    .project_info {
        padding: 30px 20px 260px 20px;
    }

    .project_photo,
    .image_left .project_photo,
    .image_right .project_photo {
        width: 220px;
        bottom: -20px;
    }

    .project_card {
        margin-bottom: 60px;
    }

    /* Contact Section */
    .contact_box {
        padding: 0;
    }

    .page_title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .info_row {
        gap: 15px;
        font-size: 13px;
    }

    .send_btn {
        width: 100%;
    }

    .back_to_top {
        margin-top: 30px;
    }
}