@import url('https://fonts.googleapis.com');


html,
body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* section {
  scroll-margin-top: 80px; 
} */

:root {

    --bg-color: #1A0B2E;

    --text-main: #ffffff;

    --accent-purple: #7d33ff;

    --text-dim: #b3b3b3;

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}




body {

    background-color: var(--bg-color);

    color: var(--text-main);

    font-family: 'Poppins', sans-serif;

    line-height: 1.6;

}



a {
    text-decoration: none;
}


/* Navigation */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* background: var(--bg-color);

  backdrop-filter: blur(10px); */

background: transparent;

  
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 2rem 15%;

}






.menu-toggle {
    display: none;
    /* Keep the checkbox hidden */
}

.hamburger {
    display: none;
    /* Hide the icon on desktop */
}



.logo {

    font-size: 2rem;

    font-weight: 600;

}



.logo img {

    Width: 35px;

    Height: 39px
}



nav ul {

    display: flex;

    list-style: none;



}



nav ul li {

    margin-left: 3rem;

}



nav ul li a {

    text-decoration: none;

    font-family: Plus Jakarta Sans;

    /* font-weight: 400; */

    /* font-style: SemiBold; */

    font-size: 16px;

    color: #FFFFFF;

    /* line-height: 100%; */

    letter-spacing: 2%;

    text-align: center;

    vertical-align: middle;

}



/* Hero Section Layout */

.hero {

    padding: 50px 15% 100px;

}
.hero-top {
    margin-top: 160px; /* adjust to nav height */
}



.hero-top {

    display: flex;

    align-items: center;

    gap: 40px;

    margin-bottom: 80px;

}



/* Avatar and Glow */

.avatar-container {

    position: relative;

    width: 250px;

}



.curved-arrow {

    position: absolute;
    top: -9px;
    left: -23px;
    transform: rotate(-7deg);
    opacity: 0.6;

}


/* I'm a Software Engineer.| */




.note-wrapper {

    position: absolute;

    top: -60px;

    /* Moves the text above the avatar */

    right: -140px;

    /* Adjust this to push the text further right */

    width: 250px;

    z-index: 5;



    /* Ellipse 22 */










}



.handwritten-note {

    font-family: Preahvihear;

    font-weight: 400;

    font-size: 19px;



    /* line-height: 97px; */

    letter-spacing: -0.5px;





    position: absolute;

    top: -24px;

    right: -27px;

    font-family: 'Architects Daughter', cursive;

    font-size: 0.9rem;

    white-space: nowrap;





}



.handwritten-note span {

    font-family: Preahvihear;

    font-weight: 400;

    font-size: 19px;





    letter-spacing: -0.5px;

    /* text-align: center;

    vertical-align: middle; */



}



.avatar {

    width: 100%;

    position: relative;

    z-index: 2;

}



.glow {

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    width: 200px;

    height: 200px;

    background: var(--accent-purple);

    filter: blur(80px);

    opacity: 0.5;

    z-index: 1;

}



/* Handwritten Elements */

.handwritten-note {

    /* position: absolute;

    top: -40px;

    right: -80px;

    font-family: 'Architects Daughter', cursive;

    font-size: 0.9rem;

    white-space: nowrap; */





    position: absolute;

    top: -24px;

    right: -27px;

    font-family: 'Architects Daughter', cursive;

    font-size: 0.9rem;

    white-space: nowrap;





}



.purple-text {

    color: var(--accent-purple);

}



/* Main Headline */

.headline-box h1 {

    /* font-size: 4rem;

    line-height: 1.1;

    font-weight: 600; */



    font-family: Preahvihear;

    font-weight: 400;

    font-style: Regular;

    font-size: 50px;

    leading-trim: NONE;

    line-height: 127%;

    letter-spacing: 2%;

    vertical-align: middle;







}



.small-text {

    /* font-size: 1rem;

    text-decoration: underline; */



    margin-bottom: 10px;





    font-family: Preahvihear;

    font-weight: 400;

    font-style: Regular;

    font-size: 17px;



    line-height: 100%;

    letter-spacing: 2%;

    /* text-align: center; */

    vertical-align: middle;

    text-decoration: underline;

    text-decoration-style: solid;

    text-decoration-offset: 0%;

    text-decoration-thickness: 0%;









}



