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

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

:root {
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: #fff;
    --main-color: #00eeff;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo { font-size: 2.5rem; color: var(--text-color); font-weight: 700; }
.logo span { color: var(--main-color); }

nav {
    position: relative;
    display: flex;
    align-items: center;
}

nav::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: var(--marker-left, 0);
    width: var(--marker-width, 0);
    height: .25rem;
    background: rgba(0, 238, 255, .95);
    border-radius: 1rem;
    transition: left .35s ease, width .35s ease;
    pointer-events: none;
}

nav a { font-size: 1.7rem; color: var(--text-color); margin-left: 4rem; transition: color .3s ease, transform .3s ease; }
nav a:hover {
    color: var(--main-color);
    transform: translateY(-1px);
}

nav a.active {
    color: var(--main-color);
}

/* Home Section */
.home { display: flex; align-items: center; justify-content: center; gap: 5rem; }
.home-content h3 { font-size: 3.2rem; font-weight: 700; }
.home-content h1 { font-size: 4.5rem; font-weight: 700; line-height: 1.3; color: var(--main-color); }
.home-content p { font-size: 1.6rem; margin: 2rem 0; }

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem; height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover { box-shadow: none; }

.home-img img {
    width: 20vw;
    min-width: 15rem;
    max-width: 25rem;
    border-radius: 1rem;
    box-shadow: 0 0 2rem var(--main-color);
    object-fit: cover;
}

/* About Section */
.about { display: flex; justify-content: center; align-items: center; gap: 4rem; background: var(--second-bg-color); }
.about-img img { width: 20vw; min-width: 15rem; max-width: 25rem; border-radius: 1rem; box-shadow: 0 0 2rem var(--main-color); object-fit: cover; }
.heading { text-align: center; font-size: 4.5rem; margin-bottom: 5rem; }
.heading span { color: var(--main-color); }
.about-content h2 { text-align: left; line-height: 1.2; }
.about-content h3 { font-size: 2.6rem; }
.about-content p { font-size: 1.6rem; margin: 2rem 0 3rem; }

.about-detail {
    display: none;
    min-height: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .6s ease, opacity .6s ease, transform .6s ease;
    transform: translateY(-20px);
    padding: 0;
    margin: 0;
}

.about-detail.show {
    display: block;
    opacity: 1;
    max-height: 2000px;
    transform: translateY(0);
    margin-top: 0;
    padding: 10rem 9% 2rem;
}

.about-detail h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-detail p {
    font-size: 1.7rem;
    line-height: 2.2;
    color: #ccc;
    margin-bottom: 1.6rem;
}

/* Services Section */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2rem;
    align-items: start;
}
.services-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}
.services-box:hover { border-color: var(--main-color); transform: scale(1.02); }
.services-box i { font-size: 7rem; color: var(--main-color); }
.services-box h3 { font-size: 2.6rem; }
.services-box p { font-size: 1.6rem; margin: 1rem 0 3rem; }

.service-detail {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: .1rem solid rgba(0,238,255,.2);
    color: #ccc;
    line-height: 2;
    opacity: 0;
    transition: opacity .4s ease;
}

.service-detail.show {
    display: block;
    opacity: 1;
}

.service-detail h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--main-color);
}

.service-detail p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Skills Section */
.skills { background: var(--second-bg-color); }
.skills-row { display: flex; flex-wrap: wrap; gap: 5rem; }
.skills-column { flex: 1 1 40rem; }
.title { font-size: 2.5rem; margin: 0 0 1.5rem; }

