@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Young+Serif&display=swap');
@import url("second-section.css");

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --main-color: #000814;
    --second-color: #f2f2f2;
    --third-color: #6c757d;
    --fourth-color: #dee2e6;
    --fifth-color: #303336;
    --sixth-color: rgba(14, 21, 34, 0.6); /* Adjust transparency */
    --seventh-color: #0eee0e;
    --seventh1-color: #0ed4ee;

    --eighth-color: linear-gradient(45deg, #4ffaa4, #76eff8, #0496cf);
    --ninth-color: #660000;
    --tenth-color: #330000;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Ensures no scrolling */
}
body{
    position: relative;
    background: var(--main-color);
    width: 100vw;
    margin-top: 40px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 100px;
    align-items: center;
    justify-content: center;
    font-family: "Young Serif", serif;
    overflow-x: hidden;
    color: var(--second-color);

}
.ifr{
    position: fixed;
    bottom: 40px;
    right: 10px;
    z-index: 999;
    border-radius: 20px;
}
@media screen and (max-width:760px){
    .ifr{
        width: 300px;
        height: 100px

    }
}
.circles{
    position: absolute;
}
span a{
    text-decoration: none;
    color: var(--second-color);
}
.ttt .klinic-fourth{
    display: flex;
    width: 100vw;
}
.nav-icons{

    position: fixed;
    top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--third-color);
    border-radius: 20px;
    padding: 10px 20px;
    background-color: var(--sixth-color);
    margin-top: 20px;
    z-index: 1000;
    backdrop-filter: blur(8px); /* Blurs content behind */
    transition: all 0.3s ease-in-out;
}
.nav-icons svg{
    color: var(--third-color);
    width: 20px;
    
}
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fifth-color);
    padding: 5px 7px;
    border-radius: 50%;
}
.active{
    background: var(--second-color);
    padding: 5px 7px;
    border-radius: 50%;
}
.home a{
    display: flex;
    align-items: center;
}
.active svg{
    color: var(--main-color)

}
.icon-label {
    position: absolute;
    top: -30px;
    background: var(--fifth-color);
    color: white;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid var(--third-color);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.home:hover .icon-label {
    opacity: 1;
    font-family: "Roboto", sans-serif;

}
.first-section, .profile{
    position: relative;
    display: flex;
    flex-direction: column  ;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.profile{
    position: relative;
    color: var(--second-color);
    font-family: "Roboto", sans-serif;
}

.availability{
    background-color: var(--sixth-color);
    padding: 10px 20px;
    border: 1px solid var(--third-color);
    position: absolute;
    top: 280px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 100px;
    border-radius: 5px;
    backdrop-filter: blur(8px); /* Blurs content behind */
}


.profile img{
    border-radius: 50%;
    border-top: 3px solid var(--third-color);
    border-right: 3px dashed var(--third-color);
    border-bottom: 3px dotted var(--third-color);
    border-left: 3px double var(--third-color);
    
    padding: 10px;}
.online-blink{
    width: 10px;
    height: 10px;
    background-color: var(--seventh-color);
    border-radius: 50%;
    animation: blink 1s infinite;
    display: inline-block;
}

@keyframes blink {
    0%, 100% {
        background-color: var(--seventh-color);
    }
    50% {
        box-shadow: 0 0 8px var(--seventh-color), 0 0 15px var(--seventh-color), 0 0 20px var(--seventh-color);
    }
}
@keyframes rotateImage {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotating {
    
    animation: rotateImage 15s linear infinite;
}

.profile-details{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    max-width: 550px;
}
.profile-title{
    font-size: 40px;
    font-weight: 900;
    color: var(--second-color);
}
.profile-description{
    font-size: 18px;
    font-weight: 400;
    color: var(--third-color);
    text-align: center;
    padding: 0 20px;
    font-family: "Roboto", sans-serif;
}
.explore-work, .connect{
    background-color: var(--sixth-color);
    padding: 10px 20px;
    border: 1px solid var(--third-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 100px;
    border-radius: 5px;
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
    width: 250px;
}
.explore-work:hover{
    animation: bounce 0.5s ease-in-out infinite;
}
.connect:hover{
    background-color: var(--second-color);
    color: var(--main-color);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 10px var(--third-color), 0 0 20px var(--third-color), 0 0 30px var(--third-color);
}
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }

}
.explore-work svg, .connect svg{
    color: var(--third-color);
    width: 20px;
}
.connect{
    background-color: var(--second-color);
    color: var(--main-color);
}
.connect-contact{
    display: flex;
    gap: 10px;
}
@media(max-width: 768px){
    .profile-details{
        max-width: 100%;
    }
    .profile-title{
        font-size: 30px;
    }
    .profile-description{
        font-size: 16px;
    }
    .connect-contact{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
}
.star {
    width:20px;
    height: 20px;
    background: var(--main-color);
    clip-path: polygon(
      50% 0%, 61% 35%, 98% 35%, 
      68% 57%, 79% 91%, 50% 70%, 
      21% 91%, 32% 57%, 2% 35%, 
      39% 35%
    );
  }
    .star:hover {
        animation: rotateStar 1s linear infinite;
    }  

    .contact-me a{
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--second-color);
    }


/* ── Contact Modal ── */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 8, 20, 0.92);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.contact-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.contact-modal {
    background: var(--main-color);
    border: 1px solid transparent;
    border-radius: 16px;
    background-clip: padding-box;
    outline: 1px solid transparent;
    position: relative;
    padding: 40px;
    max-width: 660px;
    width: 100%;
    transform: scale(0.92) translateY(24px);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4ffaa4 transparent;
}
/* gradient border using pseudo-element */
.contact-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(45deg, #4ffaa4, #76eff8, #0496cf);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.contact-modal-overlay.active .contact-modal {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--third-color);
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    font-family: "Roboto", sans-serif;
    z-index: 1;
}
.modal-close:hover { color: var(--second-color); }
.modal-header { margin-bottom: 28px; }
/* gradient label — same technique as h5.results */
.modal-header span {
    display: inline-block;
    background: var(--eighth-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.modal-header h2 {
    font-size: 26px;
    color: var(--second-color);
    margin-bottom: 6px;
}
.modal-header p {
    color: var(--third-color);
    font-family: "Roboto", sans-serif;
    font-size: 14px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-family: "Roboto", sans-serif;
    font-size: 11px;
    font-weight: 700;
    background: var(--eighth-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(14, 21, 34, 0.7);
    border: 1px solid var(--third-color);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--second-color);
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #76eff8;
    box-shadow: 0 0 0 3px rgba(118, 239, 248, 0.12), 0 0 10px rgba(79, 250, 164, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(108, 117, 125, 0.55);
}
.form-group select option {
    background: var(--main-color);
    color: var(--second-color);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, #4ffaa4, #76eff8, #0496cf);
    color: var(--main-color);
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s, opacity 0.2s;
    margin-top: 6px;
}
.form-submit:hover {
    box-shadow: 0 0 14px rgba(79,250,164,0.5), 0 0 28px rgba(4,150,207,0.35);
    transform: translateY(-2px);
    opacity: 0.92;
}
.form-submit:active { transform: translateY(0); }
.form-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 20px 0 10px;
    font-family: "Roboto", sans-serif;
}
.form-success svg {
    background: var(--eighth-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.form-success h3 { font-size: 22px; color: var(--second-color); }
.form-success p { color: var(--third-color); font-size: 14px; }
@media (max-width: 600px) {
    .contact-modal { padding: 28px 18px; }
    .form-row { grid-template-columns: 1fr; }
    .modal-header h2 { font-size: 20px; }
}
