@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;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #1e1e1e;
    --text-color: #fdfdfd;
    --main-color: #00ffcc;
    --white-color: #fff;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Header/Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 7%;
    background: rgba(30, 30, 30, 0.98);
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .5s;
}

.header.sticky {
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem var(--shadow-color);
}

.logo {
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 600;
    margin-right: auto;
    letter-spacing: 2px;
}

.navbar a {
    position: relative;
    font-size: 1.7rem;
    color: var(--white-color);
    font-weight: 500;
    margin-right: 3.5rem;
    transition: color 0.3s;
}

.header.sticky .navbar a {
    color: var(--text-color);
}
.header.sticky .navbar a.active {
    color: var(--main-color);
}

.navbar a.active::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: .2rem;
    background: var(--main-color);
}

.header.sticky .navbar a::before {
    background: var(--main-color);
    opacity: .7;
}

#darkMode-icon, #menu-icon {
    font-size: 2.4rem;
    color: var(--white-color);
    cursor: pointer;
    margin-left: 1.5rem;
    display: none;
}

/* Section common */
section {
    width: 100%;
    min-height: 100vh;
    padding: 8rem 0 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* HOME SECTION */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding-top: 8rem;
}
.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(30,30,30,0.8);
    border-radius: 18px;
    box-shadow: 0 4px 28px 0 rgba(0,0,0,0.15);
    padding: 2.5rem 2.5rem 2.5rem 2.5rem;
    z-index: 2;
    max-width: 520px;
    width: 100%;
}
.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.home-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--main-color);
}
.home-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: .6rem;
}
.home-content p {
    font-size: 1.35rem;
    color: var(--white-color);
    margin-bottom: 1.2rem;
    text-align: center;
}
.profession-container {
    width: 100%;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.profession-box {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.profession {
    background: #222;
    border-radius: 8px;
    color: var(--main-color);
    padding: 6px 18px;
    font-size: 1.15rem;
    font-weight: 500;
    margin: 3px 2px;
    box-shadow: 0 2px 8px rgba(0,255,204,0.04);
}

/* ABOUT SECTION */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    min-height: 100vh;
}
.about-img img {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 38px;
    box-shadow: 0 3px 18px 0 rgba(0,0,0,0.18);
}
.about-content {
    max-width: 600px;
    background: rgba(30,30,30,0.7);
    border-radius: 16px;
    box-shadow: 0 4px 28px 0 rgba(0,0,0,0.08);
    padding: 2.5rem 2.5rem;
    text-align: left;
}
.heading {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.life-philosophy {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background-color: #1a1a1a;
    border-left: 4px solid var(--main-color);
    border-radius: 10px;
    color: #f1f1f1;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}
.philosophy-title {
    font-size: 1.2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.philosophy-list {
    list-style: square inside;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.quote-box {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: var(--main-color);
    text-align: center;
    font-family: 'Courier New', monospace;
}
.animated-text {
    border-right: 2px solid var(--main-color);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    font-weight: bold;
    color: var(--main-color);
    animation: blink 0.7s step-end infinite;
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* SERVICES SECTION */
.services {
    min-height: auto;
    padding-bottom: 10rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.services .heading {
    margin-bottom: 5rem;
}
.services .services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}
.services-container .services-box {
    flex: 1 1 30rem;
    background: #232323;
    padding: 3rem 2rem 3.5rem;
    border-radius: 1.6rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    text-align: center;
    border-top: .4rem solid var(--main-color);
    border-bottom: .4rem solid var(--main-color);
    transition: .4s ease;
    min-width: 230px;
    max-width: 350px;
}
.services-container .services-box:hover {
    box-shadow: 0 .1rem 2rem var(--shadow-color);
    transform: scale(1.03);
}
.services-box i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}
.services-box h3 {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: .6rem;
}
.services-box p {
    font-size: 1.1rem;
    margin: 1rem 0 2rem;
}

/* PROJECTS SECTION */
.section-title {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 24px;
    letter-spacing: 1.5px;
}
.projects-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
    width: 100%;
}
.project-card {
    width: 300px;
    background-color: #242424;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    text-align: center;
    margin-bottom: 22px;
}
.project-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* TESTIMONIALS */
.testimonial-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 5rem 1rem;
    background: transparent;
}
.testimonial-container .heading {
    margin-bottom: 2rem;
}
.testimonial-container .testimonial-wrapper {
    position: relative;
    max-width: 90rem;
    width: 100%;
    padding: 5rem 0;
}
.testimonial-wrapper .testimonial-box {
    padding: 1rem;
    border-radius: 2rem;
    overflow: hidden;
}
.testimonial-content .testimonial-slide {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: #1a1a1a;
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    padding: 3rem 5rem;
    border-top: .7rem solid var(--main-color);
    border-bottom: .7rem solid var(--main-color);
}
.testimonial-slide img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: .3rem solid #292929;
    outline: .4rem solid var(--main-color);
}
.testimonial-slide h3 {
    font-size: 1.6rem;
    margin: 1.2rem 0 .5rem;
}
.testimonial-slide p {
    font-size: 1.2rem;
    text-align: center;
}
.testimonial-box .swiper-button-next,
.testimonial-box .swiper-button-prev {
    color: var(--main-color);
}
.testimonial-box .swiper-pagination-bullet {
    background: rgba(0, 0, 0, .8);
}
.testimonial-box .swiper-pagination-bullet-active {
    background: var(--main-color);
}

/* CONNECT/CONTACT SECTION */
.connect {
    min-height: auto;
    padding: 6rem 0 3rem 0;
    text-align: center;
    background: rgba(30,30,30,0.95);
    border-radius: 1.2rem;
    margin: 0 auto 4rem auto;
    box-shadow: 0 2px 18px 0 rgba(0,0,0,0.07);
    max-width: 480px;
}
.connect .heading {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 1.6rem;
    background: none;
    box-shadow: none;
    padding: 0;
}
.connect .heading span {
    color: var(--main-color);
}
.connect-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
}
.connect-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem 0;
    font-size: 1.25rem;
    text-align: left;
}
.connect-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.connect-list a {
    color: var(--main-color);
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.connect-list a:hover {
    color: #fff;
    text-decoration: underline;
}
.connect-list i {
    font-size: 1.5rem;
    color: var(--main-color);
    margin-right: 0.2rem;
}
.coding-profiles {
    background: #232323;
    border-radius: 0.7rem;
    box-shadow: 0 1px 8px 0 rgba(0,0,0,0.06);
    padding: 1.3rem 1.3rem 1.1rem 1.3rem;
    display: inline-block;
    min-width: 180px;
}
.coding-profiles h3 {
    margin-bottom: 0.7rem;
    color: var(--main-color);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;
}
.coding-profiles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.coding-profiles li {
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.coding-profiles a {
    color: #bff;
    text-decoration: none;
    font-size: 1.09rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.18s;
}
.coding-profiles a:hover {
    color: var(--main-color);
    text-decoration: underline;
}
.coding-profiles img {
    vertical-align: middle;
    margin-right: 5px;
    height: 18px;
    border-radius: 3px;
    background: #fff;
    border: 1px solid #f3f3f3;
}

/* FOOTER */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 7%;
    background: var(--main-color);
}
.footer-text p {
    font-size: 1.1rem;
    color: var(--white-color);
}
.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--white-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}
.footer-iconTop a:hover {
    outline-color: var(--white-color);
}
.footer-iconTop a i {
    font-size: 1.4rem;
    color: #333;
}

