:root {
    --text-color: #10e4eb;
    --link-color: #ededed;
    --background-color: #081b29;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    max-width: 1400px;
    margin: 0 auto;
}

a {
    color: var(--link-color);
    text-decoration: none;
}
h2{
    color:var(--text-color)
}

h3{
    color:var(--text-color);
}
p {
    color: var (--link-color)
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 80px;
}

nav .left a {
    color: var(--text-color);
    font-size: 40px;
    font-weight: 600;
}

nav .right a {
    color: var(--text-color);
    margin: 0 10px;
    font-size: 19px;
}

nav .right a:last-child{
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

nav .right a span {
    margin-left: 5px;
}

/*--SECTION 1 - HERO SECTION*/
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 150px;
    gap: 40px;
}

.hero-section .text {
    flex: 5;
}

.hero-section .text h2{
    font-size: 80px;
    font-weight: 600;
    color: var(--link-color)
}

.hero-section .text h3{
    font-size: 50px;
    font-weight: 600;
}

.hero-section .text .links {
    margin-top: 25px;
}

.hero-section .text .links a {
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid var(--text-color);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: 1s;
}

.hero-section .text .links a:hover{
    color: var(--text-color);
    border: 2px solid var(--text-color)
}

.hero-section .headshot {
    flex: 2;
}

.hero-section .headshot img{
    border-radius: 100%;
    width: 300;
}
.hero-section p {
    color: var(--link-color);
}
.animated-logo {
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SECTION 2 - ABOUT ME SECTION */
.about-me-section {
    padding: 50px;
    background-color: var(--background-color);
    color: var(--link-color);
    margin-bottom: 150px;
}

.about-me-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-content h3 {
    font-size: 25px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.about-content p, .about-content ul {
    font-size: 18px;
    line-height: 1.6;
}

.about-content ul {
    list-style-type: disc;
    margin-left: 20px;
}

.download-cv-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--text-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.download-cv-button:hover {
    background-color: #0bb5c3;
}

.about-content .interests {
    margin-top: 20px;
}

.about-content .interests h3 {
    font-size: 25px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.about-content .interests p {
    font-size: 18px;
    line-height: 1.6;
    color: var (--link-color);
}

/* About Me Section Cards */
.about-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.card {
    background-color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 400px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--background-color)
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--background-color);
}

.card p, .card ul {
    font-size: 1rem;
}

.card a.download-cv-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: var(--background-color);
    color: var(--link-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.card a.download-cv-button:hover {
    background-color: #0056b3;
}

/* Hover Animation */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}


/*SECTION 3: PROGRAMMING LANGUAGES*/
.languages-section {
    padding: 0 50px;
    margin-bottom: 200px;
    /* make background match the rest of the site for a seamless look */
    background-color: var(--background-color);
}

.languages-section h2 {
    text-align: center;
    font-size: 35px;
}

/* New tech list layout */
.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 24px 0;
    margin: 0;
    align-items: start;
}

.tech-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

.tech-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.tech-item:focus-within, .tech-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.tech-figure {
    display:flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tech-figure img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display:block;
}

.tech-label {
    font-size: 16px;
    color: var(--link-color);
    font-weight: 600;
}

/* small badge for years / last used */
.tech-badge {
    background: linear-gradient(90deg, rgba(16,228,235,0.12), rgba(16,228,235,0.06));
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}

/* Skill meter */
.skill-meter {
    width: 100%;
    background: rgba(255,255,255,0.04);
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}
.skill-fill {
    height: 100%;
    width: 0%; /* animated by JS */
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    border-radius: 999px;
    transition: width 800ms cubic-bezier(.2,.8,.2,1);
}

/* Modal */
.tech-modal[aria-hidden="true"] { display: none; }
.tech-modal { position: fixed; inset: 0; z-index: 1200; }
.tech-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.tech-modal-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(720px, 92vw);
    background: #07121a;
    border-radius: 12px;
    padding: 20px;
    color: var(--link-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.tech-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    background: transparent;
    border: none;
    color: var(--link-color);
    font-size: 26px;
    cursor: pointer;
}
.tech-modal-projects { margin-top: 12px; display: grid; gap: 10px; }
.tech-modal-projects a { display:block; color: var(--text-color); text-decoration: none; }

/* reveal animation helper */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 420ms ease, transform 420ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media(max-width: 860px){
    .languages-section { padding: 0 20px; }
    .tech-figure img { width: 56px; height: 56px; }
}

/* Larger layout tweaks for big screens */
@media (min-width: 1200px) {
    .tech-list {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
    }
    .tech-item {
        padding: 18px;
    }
    .tech-figure img {
        width: 88px;
        height: 88px;
    }
    .tech-label { font-size: 18px; }
    .skill-meter { height: 10px; }
}

@media (min-width: 1400px) {
    .tech-list {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 28px;
    }
    .tech-figure img {
        width: 96px;
        height: 96px;
    }
    .tech-label { font-size: 19px; }
}


/* SECTION 3 - PROJECTS SECTION */
.projects-section {
  padding: 50px 20px;
  background-color: var(--background-color);
  text-align: center;
  position: relative;
}

.projects-section h2 {
  font-size: 35px;
  margin-bottom: 30px;
}

/* Carousel container */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
    /* Allow vertical page scrolling while enabling horizontal gesture detection */
    touch-action: pan-y;
}