.tagline {

    /* font-size: 0.8rem;

    color: var(--text-dim); */

    margin-top: 8px;





    font-family: Preahvihear;

    font-weight: 400;

    font-style: Regular;

    font-size: 11px;



    /* line-height: 100%; */

    letter-spacing: 2%;

    /* text-align: center;

    vertical-align: middle;

     */







}



.circled {

    position: relative;

    display: inline-block;

    color: var(--accent-purple);

}



/* Creating the handwritten circle around 'cover' */

.circled::after {

    content: "";

    position: absolute;

    top: -5px;

    left: -10px;

    right: -10px;

    bottom: -5px;

    border: 2px solid rgba(255, 255, 255, 0.4);

    border-radius: 50% 40% 55% 45%;

    transform: rotate(-2deg);

}



/* Lower Section */

.hero-bottom {

    max-width: 674px;

}





.typing-text {

    /* font-size: 2.5rem; */

    margin-bottom: 10px;





    font-family: Preahvihear;

    font-weight: 400;

    font-style: Regular;

    font-size: 50px;

    leading-trim: NONE;

    line-height: 100%;

    letter-spacing: 2%;

    vertical-align: middle;



}



.cursor {

    animation: blink 1s infinite;

    color: var(--accent-purple);

}



.role {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 1.1rem;

    margin-bottom: 40px;

}



.fb-link {

    color: #1877F2;

    display: flex;

    align-items: center;

    gap: 5px;

}



.bio-desc p {

    color: var(--text-dim);

    font-size: 1rem;

    font-family: Preahvihear;

    font-weight: 300;



    /* margin-bottom: 15px; */





    /* font-weight: 400;

    font-style: Regular;

    font-size: 12px;

    leading-trim: NONE;

    line-height: 100%;

    letter-spacing: 2%;

    vertical-align: middle; */







}



/* Container & Section Spacing */

/* Work Experience */
/* Work Experience Section */
.work-experience {
    position: relative;
    padding: 100px 15%;
    /* Adjusted padding for better horizontal flow */
    background-color: var(--bg-color);
    overflow: hidden;
}

.section-heading {
    margin-bottom: 50px;
    /* Matches the clean geometric look */
    font-weight: 600;
    font-size: 34px;
    /* Scaled to match design weight */
    color: #ffffff;



    /* Work Experience */

    /* position: absolute;
    width: 353px;
    height: 72px;
    left: 468px;
    top: 1135px; */

    font-family: 'Preahvihear', cursive;
    font-style: normal;
    font-weight: 400;
    font-size: 40px;
    line-height: 72px;
    display: flex;
    align-items: center;
    letter-spacing: 0.02em;

    color: #FFFFFF;



}




/* Grid Layout */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    /* Tighter gap as seen in Figma */
}