/* IMAGE STYLING */
img {
    border-radius: 20px;
}

/* BREAKPOINTS */
@media (max-width: 1200px) {
    html { font-size: 55%; }
    .about-img img { width: 180px; height: 180px; }
}
@media (max-width: 991px) {
    .about { flex-direction: column; gap: 18px; }
    .about-img img { margin-right: 0; margin-bottom: 18px; }
    .home-content { max-width: 95vw; }
    .footer { padding: 2rem 3%; }
}
@media (max-width: 768px) {
    #menu-icon { display: block; }
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        display: none;
        flex-direction: column;
    }
    .navbar.active { display: flex; }
    .navbar a { display: block; font-size: 2rem; margin: 2rem 0; color: var(--text-color); }
    .home, .about { flex-direction: column; padding-top: 6.5rem; }
    .about-img img { width: 120px; height: 120px; }
    .services .services-container { flex-direction: column; gap: 1.5rem; }
    .projects-container { flex-direction: column; gap: 1.5rem; }
    .footer { flex-direction: column; gap: 1.2rem; }
}
@media (max-width: 500px) {
    .home-content, .about-content { padding: 1.3rem; }
    .about-img img { width: 90px; height: 90px; }
    .footer { padding: 1rem 2vw; }
}
@media (max-width: 375px) {
    html { font-size: 46%; }
    .footer-text p { text-align: center; }
}