/* Each slide */
.project-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* prepare for fade/slide transition */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 360ms ease, transform 360ms ease;
}

.project-slide.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Project screenshot */
.project-image {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* Project details */
.project-details {
  max-width: 700px;
  text-align: left;
}

.project-details h3 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 10px;
}

.project-details p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 15px;
}

/* Tags */
.tags {
  margin-bottom: 15px;
}

.tags span {
  display: inline-block;
  background: var(--text-color);
  color: var(--background-color);
  font-size: 0.9rem;
  padding: 5px 12px;
  border-radius: 20px;
  margin-right: 8px;
}

/* Live demo link */
.project-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--text-color);
  color: var(--background-color);
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
}

.project-link:hover {
  background: #0056b3;
  color: #fff;
}

/* Carousel controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-color);
  color: var(--background-color);
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: background 0.3s ease;
}

.carousel-control:hover {
    background: #444;
    transform: scale(1.06);
}

/* Visually hidden helper for screen readers */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

/* Pagination dots */
.carousel-dots {
    display: none; /* hidden on large screens, shown on small via media query */
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: none;
    padding: 0;
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--text-color);
}

/* On small screens hide the large arrow controls and show dots for navigation */
@media (max-width: 860px) {
    .carousel-control {
        display: none;
    }
    .carousel-dots {
        display: flex;
    }
}


/* SECTION 4 SERVICES SECTION */
.services-section {
    padding: 50px 20px;
    background-color: var(--background-color);
    text-align: center;
    margin-bottom: 150px;
}

.services-section h2 {
    font-size: 35px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.services-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Spread cards evenly */
    gap: 30px; /* Increase spacing between cards */
}

.service-card {
    background: var(--text-color);
    border-radius: 10px;
    padding: 30px; /* Increase padding for more content space */
    width: calc(33% - 40px); /* Make cards occupy one-third of the row with spacing */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.service-card i {
    color: var(--background-color);
    margin-bottom: 20px;
    font-size: 3rem; /* Increase icon size */
}

.service-card h3 {
    font-size: 1.8rem; /* Increase heading size */
    margin-bottom: 15px;
    color: var(--background-color);
}

.service-card p {
    font-size: 1.2rem; /* Increase text size */
    color: var(--background-color);
}

/*SECTION 5: CONTACT SECTION*/
.contact-section {
    padding: 0 50px;
    margin-bottom: 150px;
}

.contact-section h2 {
    font-size: 35px;
}

.contact-section .group {
    display: flex;
    gap: 50px;
}

.contact-section .group .text {
    flex: 3;
    margin-top: 20px;
}

.contact-section .group form {
    flex: 3;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
}


.contact-section .group .text {
    flex: 3;
    margin-top: 20px;
    color: var(--link-color);
}

.contact-section .group label{
    color: var(--text-color);
}

.contact-section .group form input,.contact-section .group select, .contact-section .group form textarea {
    font-family: "Poppins", sans-serif;
    border: 2px solid var(--text-color);
    border-radius: 8px;
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 10px;
    margin-bottom: 15px;
    outline: none;
    resize: none;
}

.contact-section .group form button {
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    color: var(--background-color);
    background-color: var(--text-color);
    border: none;
    height: 50px;
    cursor: pointer;
    transition: .1s;
    border-radius: 8px;
}

.contact-section .group form button:hover{
    filter: brightness(.9);
}

#typing-text::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s steps(2, start) infinite;
}



@keyframes blink {
    50% {
        opacity: 0;
    }
}

footer {
    text-align: center;
    padding: 10px;
    background-color: var(--background-color);
    font-size: 20px;
    color: var(--text-color);
}



/* Responsive Design for Smaller Screens */
@media (max-width: 1024px) {
    .service-card {
        width: calc(50% - 30px); /* Make cards occupy half the row on medium screens */
    }
}

@media (max-width: 768px) {
    .service-card {
        width: 100%; /* Make cards occupy full width on small screens */
    }
}

@media(max-width: 850px){
    /*SECTION 1: HERO SECTION*/
    .hero-section .text h2 {
        font-size: 35px;
    }
}


@media(max-width: 860px) {
    /*SECTION 1: HERO SECTION*/
    .hero-section {
        flex-direction: column-reverse;
    }
    .hero-section .headshot img {
        width: 200px;
    }
    .hero-section .text h2 {
        font-size: 40px;
    }
    .hero-section .text h3 {
        font-size: 25px;
    }


    /*SECTION 3: PROGRAMMING LANGUAGES*/
    .languages-section {
        padding: 0 20px;
    }

    .languages-section .cells .cell span {
        font-size: 16px;
    }

    /*SECTION 6: CONTACT SECTION*/
    .contact-section .group {
        flex-direction: column;
    }

}

@media(max-width: 600px) {
    /*NAVBAR */
    nav {
        padding: 0 20px;
    }

    nav .right a {
        font-size: 22px ;
    }

    nav .right a:last-child{
        color: var(--text-color);
        background-color: transparent;
        padding: 0;
    }
    nav .right a span {
        display: none;
    }

    /*SECTION 1: HERO SECTION*/
    .hero-section .text h2 {
        font-size: 30px;
    }
    .hero-section .text h3 {
        font-size: 20px;
    }

    /*SECTION 6: CONTACT SECTION*/
    .contact-section{
        padding: 0 20px;
    }
}

