@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-bg-color: #09090b;
    --main-color: #ffe75f;
    --secondary-color: #db9123;
    --bg-icon-color: 255, 150, 50;
    --buttonShadow-color: rgba(252, 198, 37, 0.3);
    --buttonShadow-hover-color: rgba(252, 198, 37, 0.5);
    --buttonShadow-active-color: rgba(252, 162, 37, 0.6);
    --background-image: url("assets/city-background.jpg");

    /* Inner shadow */
    --shadow-offset: 3px;
    --shadow-blur: 14px;
    --shadow-spread: -5px;
    --shadow-color: rgba(255, 255, 255, 0.8);
    --tint-color: 255, 255, 255;
    --tint-opacity: 0.01;
    --frost-blur: 2px;
    --outer-shadow-blur: 24px;
}
html, body {
    height: 100%;
}
body {
    font-family: "Montserrat", sans-serif;
    color: #fff;
    background-color: #232323;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    position: relative;

    background-image: var(--background-image);
    background-size: cover; /* Keeps aspect ratio, fills screen */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.ambient-shape {
    content: "";
    display:none; /* Hide by default */
    position: fixed; /* Change to fixed positioning */
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(100px); /* Make the shapes blurry */
    z-index: -1;
}

.ambient-shape {
    top: 50%;
    left: 50%;
    animation: float 10s ease-in-out infinite;
}

.header {
    backdrop-filter: blur(10px);
    position: relative;
    animation: fadeIn 1s ease-in-out;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;

    padding: 4px 0;
    display: flex;
    justify-content: center;

    background: rgba(28, 28, 31, 0.25);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

    z-index: 1000;
}

.nav-link {
    position: relative;
    color: rgb(218, 218, 218);
    text-decoration: none;
    padding: 5px 20px;
    display: inline-block;
    transition: all 0.3s; /* Optional for smoother transition */
}

.nav-link:hover { /* Add hover-active class for scroll effect */
    color: white;
    font-weight: bold;
}

/* Underline expanding hover effect */
.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10%;
    width: 0;
    height: 4px;
    background-image: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    transition: width 0.5s ease, left 0.5s ease;
    box-shadow: 0px 0px 10px var(--secondary-color);
    font-weight: bold;
}


.nav-link.hover-active::after { /* Trigger underline on hover-active as well */
    width: 100%;
    left: 0;
}

.styleButton {
    display: inline-block;
    margin: 1rem auto 0 auto;
    padding: 0.6em 1.8em;
    background: linear-gradient(270deg, var(--secondary-color), rgb(var(--bg-icon-color)), var(--secondary-color));
    background-size: 600% 600%;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    box-shadow: 0 8px 15px var(--buttonShadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: gradientShift 10s ease infinite;
    width: fit-content;
    text-align: center;
}

.styleButton:hover{
    color: white;
    transform: scale(1.05);
    box-shadow: 0 12px 20px var(--buttonShadow-hover-color);
}
.styleButton:active{
    color: white;
    transform: scale(0.95);
    box-shadow: 0 5px 10px var(--buttonShadow-active-color);
}

.viewMoreProjects:hover{
    color: white;
    transform: scale(1.05) rotate(3deg);
}
.viewMoreProjects:active{
    color: white;
    transform: scale(0.95) rotate(-2deg);
}
/* Keyframes for smooth gradient animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.contact-link {
    text-decoration: none;
}

.contact-link:hover{
    text-decoration: underline;
}
.contact-container {
    display: flex;
    justify-content: space-evenly;
    width: 60%;
}

#contact-form {
    background: rgba(28, 28, 31, 0.25); /* Slightly more transparent */
    border-radius: 12px;
    padding: 15px 20px;
    gap: 15px;

    /* Smooth motion */
    transition: scale 0.3s ease, box-shadow 0.3s ease;

    /* Stronger blur and saturation for glass effect */
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);

    /* Subtle frosted border */
    border: 1px solid rgba(255, 255, 255, 0.15);

    /* Glassy shadow and glow */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.messageForm p {
    position: relative;
    font-size: .75em;
    line-height: 0;
    vertical-align: baseline;
    bottom: -.25em;
    margin-left: 10px;
    letter-spacing: 0.1ch;
    margin-bottom: 15px !important;
    font-weight: bold;
}
.contactDetails {
    position: relative;
    width: fit-content;
    left: 0;
    top: 0;
    padding: 15px;
}
.contactDetails h2 {
    font-weight: 700;
}

.name-text {
    animation: slideInFromTop 1s ease-out;
    font-weight: 550 !important;
    font-size: clamp(36px, 6vw, 8em) !important;
    background: linear-gradient(to left, var(--main-color), var(--secondary-color));
    -webkit-background-clip: text; 
    color: transparent; 
    background-clip: text;
    width: 100%;
    display: flex;
    max-width: 100vw;
    gap: 2vw;
    justify-content: center;
}