.progress { padding: 1rem 0; }
.progress h3 { font-size: 1.7rem; display: flex; justify-content: space-between; }
.bar { height: 1.5rem; background: #333; border-radius: .5rem; margin-top: .5rem; position: relative; }
.bar span { display: block; height: 100%; background: var(--main-color); border-radius: .5rem; box-shadow: 0 0 1rem var(--main-color); }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; text-align: center; }
.circle-skill { 
    border: 4px solid var(--main-color); 
    width: 100px; height: 100px; 
    border-radius: 50%; 
    display: flex; flex-direction: column; 
    justify-content: center; margin: auto;
    box-shadow: 0 0 1rem var(--main-color);
}
.circle-skill span { font-size: 2rem; font-weight: 700; }

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2rem;
    align-items: stretch;
}
.project-card {
    background: rgba(10, 35, 90, 0.92);
    border: 1px solid rgba(75, 150, 255, 0.5);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(7, 35, 95, 0.45);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(109, 185, 255, 0.8);
    background: rgba(14, 50, 120, 0.98);
}
.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.05);
}
.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}
.project-type {
    display: inline-flex;
    color: #b8e1ff;
    background: rgba(74, 138, 255, 0.18);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
}
.project-content h3 {
    margin: 0;
    font-size: clamp(2rem, 2.4vw, 2.6rem);
    color: #e5f4ff;
}
.project-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
    flex: 1;
}
.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.project-detail {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(22, 55, 110, 0.9);
    border: 1px solid rgba(93, 162, 255, 0.22);
    color: rgba(235, 245, 255, 0.9);
    line-height: 1.8;
}
.project-detail.show {
    display: block;
}
.project-detail h4 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: #fff;
}
.text-link {
    color: #93cfff;
    font-weight: 700;
    text-decoration: none;
}
.text-link:hover {
    text-decoration: underline;
}
.project-card .btn {
    padding: 1rem 1.75rem;
    background: rgba(70, 140, 255, 0.95);
    border-color: rgba(70, 140, 255, 0.95);
    color: #fff;
}
.project-card .btn:hover {
    background: rgba(105, 180, 255, 0.95);
    border-color: rgba(105, 180, 255, 0.95);
}

@media (max-width: 960px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact form { max-width: 70rem; margin: 1rem auto; text-align: center; margin-bottom: 3rem; }
.input-box { display: flex; justify-content: space-between; flex-wrap: wrap; }
.input-box input, .contact form textarea {
    width: 100%; padding: 1.5rem;
    font-size: 1.6rem; color: var(--text-color);
    background: var(--second-bg-color);
    border: .2rem solid rgba(0, 238, 255, .5);
    border-radius: 1rem; margin: .7rem 0;
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.input-box input:focus, .contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 1.2rem rgba(0, 238, 255, .35);
    background: rgba(0, 238, 255, .04);
}
.input-box input { width: 49%; }
.contact form textarea { resize: none; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.home {
    animation: fadeInUp 1s ease-out;
}

.home-content h3 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.home-content h1 {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.home-content p {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.social-media {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.home-btns {
    animation: fadeInUp 1s ease-out 1s both;
}


.about-content h2 {
    animation: fadeInLeft 1s ease-out 1s both;
}

.about-content h3 {
    animation: fadeInLeft 1s ease-out 1.2s both;
}

.about-content p {
    animation: fadeInLeft 1s ease-out 1.4s both;
}

.about-content .btn {
    animation: fadeInUp 1s ease-out 1.6s both;
}


.services {
    animation: fadeInUp 1s ease-out 1s both;
}

.services-container {
    animation: fadeInLeft 1.2s ease-out 1.2s both;
}

.skills {
    animation: fadeInUp 1s ease-out 1.4s both;
}

.portfolio {
    animation: fadeInUp 1s ease-out 1.6s both;
}

.portfolio-container {
    animation: fadeInRight 1.2s ease-out 1.8s both;
}

.heading {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.services-box {
    animation: fadeInUp 1s ease-out 1.4s both;
}

.skills-row {
    animation: fadeInLeft 1.2s ease-out 1.6s both;
}

.portfolio-box {
    animation: fadeInUp 1s ease-out 2s both;
}

.contact form textarea {
    animation: fadeInRight 1.2s ease-out 2.4s both;
}

.input-box input {
    animation: fadeInUp 1s ease-out 2.6s both;
}

.contact form .btn {
    animation: fadeInUp 1s ease-out 2.8s both;
}


/* Skills Animations */
@keyframes progress {
    from {
        width: 0;
    }
    to {
        width: var(--progress-width);
    }
}

@keyframes circlePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 1rem var(--main-color);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 2rem var(--main-color);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 1rem var(--main-color);
    }
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.bar span {
    width: 0;
    transition: width 2s ease-out;
}




