
:root {
    --primary-color: #da042a;
    --primary-color-dark: #c00427;
    --secondary-color: #111010;
    --secondary-color-dark: #0a0a0a;
    --text-light: rgb(180, 173, 174);
    --extra-light: #f8f7fd;
    --white: #ffffff;
    --max-width: 1200px;
    --headings: 'Montserrat', sans-serif;
    --body: 'Poppins', sans-serif;
}

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

html, body {
    scroll-behavior: smooth !important;
    overflow-x: hidden;
}

body {
    font-family: var(--body);
    background-color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--extra-light);
}

section {
    padding: 100px 16% 90px;
    box-shadow: 0px 0px 1px 2px var(--primary-color);
}

nav {
    background-color: var(--secondary-color);
    color: var(--extra-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10%;
    box-shadow: 0px 0px 2px 3px var(--primary-color);
    z-index: 10;
}

nav .logo {
    max-width: 150px;
    cursor: pointer;
}

nav ul li {
    list-style: none;
    display: inline-block;
    margin: 10px 20px;
    font-weight: 500;
    cursor: pointer;
}

nav ul li:hover a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: .5rem;
}

.nav-btn {
    background-color: var(--primary-color-dark);
    color: var(--extra-light);
    font-size: 1rem;
    padding: .75rem;
    border: 0;
    outline: 0;
    border-radius: 10px;
    box-shadow: 2px 2px 2px var(--extra-light);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.nav-btn:hover, .nav-btn:focus {
    background-color: var(--extra-light);
    color: var(--primary-color-dark);
    box-shadow: 3px 3px 2px var(--primary-color-dark);
    transform: translateY(1px);
}

/* hero */
.hero {
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(16, 15, 15, 0.747), rgba(0, 0, 0, 0.766)), url("../images/bg.webp");
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    padding: 0 10%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow-x: hidden;
    box-shadow: 0px 0px 1px 3px var(--primary-color);
}

.hero h1 {
    margin-top: 100px;
    color: var(--extra-light);
    /* was width:600px; -> that was causing cutoffs */
    max-width: 20ch;               /* ~20 characters per line */
    font-size: 5rem;
    font-family: var(--headings);
    line-height: 1.1;
}

.hero h2,
.hero .sub {
  color: var(--extra-light);
  font-size: 3rem;
  margin-top: 10px;
  max-width: 20ch;
}


.hero p {
    /* max-width: 360px; */
    font-weight: 500;
    color: var(--extra-light);
    font-size: 1.5rem;
    text-transform: capitalize;
}

.type-wrap { display: inline-block; }
.caret { display:inline-block; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.btn-container {
    display: flex;
    gap: .5rem;
    margin-top: 20px;
}


button {
    border: 0;
    outline: 0;
    display: flex;
    align-items: center;
    font-size: 18px;
    margin-right: 20px;
    cursor: pointer;
}

.btn-dark {
    background-color: var(--primary-color-dark);
    color: var(--extra-light);
    padding: 10px 10px 10px 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 2px var(--extra-light);
    font-size: .9rem;
    transition: transform 0.15s ease;
}
.btn-dark:hover {
    background-color: var(--extra-light);
    color: var(--primary-color-dark);
    box-shadow: 3px 3px 2px var(--primary-color-dark);
    border: 2px solid transparent;
    transform: translateY(1px);
}

.btn-dark img {
    width: 40px;
    background-color: var(--extra-light);
    border-radius: 50%;
    padding: 10px;
    margin-left: 10px;
}

.btn-dark:hover img {
    background-color: var(--primary-color);
}
.btn2 {
    background-color: transparent;
    box-shadow: 2px 2px 2px var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: transform 0.15s ease;
}
.btn2:hover {
    border: none;
    transform: translateY(1px);
}

/* Hero Animation */
.hero h1 span {
    background: linear-gradient(#da042a, #da042a);
    background-repeat: no-repeat;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 0%;
}  

.hero h1 span:first-child {
    animation: textcolor1 5s linear infinite alternate;
}

@keyframes textcolor1 {
    0% {
        background-size: 0%;
    }
    40% {
        background-size: 100%;
    }
    100% {
        background-size: 100%;
    }
}

.hero h1 span:last-child {
    animation: textcolor2 5s linear infinite alternate;
}

@keyframes textcolor2 {
    0% {
        background-size: 0%;
    }
    40% {
        background-size: 0%;
    }
    100% {
        background-size: 100%;
    }
}

/* about */
.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 40px; /* More spacing between image and text */
}

.about-text h4 {
    margin: 10px 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
    font-family: var(--body);
}

.about-text h2 {
    font-size: 2.3rem;
    color: var(--white);
    font-family: var(--headings);
}

.about-text p {
    color: var(--extra-light);
    font-size: 1rem;
    line-height: 30px;
    margin-bottom: 2rem;
}

.about-img img {
    height: auto;
    width: 100%;
    max-width: 400px;
    border-radius: 100%;
    display: block;
    margin: 0 auto;
}



/* services */

.main-text {
    text-align: center;
}

.main-text h2 {
    font-size: 2.5rem;
    font-family: var(--headings);
    color: var(--white);
    margin-bottom: 10px;
}

.main-text h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.services-content {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(350px, auto)); */
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-top: 5rem;
}