.quick-socials {
    gap: 20px;
    animation-delay: 1.2s;
}
.job-label {
    color: whitesmoke;
    animation-delay: 0.8s;
}

div.container.name-holder {
    padding-bottom: 5px !important;
    margin-top: 0;
    margin-bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* Prevent horizontal overflow */
}

.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: rgba(var(--bg-icon-color), 1);
    font-size: 20px;
    background: rgba(var(--bg-icon-color), 0.2);
    box-shadow: rgba(var(--bg-icon-color), 0.8) 0px 0px 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.icon-circle:hover{
    scale: 1.1;
}

div.about-me {
    max-width: 30vw;
}

.about-me.move-up {
    transform: translateY(-200px);
    transition: transform 0.7s ease-in-out;
}

.about-me.move-down {
    transform: translateY(0);
    transition: transform 0.5s ease-in;
}

header p {
    animation: slideInFromTop 1.2s ease-out;
}
header nav ul {
    animation: fadeIn 1.4s ease-in-out;
}
.projects-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.projects-container-large {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.project-card {
    background: rgba(28, 28, 31, 0.25) !important; /* Slightly more transparent */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    margin: 0 auto 40px auto;
    width: 700px;
    border-radius: 12px;

     /* Stronger blur and saturation for glass effect */
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);

    /* Subtle frosted border */
    border: 1px solid rgba(255, 255, 255, 0.15);

    /* Glassy shadow and glow */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

    z-index: 15;
    overflow: hidden;
}
.project-card:hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(1.015) translateY(10px);
}

.project {
    backdrop-filter: blur(px);
}

.card-media {
    position: relative;
    height: 110px; /* Initial height of the image container, adjust as needed */
    overflow: hidden; /* Hide overflow to achieve the cut-off effect */
    filter: brightness(0.7);
    transition: all 0.5s ease; /* Smooth transition for hover effect */
    border-radius: 11px 11px 0px 0px;
    opacity: 0.6;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.card-media:hover {
    height: 150px; /* Height when hovered, adjust as needed */
    filter: brightness(1);
    opacity: 1;
}
.card-media:hover .project-img {
    transform: scale(1.1);
}

.project-img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    transition: all 0.5s ease; /* Smooth transition for hover effect */
    cursor: pointer;
}
.card-title {
    font-size: 2em;
    font-weight: 600;
    z-index: 2;
    filter: brightness(1);
}

.card-body {
    position: relative;
    flex: 1;
    text-align: left;
    padding: 0px 10px 10px 10px;
    z-index: 1;
}

.card-text {
    color: rgb(168, 168, 168);
}

/* Responsive design adjustments */
@media (max-width: 1200px) {
    .card-title {
        font-size: x-large;
        font-weight: 600;
    }
    .card-text {
        font-size: 0.8em !important;
    }
    .nav-link {
        padding: 5px 13px 5px 13px;
    }
    div.about-me {
        width: 100%;
        max-width: 100vw;
    }
    .projects-container {
        flex-direction: column;
    }
    .project-card {
        flex-direction: column; 
        align-items: center;
        flex-wrap: wrap-reverse;
        width: 100%;
    }
    .backBtn {
        left: 5% !important;
    }

    .card-media {
        width: 100%;
        margin-left: 0;
    }

    .project-img {
        margin-left: 0;
    }

    .btn {
        width: 100%;
        margin: 10px 0 0 0;
        text-align: center;
    }
    .contact-container {
        width: 90%;
        flex-direction: column; 
    }
    div.messageForm {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    #notificationAlert {
        width: 90% !important;
    }
}

.messageForm {
    width: 350px;
}

section {
    /* animation: fadeInUp 1s ease-out; */
    margin-top: 50px; /* Reduced margin */
    margin-bottom: 50px; /* Reduced margin */
}

.seq-fadeIn {
    opacity: 0; /* Ensure elements are initially invisible */
    animation-fill-mode: forwards !important; /* Retain the final state of the animation */
}

.skills-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.skill-card {
    background: rgba(28, 28, 31, 0.25); /* Slightly more transparent */
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;

    /* Smooth motion */
    transition: scale 0.3s ease, box-shadow 0.3s ease;

    /* Stronger blur and saturation for glass effect */
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);

    /* Subtle frosted border */
    border: 1px solid rgba(255, 255, 255, 0.15);

    /* Glassy shadow and glow */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.skill-card:hover {
    /* transform: translateY(-5px); */
    scale: 1.05;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    width: 45px;
    height: auto;
    background: var(--skill-icon-bg);
    border-radius: 4px;
    padding: 6px;
}

strong {
    font-size: 1.1em;
    color: #fff;
}

.skill-card span {
    color: #ccc; /* Color for description */
    font-size: 0.9em;
}