.first-card {
    /* background: RGBA(19, 4, 40, 1);
    background: linear-gradient(90deg, rgba(19, 4, 40, 1) 0%, rgba(19, 4, 40, 1) 79%, rgba(56, 18, 109, 1) 100%); */


    /* Rectangle 984 */

    /* position: absolute; */
    /* width: 570px;
    height: 192.68px; */
    /* left: 463px;
    top: 1251px; */

    background: linear-gradient(110.49deg, #130428 19.95%, #251043 67.64%, #38126D 107.08%, #261045 156.61%, #190634 183.21%);
    box-shadow: 4px 7px 26px rgba(0, 0, 0, 0.12);
    border-radius: 15px;



}


.second-card {
    /* Rectangle 983 */

    /* position: absolute; */
    /* width: 570px;
    height: 192.68px; */
    /* left: 1053px;
    top: 1251px; */

    background: linear-gradient(95.56deg, #130428 0.58%, #251043 16.32%, #38126D 29.33%, #261045 45.66%, #190634 54.44%);
    box-shadow: 4px 7px 26px rgba(0, 0, 0, 0.12);
    border-radius: 15px;

}

.third-card {
    /* Rectangle 983 */


    background: linear-gradient(95.56deg, #130428 0.58%, #251043 16.32%, #38126D 29.33%, #261045 45.66%, #190634 54.44%);
    box-shadow: 4px 7px 26px rgba(0, 0, 0, 0.12);
    border-radius: 15px;

}

.forth-card {
    /* Rectangle 983 */


    background: linear-gradient(149.88deg, #130428 37.22%, #251043 70.43%, #38126D 97.89%, #261045 132.38%, #190634 150.9%);
    box-shadow: 4px 7px 26px rgba(0, 0, 0, 0.12);
    border-radius: 15px;

}






/* Card Styling */
.experience-card {
    display: flex;
    align-items: center;
    /* Use a semi-transparent border for that 'soft' design look */
    border: 1px solid rgba(144, 36, 242, 0.3);
    border-radius: 20px;
    padding: 30px 40px;
    /* More horizontal padding for the content */
    transition: all 0.3s ease;
    width: auto;
    /* Let the grid handle the width */
    max-height: 192.68px;
    /* Let content + padding define height */
    min-height: 180px;
}


.experience-card:hover {
    transform: translateY(-5px);
    /* background: rgba(255, 255, 255, 0.07);
    border-color: rgba(144, 36, 242, 0.8); */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Icon Section */
.card-icon {
    flex: 0 0 100px;
    /* Slightly smaller to leave room for text */
    margin-right: 30px;
    display: flex;
    justify-content: center;



    position: relative;
    /* Needed for positioning the shadow element */
    display: inline-block;
    /* ... other styles for your icon ... */
    z-index: 1;



}

.card-icon::after {

    content: '';
    position: absolute;
    bottom: -20px;
    /* Position it below the icon */
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    /* Adjust size */
    height: 50px;
    background: radial-gradient(ellipse at center, #2C1250 0%, #2C1250 19.79%, rgba(44, 18, 80, 0) 90.1%);
    /* background: linear-gradient(180deg, #361761 0%, #2D1949 19.79%, rgba(44, 18, 80, 0) 90.1%); */
    /* Purple gradient glow */
    border-radius: 50%;
    /* Make it an ellipse */

    /* Soften the edges */
    z-index: -1;
    /* Place it behind the icon */
    /* transform: matrix(-1, 0.05, -0.07, -1, 0, 0); */


    /* Ellipse 1 */

    /* position: absolute;
    width: 111.34px;
    height: 42.08px;
    left: 515px;
    top: 1349.92px;

    background: linear-gradient(180deg, #2C1250 0%, #2C1250 19.79%, rgba(44, 18, 80, 0) 90.1%);
 */


    /* Ellipse 1 */


    /* transform: matrix(-1, 0.05, -0.07, -1, 0, 0); */


    /* Ellipse 1 */







}

.ellipse01 {

    position: absolute;



}

.dot {
    position: absolute;
    width: 6px;
    /* Dot size */
    height: 6px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.9;
}

/* Positioning the 4 dots relative to the wrapper */
.first-card .dot.top-left {
    top: 8px;
    left: 11px;

    background: #693B93;


}

.first-card .dot.top-right {
    top: 39px;
    right: 6px;
}

.first-card .dot.bottom-left {
    bottom: 20px;
    left: 0px;
}

.first-card .dot.bottom-right {
    bottom: -10px;
    right: 26px;

    background: #693B93;
}


.first-card .dot.top-left {
    top: 8px;
    left: 11px;

    background: #693B93;


}

.first-card .dot.top-right {
    top: 39px;
    right: 6px;
}

.first-card .dot.bottom-left {
    bottom: 20px;
    left: 0px;
}

.first-card .dot.bottom-right {
    bottom: -10px;
    right: 26px;

    background: #693B93;
}



.third-card .dot.top-left {
    top: 8px;
    left: 11px;

    background: #693B93;


}

.third-card .dot.top-right {
    top: 39px;
    right: 6px;
}

.third-card .dot.bottom-left {
    bottom: 20px;
    left: 0px;
}

.third-card .dot.bottom-right {
    bottom: -10px;
    right: 26px;

    background: #693B93;
}


.third-card .dot.top-left {
    top: 8px;
    left: 11px;

    background: #693B93;


}

.third-card .dot.top-right {
    top: 39px;
    right: 6px;
}

.third-card .dot.bottom-left {
    bottom: 20px;
    left: 0px;
}

.third-card .dot.bottom-right {
    bottom: -10px;
    right: 26px;

    background: #693B93;
}



.second-card .dot.top-left {
    top: 8px;
    left: 11px;

    background: #693B93;


}

.second-card .dot.top-right {
    top: 39px;
    right: 6px;
}

.second-card .dot.bottom-left {
    bottom: 20px;
    left: 0px;
}

.second-card .dot.bottom-right {
    bottom: -10px;
    right: 26px;

    background: #693B93;
}


.second-card .dot.top-left {
    top: 2px;
    left: 4px;
    background: #693B93;

}

.second-card .dot.top-right {
    top: 37px;
    right: -2px;

}

.second-card .dot.bottom-left {
    bottom: 20px;
    left: -9px;
}

.second-card .dot.bottom-right {
    bottom: -10px;
    right: 26px;

    background: #693B93;
}




.forth-card .dot.top-left {
    top: 8px;
    left: 11px;

    background: #693B93;


}

.forth-card .dot.top-right {
    top: 39px;
    right: 6px;
}

.forth-card .dot.bottom-left {
    bottom: 20px;
    left: 0px;
}

.forth-card .dot.bottom-right {
    bottom: -10px;
    right: 26px;

    background: #693B93;
}


.forth-card .dot.top-left {
    top: 21px;
    left: 66px;
    background: #693B93;

}

.forth-card .dot.top-right {
    top: 37px;
    right: -2px;

}

.forth-card .dot.bottom-left {
    bottom: 20px;
    left: -9px;
}

.forth-card .dot.bottom-right {
    bottom: -10px;
    right: 26px;

    background: #693B93;
}








.card-icon img {
    width: 85px;
    /* Figma icons are proportional, 115px was pushing text too much */
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}



/* Text Section */
.card-body h3 {
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    color: #ffffff;


    /* font-family: Poppins;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 26px;
    leading-trim: NONE;
    line-height: 32.5px;
    letter-spacing: 0%; */



}

.card-body p {
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 8px;
    /* Increased from 8px to match readability in design */
    line-height: 1.5;
    color: #b3b3b3;
    /* Dimmed text for hierarchy */
}

/* Button Styling */
.btn-outline {
    /* display: inline-block; */
    padding: 7px 22px;
    border: 1.5px solid #9024F2;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    max-height: 33px;
    max-width: 119px;
}

.btn-outline:hover {
    background: #9024F2;
    color: #fff;
    box-shadow: 0 0 15px rgba(144, 36, 242, 0.5);
}

/* Background Glow Fix */
.bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(144, 36, 242, 0.15) 0%, rgba(26, 11, 46, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* <!-- Recruitment Section --> */



.recruitment {
    padding: 120px 0;
    text-align: center;
}

.recruitment h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 80px;

    font-family: Preahvihear;


}

.recruitment h2 span {
    color: #A362FF;
    ;

}

/* ===== VISUAL CORE ===== */

.visual {
    position: relative;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== CENTER ORB ===== */

.core {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(160, 120, 255, 0.9),
            rgba(80, 30, 180, 0.9));
    display: grid;
    place-items: center;
    font-size: 48px;
    box-shadow:
        0 0 20px rgba(125, 51, 255, 0.5),
        0 0 80px rgba(125, 51, 255, 0.6),
        0 0 140px rgba(125, 51, 255, 0.3);




    /* position: absolute;
    width: 180px;
    height: 180px; */
    background: linear-gradient(180deg, rgba(48, 16, 128, 0.6) 0%, rgba(120, 64, 173, 0.36) 100%);

}


.core img {
    width: 60px;
    height: 90px;


}

/* ===== ORBITS ===== */

.orbit {
    position: absolute;
    z-index: 15;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 2px solid rgba(125, 51, 255, 0.2);
    transform: scaleY(0.35);
    animation: spin linear infinite;
    margin-top: 150px;
}


.under-orbit-1 {
    position: absolute;
    z-index: 15;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(125, 51, 255, 0.2);
    /* Combined transform to keep the flat 'orbit' look */
    transform: scaleY(0.35) rotate(0deg);
    animation: spin-orbit 16s steps(8) infinite;
    margin-top: 180px;
}

.under-orbit-2 {
    position: absolute;
    z-index: 15;
    width: 120px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid rgba(125, 51, 255, 0.2);
    transform: scaleY(0.35) rotate(0deg);
    /* Reversed direction or different speed for visual depth */
    animation: spin-orbit 20s ease-in-out infinite;
    margin-top: 180px;
}

@keyframes spin-orbit {
    from {
        transform: scaleY(0.35) rotate(0deg);
    }

    to {
        transform: scaleY(0.35) rotate(360deg);
    }
}



.orbit-1 {
    animation-duration: 20s;
    width: 695px;
    height: 269px;
    box-sizing: border-box;
    position: absolute;




}

.orbit-2 {
    animation-duration: 30s;
    width: 764px;
    height: 269px;
    box-sizing: border-box;
    position: absolute;

}

.orbit-3 {
    animation-duration: 40s;
    width: 881px;
    height: 269px;
    box-sizing: border-box;
    position: absolute;

}

/* ===== ICONS ===== */

.icon {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(125, 51, 255, 0.6);
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 10px;
    background: #0b0615;
    animation: counterSpin linear infinite;
}

.orbit-1 .icon {
    animation-duration: 20s;
}

.orbit-2 .icon {
    animation-duration: 30s;
}

.orbit-3 .icon {
    animation-duration: 40s;
}

.icon {
    background: none;
    width: 13px;
    height: 20.33px;
}



/* Positions */
.i1 {
    top: -10px;
    left: 50%;
}

.i2 {
    bottom: 0;
    left: 15%;
}

.i3 {
    bottom: 0;
    right: 15%;
}

.i4 {
    top: 10%;
    left: 5%;
}

.i5 {
    top: 10%;
    right: 5%;
}

.i6 {
    bottom: 10%;
    left: 20%;
}

.i7 {
    bottom: 10%;
    right: 20%;
}

.i8 {
    left: -10px;
    top: 50%;
}

.i9 {
    right: -10px;
    top: 50%;
}

/* ===== ANIMATIONS ===== */

@keyframes spin {
    to {
        transform: scaleY(0.35) rotate(360deg);
    }
}

@keyframes counterSpin {
    to {
        transform: rotate(-360deg);
    }
}



.tech-stack {

    display: flex;

    flex-direction: column;

    gap: 20px;

    align-items: center;

    position: relative;

    z-index: 5;

}



.tech-row {

    display: flex;

    gap: 15px;

}



.icon-circle {

    width: 45px;

    height: 45px;

    background: #1a1525;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 10px;

    border: 1px solid rgba(255, 255, 255, 0.1);

}

.icon-circle img {

    width: 100%;

    height: auto;

}

.connections {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 360px;
    pointer-events: none;
    z-index: -1;
}



.connections path {
    fill: none;
    stroke: url(#fadePurple);
    stroke-width: 1;
    /* background: linear-gradient(10.49deg, #130428 19.95%, #251043 67.64%, #38126D 107.08%, #261045 156.61%, #190634 183.21%); */
}

/* Ellipse 20 */




/* Feature Projects */



.featured-projects {

    padding: 100px 15%;

    background-color: var(--bg-color);

}



.project-item {

    display: flex;

    align-items: center;

    position: relative;

    margin-bottom: 120px;

}



/* The Overlap Logic */

.project-info {

    flex: 1;

    z-index: 10;

    margin-right: -100px;

    /* Pulls text over the image */

    text-align: left;



}



.project-item.reverse {

    flex-direction: row-reverse;

}



.project-item.reverse .project-info {

    margin-right: 0;

    margin-left: -100px;

    /* Pulls text over image from the right */

    text-align: right;

}



.project-item.reverse .project-card-desc p {

    text-align: left;

}



.project-item.reverse .project-links {

    justify-content: flex-end;

}



/* Label & Title Styling */

.project-label {

    /* color: var(--accent-purple);

    font-size: 14px;

    font-weight: 600; */

    display: block;

    margin-bottom: 10px;





    font-family: Poppins;

    font-weight: 600;

    font-style: SemiBold;

    font-size: 16px;



    line-height: 100%;

    letter-spacing: 2%;

    vertical-align: middle;

    color: #9857D3;







}



.project-title {

    /* font-size: 28px; */

    margin-bottom: 25px;





    font-family: Poppins;

    font-weight: 600;

    font-style: SemiBold;

    font-size: 34px;



    line-height: 100%;

    letter-spacing: 2%;

    vertical-align: middle;











}



/* Glassmorphism Description Card */

.project-card-desc {

    background: rgba(23, 11, 46, 0.6);
    /* max-width: 669px; */
    /* height: 165px; */
    /* Darker purple-tinted base */

    backdrop-filter: blur(12px);



    border-radius: 12px;

    border: 1px solid rgba(144, 36, 242, 0.3);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);








}






.project-card-desc p {

    /* color: var(--text-dim);

    font-size: 16px; */



    /* line-height: 1.6; */





    font-family: Poppins;

    font-weight: 500;

    font-style: Medium;

    font-size: 16px;

    color: #CCD6F6;

    /* line-height: 100%; */

    /* letter-spacing: 0%; */
    max-width: 590px;
    padding: 20px;

    /* 
    font-family: Poppins;
font-weight: 500;
font-style: Medium;
font-size: 18px;
leading-trim: NONE;
line-height: 100%;
letter-spacing: 0%;
vertical-align: middle; */









}



/* Image Container with Glow */

.project-img {

    width: 568px;

    height: 254px;

    position: relative;

    border-radius: 10px;

    overflow: hidden;

}



.project-img img {

    width: 100%;

    height: auto;

    object-fit: contain;

    filter: brightness(0.7);

    /* Match design's dimmed image look */

}



.img-glow {

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    width: 100%;

    height: 100%;

    background: radial-gradient(circle, rgba(125, 51, 255, 0.2) 0%, transparent 70%);

    z-index: -1;

}



.project-links {

    display: flex;

    gap: 20px;

    margin-top: 25px;

    background: transparent;

}





.project-img img:hover {

    opacity: .9;

}







/* Contact Section */





.contact-section {

    padding: 50px 15%;

    background-color: var(--bg-color);

}



.section-heading {



    font-family: Preahvihear;

    font-weight: 400;

    font-style: Regular;

    font-size: 25px;

    line-height: 100%;

    letter-spacing: 2%;

    vertical-align: middle;



}



.contact-content {

    max-width: 703px;

    /* Matches the narrow width in the design */

    margin-top: 40px;

}



.contact-desc {

    color: var(--text-dim);

    /* Dimmed text color from Image 7 */

    /* font-size: 16px;

    line-height: 1.6; */

    margin-bottom: 25px;



    font-family: Preahvihear;

    font-weight: 400;

    font-style: Regular;

    font-size: 15px;

    /* color: #FFFFFF; */

    /* line-height: 100%; */

    letter-spacing: 2%;

    vertical-align: middle;







}



.email-link {

    color: #fff;

    text-decoration: none;

    display: block;

    margin: 30px 0px;

    transition: color 0.3s;







    font-family: Preahvihear;

    font-weight: 400;

    font-style: Regular;

    font-size: 15px;

    line-height: 100%;

    letter-spacing: 2%;

    vertical-align: middle;



}



.email-link:hover {

    color: var(--accent-purple);

}



.contact-socials {

    display: flex;

    gap: 20px;

}



.contact-socials img {

    width: 24px;

    height: 24px;

    opacity: 0.7;

    transition: opacity 0.3s, transform 0.3s;

}



.contact-socials img:hover {

    opacity: 1;

    transform: translateY(-3px);

}
















@media (max-width: 992px) {

    .experience-grid {

        grid-template-columns: 1fr;



    }

}



/* ============================================================
   RESPONSIVE DESIGN (Only kicks in when screen shrinks)
   ============================================================ */

@media (max-width: 992px) {

    nav,
    .hero,
    .work-experience,
    .featured-projects,
    .contact-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .project-item.reverse .project-info {
        margin-left: 0;
        /* Remove the -100px overlap */
        text-align: center;
        /* Center the text instead of right-align */
    }

    .project-item.reverse .project-card-desc p {
        text-align: left;
        /* Center the paragraph text */
    }

    .project-item.reverse .project-links {
        justify-content: end;
        /* Center the links/icons */
    }

    .project-info {
        margin-right: 0;
        /* Also reset the standard row overlap */
    }

    .section-heading {
        text-align: center;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .experience-card {
        width: 100%;
        max-width: 490px;
    }

    .project-item {
        flex-direction: column;
        text-align: center;
    }

    .project-info {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .project-img {
        width: 100%;
        /* height: auto; */
    }

    .project-label,
    .project-title {
        text-align: center;
    }

    .project-item.reverse {
        display: flex;
        flex-direction: column;

        justify-content: center;
        align-items: center;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
}

.contact-desc {
    text-align: left;
}




@media (max-width: 768px) {

    /* --- Hamburger Menu Logic --- */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
        /* Stay above the menu */
    }

    .hamburger span {
        display: block;
        width: 30px;
        height: 3px;
        background: white;
        transition: 0.3s;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 30%;
        height: 100vh;
        background: rgba(26, 11, 46, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        border-left: 2px solid var(--accent-purple);
    }

    nav ul li {
        margin: 20px 0;
        margin-left: 0;
    }

    /* Toggle Menu */
    .menu-toggle:checked~ul {
        right: 0;
    }

    .menu-toggle:checked~.hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle:checked~.hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked~.hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Layout Scaling */
    .hero-top {
        flex-direction: column;
        text-align: center;
        gap: 100px;
    }

    .headline-box h1,
    .typing-text {
        font-size: 32px;
    }

    .orbit-container {
        transform: scale(0.6);
    }

    .visual-core {
        height: 300px;
    }

    .note-wrapper {
        position: relative;
        top: 0;
        right: 0;
        margin: 0 auto;
        margin-bottom: 20px;
        width: fit-content;
    }

    .handwritten-note {
        top: -50px;
        left: 96px;
    }

    .curved-arrow {
        left: 50%;
        /* transform: translateX(-50%) rotate(90deg); */
        top: -40px;
    }

    .connection-lines {
        position: absolute;
        top: 25px;
        left: auto;
        transform: translateX(-50%);
        transform: translateY(-50%);
        width: 883px;
        /* max-width: 800px; */
        height: 250px;
        z-index: -1;
        pointer-events: none;
    }

    .contact-desc {
        text-align: center;
    }

    .section-heading {
        display: flex;
        justify-content: center;
    }

    .recruitment h2 {
        font-size: 18px;
    }

    .orbit-1 {
        width: 545px
    }

    .orbit-2 {
        width: 604px
    }

    .orbit-3 {
        width: 701px
    }






}

@keyframes blink {



    0%,

    100% {

        opacity: 1;

    }



    50% {

        opacity: 0;

    }

}



/* ==========================================================
   SMALL PHONES (≤ 576px)
   ========================================================== */

@media (max-width: 576px) {

    body {
        font-size: 14px;
    }

    /* Navigation */
    nav {
        padding: 1.5rem 5%;
    }

    nav ul {
        width: 30%;
    }

    .logo {
        font-size: 0.5rem;
    }

    .logo img {
        Width: 25px;
        Height: 29px;
    }

    /* Hero Section */
    .hero {
        padding: 40px 5% 60px;
    }

    .headline-box h1,
    .typing-text {
        font-size: 24px;
        line-height: 1.3;
    }

    .small-text {
        font-size: 14px;
    }


    .tagline {
        font-size: 12px;
    }

    .avatar-container {
        width: 180px;
    }

    .glow {
        width: 150px;
        height: 150px;
    }

    /* Work Experience */
    .work-experience {
        padding: 70px 5%;
    }

    .section-heading {
        font-size: 22px;
        line-height: 1.3;
        text-align: center;
    }

    .experience-card {
        padding: 30px 40px;

    }

    .card-body h3 {
        font-size: 18px;
    }

    .card-body p {
        font-size: 8px;
    }



    .core {
        width: 100px;
        height: 100px;
    }

    .core img {
        width: 40px;
        height: auto;
    }


    .orbit-1 {
        width: 445px
    }

    .orbit-2 {
        width: 504px
    }

    .orbit-3 {
        width: 601px
    }



    */ .connections {
        width: 100%;
        height: auto;
        top: -20px;
    }

    /* Projects */
    .featured-projects {
        padding: 70px 5%;
    }

    .project-title {
        font-size: 22px;
    }

    .project-card-desc p {
        font-size: 14px;
        padding: 15px;
    }

    /* Contact */
    .contact-section {
        padding: 70px 5%;
        text-align: center;
    }

    .contact-desc,
    .email-link {
        font-size: 14px;
    }

    .curved-arrow {
        display: none;
    }

    .handwritten-note {
        left: -96px;
    }

    .hero-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .bio-desc {
        padding: 0 5%;
    }

    .icon-circle {
        width: 40px;
        height: 40px;

    }

    .recruitment h2 {
        font-size: 16px;
    }


}

/* ==========================================================
   EXTRA SMALL DEVICES (≤ 400px)
   ========================================================== */

@media (max-width: 420px) {

    /* ========================
     GLOBAL SPACING FIX
  ======================== */
    .hero {
        padding: 0px 20px 60px;
    }

    .hero-top,
    .hero-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* ========================
     HEADER ALIGNMENT
  ======================== */





    nav {
        padding: 0 20px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo img {
        width: 32px;
    }

    /* ========================
     AVATAR SECTION
  ======================== */
    .avatar-container {
        width: 180px;
        margin: 20px 0 30px;
    }

    .avatar {
        width: 100%;
    }

    .glow {
        width: 200px;
        height: 200px;
    }

    .note-wrapper {
        text-align: center;
        margin-bottom: 15px;
    }

    .handwritten-note {
        font-size: 14px;
    }

    /* ========================
     HEADLINE FIX
  ======================== */
   

    .headline-box h1 {
        font-size: 22px;
        line-height: 1.4;
        margin: 10px 0;
    }

    .small-text {
        font-size: 14px;
    }

    .tagline {
        font-size: 14px;
        line-height: 1.6;
        max-width: 300px;
        margin: 10px auto 0;
    }

    /* ========================
     TYPING TEXT
  ======================== */
    .typing-text {
        font-size: 22px;
        margin-top: 30px;
    }

    .role {
        font-size: 14px;
        margin-top: 10px;
        display: block;
    }

    .fb-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    /* ========================
     BIO SECTION
  ======================== */
    .bio-desc {
        margin-top: 20px;
        max-width: 320px;
    }

    .bio-desc p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* ========================
     WORK EXPERIENCE CARDS
  ======================== */
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .experience-card {
        padding: 20px;
    }

    .card-body h3 {
        font-size: 16px;
    }

    .btn-outline {
        font-size: 11px;
        padding: 8px 16px;
    }

    /* ========================
     PROJECT SECTION
  ======================== */
    .project-item {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .project-title {
        font-size: 20px;
    }

    .project-card-desc p {
        font-size: 14px;
        line-height: 1.6;
    }

    .project-img img {
        width: 100%;
    }

    /* ========================
     TECH STACK CLEANUP
  ======================== */
    .tech-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .icon-circle {
        width: 40px;
        height: 40px;
    }

    /* Orbit section scaling */
    .orbit-1 {
        width: 260px;
    }

    .orbit-2 {
        width: 320px;
    }

    .orbit-3 {
        width: 380px;
    }

    .core {
        width: 70px;
        height: 70px;
    }

    .bio-desc {
        padding: 24px 18px;
        max-width: 340px;
    }

    .bio-desc p {
        font-size: 14px;
        line-height: 1.8;
    }


}