.box {
    color: var(--white);
    padding: 20px 10px 30px ;
    height: auto;
    /* background: linear-gradient(#c0042697, #d32b448f); */
    background-color: var(--secondary-color-dark);
    border-top: 5px solid transparent;
    transition: all .40s ease;
    box-shadow: 5px 5px 6px var(--primary-color-dark);
    /* cursor: pointer; */
}

.box:hover {
    /* transform: scale(1.01) translate(-5px); */
    /* border-top: 5px solid var(--extra-light); */
    box-shadow: 5px 5px 6px var(--extra-light);
}

.box img {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    box-shadow: 2px 2px 5px var(--white);
}

.box h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0;
    transition: all .40s ease;
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: .5rem;
}

.box:hover h3 {
    color: var(--primary-color);
}

.box p {
    color: var(--extra-light);
    font-size: .9rem;
    line-height: 20px;
}

/* Projects */

.projects-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.row img {
    height: auto;
    width: 100%;
    text-align: center;
    border-bottom: 2px solid var(--white);
    border-top: 2px solid var(--white);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.row {
    padding: 10px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-radius: 0.5rem;
    transition: all .40s ease;
    box-shadow: 3px 3px 6px var(--primary-color);
}

/* .main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
} */

.row h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.row h6 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

.row-icon i {
    font-size: 21px;
}

.row:hover {
    background-color: var(--secondary-color);
    /* border-top: 5px solid var(--primary-color);
    transform: scale(1.01) translateY(-5px);
    transition: all .40s ease; */
}

.row:hover h3 {
    color: var(--primary-color);
}

/* .row:hover a {
    color: var(--text-light);
}

.row:hover p {
    color: var(--text-light);
} */
.row .btn {
    padding: 5px 10px;
    float: right;
    /* margin-top: 20px; */
    font-size: .9rem;font-weight: 500;
    background-color: var(--primary-color);
    color: var(--extra-light);
    border: 1px solid var(--primary-color);
    transition: all .40s ease;
    box-shadow: 2px 2px 2px 2px var(--secondary-color);
    cursor: pointer;
}

.row:hover .btn {
    box-shadow: 2px 2px 4px var(--text-light);
    color: var(--white);
}

.btn:hover {
    transform: scale(1.01) translateY(-5px);
    background-color: transparent;
}

.row .btn1{
    float: left;
}

/* Contact */

.contact, .request{
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: 1fr;
    align-items: center;
    /* gap: 3rem; */
    margin-top: 100px;
}

.contact-text h4,.request-text h4{margin:15px 0;color:var(--primary-color);font-size:1.25rem;font-weight:600}
.contact-text h2,.request-text h2{font-size:2.5rem;color:var(--white);font-family:var(--headings)}
.contact-text p,.request-text p{color:var(--extra-light);font-size:1rem;line-height:30px;margin-bottom:2rem}


.contact-list {
    margin-bottom: 3rem;
}

.contact-list li {
    margin-bottom: 10px;
    display: block;
}

.contact-list li a {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    transition: all .40s ease;
}

.contact-list li a:hover {
    transform: scale(1.01) translateY(-5px);
    color: var(--extra-light);
}

.contact-icons i {
    height: 40px;
    width: 40px;
    background-color: var(--text-light);
    border-radius: 0.5rem;
    color: var(--primary-color-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-right: 10px;
    transition: all .40s ease;
}

.contact-icons i:hover {
    transform: scale(1.01) translateY(-5px);
    color: var(--white);
    background-color: var(--primary-color);
}

.contact-form form,
.request-form form{position:relative;padding-top:5%}


.contact-form form input:focus,
.request-form form input:focus{background-color:var(--primary-color);color:var(--extra-light)}

.contact-form form input,
.contact-form form textarea,
.request-form form input,
.request-form form textarea{
  border:none;outline:none;width:100%;padding:18px;background-color:var(--text-light);
  color:var(--secondary-color);font-size:1rem;font-weight:600;margin-bottom:.5rem;
  border-radius:.5rem;border-bottom:2px solid var(--primary-color)
}

.contact-form form input:hover,
.contact-form form textarea:hover,
.request-form form input:hover,
.request-form form textarea:hover{
  transform:scale(1.01) translate(-5px);border-top:2px solid var(--primary-color);
  background-color:var(--primary-color-dark);color:var(--white)
}

.contact-form form textarea,
.request-form form textarea{resize:none;height:150px}

.contact-form form ::placeholder,
.request-form form ::placeholder{font-size:.9rem;letter-spacing:1px;color:var(--secondary-color-dark)}

.contact-form form .send,
.request-form form .send{
  display:inline-block;font-size:17px;font-weight:500;background-color:var(--primary-color);
  color:var(--white);box-shadow:3px 3px 3px var(--text-light);transition:all .40s ease;cursor:pointer
}
.contact-form form .send:hover,
.request-form form .send:hover{
  background-color:var(--secondary-color);color:var(--primary-color-dark);
  box-shadow:3px 3px 3px var(--primary-color);border-top:0
}


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

/* ===== Reviews (The Coding Phoenix) ===== */
.reviews {
  background: var(--secondary-color);
  color: var(--white);
}
.reviews__container {
  max-width: var(--max-width);
  margin: 0 auto;
  /* padding: 4rem 1rem; */
}
.reviews__heading {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-family: var(--headings);
}
.reviews__sub {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 2rem;
}
.reviews__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

/* Card base */
.review-card {
  background: var(--secondary-color-dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

/* Optional subtle screenshot background (set with --thumb on the element) */
.review-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--thumb, none); /* e.g., url('/img/project.jpg') */
  background-size: cover;
  background-position: center;
  opacity: 0.22;               /* subtle by default */
  filter: blur(2px) brightness(0.6);
  transform: scale(1.03);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.review-card--link:hover::before {
  opacity: 0.3;
  transform: scale(1.06);
}

/* Make whole card clickable + micro-interactions */
.review-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.review-card--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.15);
}
.review-card--link:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

/* External link icon */
.review-card--link::after {
  content: "↗";
  font-size: 0.85rem;
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.review-card--link:hover::after {
  opacity: 0.8;
  transform: translateY(0);
}

/* Stars */
.review-card__rating {
  position: relative;
  z-index: 1; /* above background */
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.review-card .star {
  width: 1.1rem; height: 1.1rem;
  fill: var(--primary-color);
}

/* Text */
.review-card__text {
  position: relative; z-index: 1;
  color: var(--extra-light);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35); /* legibility over thumb */
}
.review-card__author {
  position: relative; z-index: 1;
  font-weight: 600;
}

/* ===== CTA (The Coding Phoenix) ===== */
.cta {
   background-image: linear-gradient(rgba(49, 10, 10, 0.815), rgba(10, 10, 10, 0.801)), url("../images/bg2.webp");
    background-size: cover;
    background-position: center;;
  color: var(--white);
}
.cta__container {
  max-width: var(--max-width);
  margin: 0 auto;
  /* padding: 3rem 1rem; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta__text { max-width: 720px; }
.cta__eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--extra-light);
  opacity: 0.9;
  margin-bottom: 0.25rem;
}
.cta__title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-family: var(--headings);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.cta__desc {
  color: var(--extra-light);
  margin-bottom: 1rem;
}
.cta__checks {
  display: grid;
  gap: 0.4rem;
  margin: 0.75rem 0 1.25rem;
}
.cta__check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta__check span {
    color: var(--extra-light);
}
.cta__check svg { width: 1rem; height: 1rem; fill: var(--primary-color-dark); opacity: 0.9; }

.cta__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  font-weight: 500;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--extra-light);
  /* box-shadow: 2px 2px 2px var(--secondary-color-dark); */
}
/* .btn--ghost:hover {
  background: var(--primary-color-dark);
  box-shadow: 0 8px 20px var(--extra-light);
  color: var(--extra-light);
} */
/* Footer */
footer span .brand {
    color: var(--primary-color);
}
footer span {
    color: #fff;
    font-size: .7rem;
}
footer i {
    font-size: 1rem;
    margin-right: 5px;
}
footer i:hover {
    color: var(--primary-color);
}