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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: #ededed;
    background-color: #080808; /* Deep black */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(50, 50, 50, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(30, 30, 30, 0.08) 0%, transparent 25%);
}

/* ======== HEADER & NAVIGATION ======== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: #000000; /* Pure black for header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}
.text {
    color: #ffbd59;
    /* or any visible color */
    font-weight: bold;
}
.navbar a {
    display: inline-block;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
    color: #ffbd59;
}

#menu-icon {
    font-size: 3.6rem;
    color: #fff;
    display: none;
  
}


.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
    overflow: hidden; /* Prevent scrollbars from decorative elements */
}

/* Decorative background glow */
.home::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 189, 89, 0.05) 0%, transparent 40%);
    z-index: -1;
}

.home-content {
    max-width: 600px;
    z-index: 10;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: #ffbd59;
    text-shadow: 0 0 10px rgba(255, 189, 89, 0.3);
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
    background: linear-gradient(to right, #fff, #ffbd59);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.home-content p {
    font-size: 16px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
    line-height: 1.6;
    margin-bottom: 2rem; /* Add spacing */
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px; /* Slightly larger */
    height: 45px;
    background: rgba(0, 0, 0, 0.2); /* Subtle fill */
    border: 2px solid #ffbd59;
    border-radius: 50%;
    font-size: 22px;
    color: #ffbd59;
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
    backdrop-filter: blur(5px);
}

.home-sci a:hover {
    background: #ffbd59;
    color: #081b29;
    box-shadow: 0 0 20px #ffbd59;
    transform: translateY(-5px); /* Small lift effect */
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-box {
    display: inline-block;
    padding: 12px 28px;
    background: #ffbd59;
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #ffbd59, 0 0 25px #ffbd59;
    transition: all .4s ease;
}

.btn-box:hover {
    box-shadow: 0 0 10px #ffbd59, 0 0 40px #ffbd59, 0 0 80px #ffbd59;
    transform: scale(1.05); /* Gentle grow */
}

.glow-image-container {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: slideLeft 1s ease forwards, floatImage 4s ease-in-out infinite 2s; /* Added float */
    animation-delay: 1.5s, 2s; /* separate delays */
    z-index: 1;
}

/* Rotating Ring */
.glow-image-container::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-top: 5px solid #ffbd59;
    border-right: 5px solid #ffbd59;
    animation: spin 10s linear infinite;
    z-index: -1;
    box-shadow: 0 0 20px rgba(255, 189, 89, 0.5);
}

/* Inner Glow */
.glow-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 189, 89, 0.1);
    filter: blur(30px);
    z-index: -2;
}

.glow-image-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
    border: 4px solid rgba(255, 189, 89, 0.5); /* Replaced wheat with theme color */
    box-shadow: 0 0 20px rgba(255, 189, 89, 0.3);
}

/* ======== ABOUT SECTION ======== */
.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2.5rem;
    padding: 100px 10%;
    background: #0d0d0d; /* Slightly lighter black for contrast */
}

.about-img .glow-image-container-2 {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: conic-gradient(#00ffff, #ff00ff);
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    box-shadow: 0 0 20px #fff, 0 0 40px #fff, 0 0 60px rgba(255, 255, 255, 0.3);
}

.about-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid wheat;
    object-position: center 10%;
}

.about-text h2 {
    font-size: 60px;
}

.about-text h2 span {
    color: #ffbd59;
}

.about-text h4 {
    font-size: 29px;
    font-weight: 600;
    color: #fff;
    line-height: 1.7;
    margin: 15px 0 30px;
}

.about-text p {
    color: aliceblue;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 4rem;
}


.services {
    padding: 100px 10%;
}

.sub-title {
    text-align: center;
    font-size: 60px;
    margin-bottom: 50px;
    margin-top: 80px;
}

.sub-title span {
    color: #ffbd59;
}



#skill {
    padding: 100px 10%;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center; /* Center content */
}

.container1 {
    width: 100%; /* Full width */
    background: #0d0d0d;
    padding: 40px 50px;
    border-radius: 10px;
    border: 1px solid #1f1f1f; /* Subtle border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.heading {
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 5px;
    margin-bottom: 50px;
    font-size: 38px;
}

.heading span {
    color: #ffbd59;
}


.technical-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive Grid */
    gap: 30px;
}

