
    :root {
    --primary: #010713;
    --secondary: #6366f1;
    --accent: #10b981;
    --dark: #1e293b;
    --light: #f1f5f9;
    --gradient: linear-gradient(to right, #ffffffbe, rgb(223, 223, 223));
}

/* GLOBAL FIX */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; /* 🔥 prevents horizontal scroll */
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #ffffff;
    color: #334155;
    margin: 0;
    padding: 30px;
}



/* NAME */
.name{
    font-size: clamp(1.3rem, 4vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    color:black;
    font-family: "Aclonica", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.prof{
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    color: black;
    font-weight: 600;
}
.prof span{
    /* color: rgb(70, 4, 4); */
    font-weight: 700;
}
.top{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
     gap: 0px;
}
.period{
    font-size: clamp(0.6rem, 2vw, 1rem);
    color:rgb(8, 196, 92);
    font-weight: 600;
}
.about-me{
    border: 1px solid #cbd5e1;
    padding: 10px;
    margin-top: 10px;
     border-radius: 12px;
     background: var(--gradient);
}
.disc{
    font-size: clamp(0.6rem, 2vw, 1rem);
    color: var(--dark);
    line-height: 1.5;
     text-align: justify;
}
.container {
    width: 100%;
    max-width: 100%; /* 🔥 remove limitation */
    margin: 0;
    background: #c01818;
    padding: 40px;
    border-radius: 0; /* optional: remove rounded edges for full width look */
    box-shadow: none; /* optional: remove shadow for edge-to-edge design */
}



/* HEADER */
.profile-header {
    background: var(--gradient);
    display: flex;
    align-items: end;
    flex-direction: row;
    gap: 25px;
   padding: 6px;
   border-radius: 12px;
    border: 1px solid #cbd5e1;
    /* border-bottom: 2px solid var(--light); */
    flex-wrap: nowrap; /* 🔥 prevents overflow */
}

.profile-img {
    background: url('images/profile3.png');
    background-size: 80% auto;
    background-position: top center;
    background-repeat: no-repeat;
    width: 150px;
    height: 120px;
    object-fit: cover;
    /* filter: drop-shadow(0px -5px 10px rgba(21, 239, 255, 0.384)); */
    border: 1px solid rgb(199, 235, 236);
    border-radius: 10px;
}


.right{
    /* background-color: #1e293b; */
    width: 75%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* gap: 5px; */
}
/* CONTACT */
.contact{
    margin-left: auto;
    text-align: left;
    max-width: 100%;
    padding: 0;
}

.contact p {
    word-break: break-word;
    padding: 0;
}

.contact a {
    padding: 0;
    color: grey;
    text-decoration: none;
    font-size: clamp(0.6rem, 2vw, 1rem);
    word-break: break-all; /* 🔥 fixes long links */
}

/* GRID */
.details-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 6px;
     background: var(--gradient);
}

.title{
    font-size: clamp(0.8rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin: 20px 0 10px; 
      color: var(--primary);
}

/* TIMELINE */
.timeline {
    list-style: none;
    padding: 0;
    border-left: 2px solid var(--light);
    margin-left: 10px;
}

.timeline li {
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
    word-break: break-word;
    font-size: clamp(0.6rem, 2vw, 1.1rem);
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.timeline-date {
    font-size: clamp(0.6rem, 2vw, 1rem);
    font-weight: 600;
    color: #94a3b8;
}
.timeline-sub{
    font-size: clamp(0.6rem, 2vw, 1rem);
    font-weight: 600;
}
/* PROJECT LIST */
.prosection{
     border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 6px;
    margin-top: 10px;
     background: var(--gradient);
}
.techsection{
    display: flex;
    flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 10px;
     border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 6px;
     background: var(--gradient);
}
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

.project-item {
    background: var(--light);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform 0.2s;
    word-wrap: break-word;
}

.project-item:hover {
    transform: translateX(10px);
    background: #eef2ff;
}

.project-title {
    font-weight: 700;
    display: block;
    color: var(--dark);
}

/* SKILLS */
.skill-summary li {
    margin-bottom: 10px;
    list-style: square;
    line-height: 1.5;
    width: 100%; /* 🔥 FIXED */
    font-size: clamp(0.6rem, 2vw, 1rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* change list style to emogy */
.skill-summary li {
    list-style: none;
    position: relative;
    padding-left: 25px;
}
.skill-summary li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    top: 0;
    font-size: clamp(0.6rem, 2vw, 1.2rem);
}

/* TECHNOLOGY */
.technology {
    display: flex;
    flex-direction: row;
     align-items: center;
     justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.technology img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.technology img:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}
/* DEMO */
.demo{
    font-size: clamp(0.6rem, 2vw, 1rem);
    color: var(--accent);
    margin-left: 10px;
    float: right;
}
.contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: clamp(0.6rem, 2vw, 1rem);
}

.contact i {
    width: 18px;
    text-align: center;
    color: black;
    font-size: clamp(0.7rem, 2vw, 1.2rem);
}

/* Hover effect */
.contact a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

footer p {
    font-size: clamp(0.6rem, 2vw, 1rem);
    color: #94a3b8;
}

@media (max-width: 768px) {
    body{
        padding: 10px;
    }
 

    .profile-header {
        flex-direction: row;
        /* justify-content: flex-start; */
            background:var(--gradient);
        align-items: end;
        gap: 10px;
    }
.right{
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
     gap: 0px;
     order: 1;
}
    .profile-img {
        background-size: auto 100%;
        width: 90px;
        height: 135px;
        order: 2;
        border: none;
        border-radius: 5px;
        /* filter: drop-shadow(-5px -5px 10px rgb(186, 236, 238)); */
    }

.details-section {
    grid-template-columns: 3fr 2fr;
    gap: 5px;
    margin-top: 5px;
}

.timeline li {
    margin-bottom: 5px;
    padding-left: 10px;
}
.timeline li::before {
    width: 10px;
    height: 10px;
}

.skill-summary li{
    line-height: 1.2;
    margin-bottom: 5px;
    padding-left: 15px;
}
    .contact{
        margin:0;
      display: flex;
        flex-direction: column;
        align-items: left;
    }
    .title{
       margin: 0px 0 10px; ;
    }

    .contact p {
        margin: 1px 0;
        font-size: 12px;
    }

    .project-item:hover {
        transform: none;
    }
    .demo {
        float: none;
        display: block;
        margin-bottom: 5px;
    }
    .technology{
        gap: 7px;
    }
    .technology img {
        width: 20px;
        height: 20px;
    }
}
