*{
    box-sizing: border-box;
}
body{
    background: #181c24;
    color: #e0f7fa;
    width: 100%;
    margin: 0%;
    font-family: Roboto, Arial, sans-serif;
}

.head_part{
    position : relative;
    display: flex;

}
.portfolio_name{
    width: 500px;
    margin: 15px 100px;
    animation: slideRight 1s ease forwards;
}
#logo{
    font-size: 30px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}
.navbar{
    margin: 20px 50px;
    
}
.navbar a{
    display: inline-block;
    font-size: 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    margin: 20px;
    animation: slideTop 0.5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}
#logo:hover, .navbar a:hover {
    color: #0097cd;
}
.intro_photo{
    display: flex;
    width: 80%;
}

.intro{
    color: white;
    margin: 100px 10px 20px 100px;
}
.intro h3 {
    font-size: 25px;
}
.multiple-text{
    color: #0097cd;
    font-size: 30px;
}
.intro h1{
    font-size: 40px;
    color: #0097cd;
    margin: 5px 0px ;   
}
.image_man{
    opacity: 0;
    animation:  zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 1s, 3s;
}
#main_img{
    margin: 50px 0px 0px 200px;
    width: 400px;
    height: 500px;
    
}
.social_media a{
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
    border: 2px solid #0097cd;
    border-radius: 50%;
    margin: 10px;
    width: 40px;
    height: 40px;
    align-items: center;
    color: #0097cd;
    font-size: 30px;
    transition: 0.5s ease;
}
.social_media a:hover{
    background-color: #0097cd;
    color: black;
    width: 50px;
    height: 50px;
    font-size: 40px;
    box-shadow: 0px 0px 20px 11px;
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


@keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-35px);
    }
    100% {
        transform: translateY(0);
    }
}
/*  write css code to make my skill section dynamic and most interactive and responsive */
.sec_header{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.skills {
    position: relative; /* Needed for pseudo-element positioning */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers children horizontally */
    margin: 0px 0 auto;
    padding: 20px 20px 40px 20px;
    background: linear-gradient(120deg, #232a34 0%, #181c24 100%);
    border-radius: 0px;
    box-shadow: 0 8px 32px 0 rgba(0,151,205,0.10);
    animation: fadeInSkillSection 1s ease;
}

/* Add a technical SVG pattern as a background overlay */
.skills::before, .intro_photo::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 400px;
    height: 400px;
    background: url('data:image/svg+xml;utf8,<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><g opacity="0.10"><circle cx="200" cy="200" r="180" stroke="%230097cd" stroke-width="4" fill="none"/><rect x="60" y="60" width="80" height="80" rx="16" stroke="%2300e0ff" stroke-width="3" fill="none"/><rect x="260" y="260" width="80" height="80" rx="16" stroke="%2300e0ff" stroke-width="3" fill="none"/><line x1="0" y1="400" x2="400" y2="0" stroke="%230097cd" stroke-width="2" stroke-dasharray="10,10"/></g></svg>');
    background-size: cover;
    z-index: 0;
    pointer-events: none;
}

.skills::after, .intro_photo::after {
    /* Add a radial gradient for a glowing effect */
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 70% 30%, #00e0ff22 0%, #181c2400 80%);
    z-index: 0;
    pointer-events: none;
}

/* Ensure content is above the graphics */
.skills > * {
    position: relative;
    z-index: 1;
}

@keyframes fadeInSkillSection {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}

.sec_head:first-of-type {
    
    display: inline-block;
    color: #00e0ff;
    font-size: 2.8rem;
    margin-bottom: 30px;
    letter-spacing: 3px;
    font-weight: bold;
    text-align: center;
    position: relative;
    background: linear-gradient(90deg, #00e0ff 30%, #0097cd 70%);
    /* background-color: #333; */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: popIn 1s cubic-bezier(.68,-0.55,.27,1.55);
    box-shadow: 0 4px 24px 0 rgba(0,151,205,0.10);
    border-radius: 12px;
    padding: 8px 32px;
    transition: transform 0.3s;
}

.sec_head:first-of-type::after {
    content: '';
    display: block;
    margin: 12px auto 0 auto;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #00e0ff 0%, #0097cd 100%);
    opacity: 0.7;
    animation: underlineGrow 1.2s cubic-bezier(.68,-0.55,.27,1.55);
}
.sec_header:hover {
    transform: scale(1.05);
}
.sec_head:first-of-type:hover {
    box-shadow: 0 8px 32px 0 rgba(0,151,205,0.18);
}
.skill_head:hover{
    box-shadow: 0 8px 32px 0 rgba(0,151,205,0.18);
    background: linear-gradient(90deg, #00e0ff 30%, #0097cd 70%);
    background-clip: text;
}

.skillset {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    width: 100%;
}

.skill {
    background: #232a34;
    border: 1.5px solid #00e0ff;
    border-radius: 16px;
    padding: 32px 24px;
    margin: 0;
    width: 260px;
    min-height: 180px;
    box-shadow: 0 4px 16px 0 rgba(0,151,205,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 
        transform 0.3s cubic-bezier(.25,.8,.25,1),
        box-shadow 0.3s cubic-bezier(.25,.8,.25,1),
        border-color 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #0097cd22 0%, #fff0 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.skill:hover, .skill:focus-visible {
    transform: translateY(-8px) scale(1.06) rotate(-1deg);
    box-shadow: 0 8px 32px 0 rgba(0,224,255,0.18);
    border-color: #00e0ff;
    box-shadow: #005f7f 0px 0px 20px 11px;
    outline: 2px solid #00e0ff;
}

.skill:hover::before, .skill:focus-visible::before {
    opacity: 1;
}

.skill h3 {
    color: #00e0ff;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    z-index: 1;
    text-align: center;
}

.skill p {
    color: #b2ebf2;
    font-size: 1rem;
    text-align: center;
    z-index: 1;
}

.skill-icon {
    width: 130px;
    height: 130px;
    /* object-fit: cover; */
    /* border-radius: 50%; */
    margin-bottom: 14px;
    /* border: 3px solid #0097cd; */
    /* background: #181c24; */
    /* box-shadow: 0 2px 12px 0 rgba(0,151,205,0.10); */
    /* transition: transform 0.3s, border-color 0.3s; */
}

.skill:hover  {
    transform: scale(1.12) rotate(-6deg);
    border-color: #00e0ff;
}

@media (max-width: 900px) {
    .skillset {
        gap: 16px;
        max-width: 700px;
    }
    .skill {
        width: 220px;
        padding: 24px 12px;
    }
}

@media (max-width: 600px) {
    .skillset {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .skill {
        width: 95%;
        min-width: unset;
        padding: 18px 8px;
    }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.7) translateY(40px);}
    100% { opacity: 1; transform: scale(1) translateY(0);}
}

@keyframes underlineGrow {
    0% { width: 0; opacity: 0; }
    100% { width: 60px; opacity: 0.7; }
}