.technical-bars .bar {
    background: #1a1a1a;
    padding: 25px 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column; /* Stack icon, name, bar */
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.technical-bars .bar:hover {
    transform: translateY(-10px);
    border-color: #ffbd59;
    box-shadow: 0 10px 30px rgba(255, 189, 89, 0.15);
    background: #222;
}

/* Glass/Glow effect on hover */
.technical-bars .bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 189, 89, 0.1), transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

.technical-bars .bar:hover::before {
    opacity: 1;
}

.technical-bars .bar i,
.technical-bars .bar svg,
.technical-bars .bar img {
    font-size: 50px; /* Larger Icons */
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
    transition: 0.4s;
}

.technical-bars .bar:hover i,
.technical-bars .bar:hover svg,
.technical-bars .bar:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px #ffbd59);
}

.technical-bars .bar .fa-python {
    color: #c32e39;
}

.technical-bars .bar svg {
    fill: #ffbd59;
}
.technical-bars .bar i {
    color: #ffbd59;
}

.bar .info {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    width: auto;
    margin-bottom: 5px;
}

.progress-line {
    width: 100%;
    height: 6px; /* Slightly thicker */
    background-color: #333;
    border-radius: 10px;
    position: relative;
}

.progress-line span {
    height: 100%;
    background-color: #ffbd59;
    position: absolute;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    animation: animate 1s cubic-bezier(1, 0, 0.5, 1) forwards;
}

.progress-line.python span {
    width: 100%;
}

.progress-line.c span {
    width: 100%;
}

.progress-line.cpp span {
    width: 100%;
}

.progress-line.numpy span {
    width: 100%;
}

.progress-line.pandas span {
    width: 100%;
}

.progress-line.matplot span {
    width: 100%;
}

.progress-line.sql span {
    width: 100%;
}
.progress-line.Sklearn span {
    width: 100%;
}
.progress-line.git span {
    width: 100%;
}
.progress-line.tensorflow span {
    width: 100%;
}
.progress-line.langchain span {
    width: 100%;
}

.progress-line.langgraph span {
    width: 100%;
}

/* ======== PORTFOLIO SECTION ======== */
#portfolio {
    padding: 100px 10%;
}

.main-text {
    width: 100%;
    text-align: center;
}

.main-text h2 {
    font-size: 60px;
    margin-bottom: 50px;
}

.main-text h2 span {
    color: #ffbd59;
}

.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 50px;
}

.row {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #ffbd59;
}

.row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), #ffbd59);
    position: absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    overflow: hidden;
    /* keep this for overall layer */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    transition: height 0.5s;
}

.layer h5 {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.layer p {
    color: #000;
    font-size: 1rem;
    line-height: 1.8;
    max-height: 120px;
    /* adjust as needed */
    overflow-y: auto;
    padding-right: 10px;
    /* for scrollbar spacing */
    margin-bottom: 1rem;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #ffbd59 #fff;
    /* Firefox */
}

.layer p::-webkit-scrollbar {
    width: 6px;
    background: #fff;
}

.layer p::-webkit-scrollbar-thumb {
    background: #ffbd59;
    border-radius: 6px;
}

.layer i {
    color: #ffbd59;
    margin-top: 20px;
    font-size: 20px;
    background: #1f1f1f;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.row:hover img {
    transform: scale(1.1);
}

.row:hover .layer {
    height: 100%;
}

/* ======== CERTIFICATES SECTION ======== */
.certificates {
    background: #0d0d0d; /* Slightly different background for separation */
    padding: 100px 10%;
}

.certificate-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 50px;
}

.cert-box {
    background: #1f1f1f;
    border-radius: 10px;
    border: 1px solid transparent;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cert-box:hover {
    transform: translateY(-10px);
    border-color: #ffbd59;
    box-shadow: 0 10px 25px rgba(255, 189, 89, 0.2);
}

.cert-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.cert-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cert-box:hover .cert-img img {
    transform: scale(1.1);
}

.cert-info {
    padding: 20px;
    text-align: center;
}

.cert-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.cert-info p {
    font-size: 14px;
    color: #b1b1b1;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background: #ffbd59;
    color: #081b29;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    gap: 5px;
}

.read-more:hover {
    box-shadow: 0 0 10px #ffbd59;
    background: #fff;
    color: #ffbd59;
}

/* ======== CONTACT SECTION ======== */
.contact {
    padding: 100px 10%;
    background: #080808;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
}

.contact-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-text h2 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 20px;
}