.list-group-item {
    background-color: #343a40;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    animation: slideInFromRight 1s ease-out;
}
.skill-badge {
    background-color: #343a40;
    filter: brightness(0.8);
}
.lang-badge {
    background-color: #343a40;
    filter: brightness(0.8);
    border-radius: 40px;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
}
a:hover{
    color: var(--secondary-color);
}

.projectIcon {
    margin-right: 15px;
    font-size: 1.5em;
    padding: 5px;
    transition: all 0.25s ease-in-out;
    color: var(--main-color);
}
.projectIcon:hover{
    text-shadow: var(--card-color) 0px 0px 5px;
}


#notificationAlert {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%) scale(0.88);
    z-index: 1050;
    opacity: 0;
    width: auto;
    color: white;
    border-radius: 6px;
    padding: 10px 20px;
    text-align: center;
    font-weight: bold;
    transition: opacity 0.4s ease-in-out,top 0.4s ease-in-out,transform 0.4s ease-in-out;
    top: -40px;
    pointer-events: none;
}

.success {
    background: linear-gradient(
        45deg,
        rgba(0, 105, 0, 0.8) 0%, 
        rgba(255, 255, 255, 0.2) 50%,
        rgba(0, 105, 0, 0.8) 100% 
    );
    backdrop-filter: blur(5px);
    border: 2px solid rgba(0, 206, 0, 0.6);
}
.error {
    background: linear-gradient(
        45deg,
        rgb(139, 0, 0,0.8) 0%, 
        rgba(255, 100, 100, 0.3) 50%,
        rgb(139, 0, 0,0.8) 100% 
    );
    border: 2px solid rgb(255, 0, 0,0.6);
}
#notificationAlert.fade-in {
    opacity: 1;
    top: 30px;
    transform: translateX(-50%) scale(1);
}
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUpBounce {
    0% {
        opacity: 0;
        transform: translateY(20px); 
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 0.3s forwards;
}

.floating-label {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label .contactFormInput {
    width: 100%;
    padding: 12px 12px 12px 12px;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #cecece;
    box-sizing: border-box;
    transition: all 0.1s ease-in-out;
}
.floating-label .contactFormInput:focus {
    background: rgba(255, 255, 255, 0.12);
}

.floating-label label {
    position: absolute;
    color: #999;
    pointer-events: none;
    transition: 0.2s ease-in-out all;
    padding: 0 4px;
    top: -8px;
    left: 8px;
    font-size: 12px;
    font-weight: bold;
}

.floating-label .contactFormInput:focus{
    outline: 0;
}

.sendBtn {
    background-color: rgb(51, 123, 206);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 100%;
    padding: 10px;
}
.sendBtn:hover {
    background-color: rgb(16, 71, 134);
}
.backBtn {
    position: relative;
    left: 20%;
    color: whitesmoke;
    margin: 0;
    background: #1212146b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1px);
    width: fit-content;
}
.backBtn:hover {
    background: #1010116b;
}

.theme-toggle-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
    z-index: 1000;
    color: var(--main-color);
    transition: color 0.3s;
}


/* Responsive design adjustments */
@media (max-width: 768px) {
    .skills-images {
        grid-template-columns: repeat(2, 1fr); /* Adjust for smaller screens */
        gap: 10px; /* Reduce gap for smaller screens */
    }

    .skill-card {
        padding: 10px; /* Adjust padding for smaller screens */
        line-height: 13px;
    }

    .skill-icon {
        width: 35px; /* Adjust icon size for smaller screens */
    }

    .skills-container {
        overflow-x: hidden; /* Prevent horizontal overflow */
        font-size: 0.8em;
    }

    .skill-card strong {
        font-size: 0.9em; /* Scale down text size */
    }

    .skill-card span {
        font-size: 0.8em; /* Scale down text size */
    }
}

        .project-card {
            border-radius: 28px;
            isolation: isolate;
            /* enable pointer dragging on touch */
            box-shadow: 0px 6px var(--outer-shadow-blur) rgba(0, 0, 0, 0.2);
            background: rgba(28, 28, 31, 0.25) !important; /* Slightly more transparent */
            
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            padding: 20px;
            margin: 0 auto 40px auto;
            width: 700px;
            z-index: 15;
            overflow: hidden;
        }

        .project-card::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            border-radius: 28px;
            box-shadow:
                inset var(--shadow-offset) var(--shadow-offset) var(--shadow-blur) var(--shadow-spread) var(--shadow-color);
            background-color: rgba(var(--tint-color), var(--tint-opacity));
        }

        .project-card::after {
            content: '';
            position: absolute;
            inset: 0;
            z-index: -1;
            border-radius: 28px;
            backdrop-filter: blur(var(--frost-blur));
            filter: url(#glass-distortion);
            isolation: isolate;
            -webkit-backdrop-filter: blur(var(--frost-blur));
            -webkit-filter: url("#glass-distortion");
        }