.contact-text h2 span {
    color: #ffbd59;
}

.contact-text h4 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.contact-text p {
    font-size: 16px;
    color: #b1b1b1;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.contact-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #111;
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid #222;
    transition: 0.3s;
    min-width: 250px;
}

.contact-item:hover {
    border-color: #ffbd59;
    transform: translateY(-5px);
    background: #1a1a1a;
    box-shadow: 0 5px 20px rgba(255, 189, 89, 0.1);
}

.contact-item i {
    font-size: 24px;
    color: #ffbd59;
}

.item-info span {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}

.item-info p {
    font-size: 16px;
    color: #fff;
    margin-bottom: 0;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-box {
    display: flex;
    gap: 1.5rem;
}

.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1rem;
    color: #fff;
    background: #111;
    border-radius: 0.8rem;
    border: 1px solid #222;
    transition: 0.3s;
}

.contact-form form input:focus,
.contact-form form textarea:focus {
    border-color: #ffbd59;
    background: #1a1a1a;
    box-shadow: 0 0 10px rgba(255, 189, 89, 0.1);
    outline: none;
}

.contact-form form textarea {
    resize: none;
}

.contact-form .btn-box {
    margin-top: 1rem;
    cursor: pointer;
    width: fit-content;
}

/* ======== STICKY SOCIAL SIDEBAR ======== */
.contact-icons-sidebar {
    position: fixed;
    top: 50%;
    right: 15px; /* Moved closer to the edge */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.contact-icons-sidebar a i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent; /* Minimalist look */
    border: none; /* Removed border */
    font-size: 26px; /* Slightly larger icons */
    color: #ffbd59;
    text-decoration: none;
    margin: 10px 0;
    transition: .4s ease;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.contact-icons-sidebar a i:hover {
    color: #fff;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px #ffbd59);
}

.contact-icons {
    margin-top: 2rem;
}

.contact-icons a i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #ffbd59;
    border-radius: 50%;
    font-size: 20px;
    color: #ffbd59;
    text-decoration: none;
    margin: 0 8px;
    transition: .5s ease;
}

.contact-icons a i:hover {
    background: #ffbd59;
    color: #000;
    box-shadow: 0 0 20px #ffbd59;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
    .contact {
        padding: 60px 5% 30px; /* Reduce padding on smaller screens */
    }

    .contact-icons {
        /* Allow icons to wrap on smaller screens */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px; /* Add some space between wrapped icons */
    }

    .contact-icons a i {
        margin: 0;
    }
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
    .contact {
        padding: 60px 5% 30px;
        /* Reduce padding on smaller screens */
    }

    .contact-icons-sidebar {
        right: 10px;
    }

    .contact-icons-sidebar a i {
        width: 35px;
        height: 35px;
        font-size: 18px;
        margin: 5px 0;
    }
}

/* ======== KEYFRAMES FOR ANIMATIONS ======== */
@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes animate {
    100% {
        transform: scaleX(1);
    }
}

@keyframes animate-path {
    100% {
        stroke-dashoffset: var(--dash-offset, 0);
    }
}
@keyframes showText {
    100% {
        opacity: 1;
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-24px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 1200px) {
    .header,
    .home,
    .services,
    #skill,
    #portfolio,
    .certificates,
    .contact {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 992px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 5%;
        background: #000000;
        transition: .3s ease;
        z-index: 999;
    }

    .navbar.active {
        left: 0;
    }

    .navbar a {
        display: block;
        font-size: 1.5rem;
        margin: 2rem 0;
        text-align: center;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
        height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .glow-image-container {
        width: clamp(250px, 40vw, 400px);
        height: clamp(250px, 40vw, 400px);
        margin: 0 auto 3rem;
    }

    .home-content h1 {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .home-content h3 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .contact {
        padding: 60px 5%;
    }
}

@media (max-width: 768px) {
    .sub-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .heading {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .technical-bars {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }

    .portfolio-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .certificate-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .contact-icons-sidebar {
        right: 10px;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        background: rgba(0, 0, 0, 0.6);
        padding: 10px 20px;
        border-radius: 30px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 189, 89, 0.3);
    }

    .contact-icons-sidebar a i {
        margin: 0 10px;
        font-size: 20px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 2.5rem;
    }

    .home-content h3 {
        font-size: 1.2rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-box {
        width: 100%;
        text-align: center;
    }

    .technical-bars {
        grid-template-columns: 1fr;
    }
}
