@import 'utilities.css';

:root {
    /* Defining primary and default colors */
    --primary: #1c1c22;
    --secondary: #00a86b;       
    --default: #be2326;
    --pure: #ffffff;
    --light: #f2f2f2;
    /* hero background variable */
    --hero-bg: #081026;
}

/* automatically prefer dark scheme */
@media (prefers-color-scheme: dark) {
  :root {
    --hero-bg: #041020;
  }
}

/* ── Dark mode ── class applied to <html> by JS toggle ──────────────────── */
.dark {
  --hero-bg: #041020;
  /* flip --primary so all var(--primary) text/borders become light */
  --primary: #f1f5f9;
  /* lighter pure for readable text */
  --pure: #f8fafc;
  --light: #e2e8f0;
}

/* Page-wide dark background & base text */
.dark body {
  background: #081026;
  color: #e2e8f0;
}

/* General sections – give every section a dark navy background */
.dark section {
  background-color: #0a1830;
  color: #e2e8f0;
}

/* Alternate section shade for visual rhythm */
.dark section.about,
.dark .my-works,
.dark section.services {
  background-color: #081026;
}

/* About section */
.dark section.about h1,
.dark section.about h3 {
  color: #f1f5f9;
}
.dark section.about p {
  color: #cbd5e1;
}

/* Services section */
.dark .grid h2 {
  color: #f1f5f9;
}
.dark .grid-content p,
.dark .grid-content span {
  color: #cbd5e1;
}
.dark .border-line {
  border-bottom-color: rgba(148, 163, 184, 0.25);
}
.dark .text-outline {
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.6);
}

/* Skills section */
.dark #skills {
  background-color: #0a1830;
}
.dark #skills h2 {
  color: #f1f5f9;
}
.dark .skill {
  background-color: #0f2548;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.dark .skill h3 {
  color: #f1f5f9;
}

/* My Works section */
.dark .my-works {
  background-color: #081026;
}
.dark .section-head {
  color: #f1f5f9;
}
.dark .section-subheading {
  color: #94a3b8;
}

/* Contact section */
.dark #contact {
  background-color: #0a1830;
}
.dark #contact h2 {
  color: var(--secondary);
}
.dark #contact-form {
  background-color: #0f2548;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.dark .form-group label {
  color: #e2e8f0;
}
.dark .form-group input,
.dark .form-group select,
.dark .form-group textarea {
  background-color: #0c1e38;
  border-color: rgba(148, 163, 184, 0.3);
  color: #f1f5f9;
}
.dark .form-group input::placeholder,
.dark .form-group textarea::placeholder {
  color: #64748b;
}
.dark .form-group input:focus,
.dark .form-group select:focus,
.dark .form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.2);
}
.dark .form-group select {
  background-color: #0c1e38;
  color: #f1f5f9;
}

/* Footer */
.dark footer {
  background-color: #041020;
  color: #cbd5e1;
}
/* ─────────────────────────────────────────────────────────────────────────── */
/* // <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 100 to 800

.jetbrains-mono-<uniquifier> {
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
} */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-font-smotthing: antialiased;
}
body {
    /* background: var(--primary); */
    font-family: 'JetBrains Mono', monospace;
    color: var(--light);
    height: 100vh;
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
}
/* Global Styles */
.container {
  max-width: 1152px;
  padding: 0 15px;
  margin: 0 auto;
}
header {
  background: var(--hero-bg);
  /* clip-path: polygon(0 0, 100% 0, 100% 90%, 95% 98%, 0 100%); */
  /* height: 800px; */
  height: auto;
  padding-bottom: 2rem;
  position: relative;
  z-index: 20;
}

section,
footer {
  position: relative;
  z-index: 10;
}
/* Navigation Styling */
header nav {
  padding: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1100;
}

header nav .logo {
  margin-right: 4rem;
  cursor: pointer;
}

.logo span {
  color: var(--secondary);
  border-radius: 50%;
  font-weight: 800;
}

/* Default link styling */
header nav .left a {
  color: var(--pure);
  text-decoration: none;
  margin-right: 2rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* On hover */
header nav .left a:hover {
  color: var(--secondary);
}

/* On active (when clicked) */
header nav .left a.active {
  position: relative;
  color: var(--secondary);
}

header nav .left a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80%;
  height: 2px;
  background-color: var(--secondary);
  transition: background-color 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 3rem 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero .left img {
  width: 350px;
  border-radius: 50%;
  border: .15rem solid var(--secondary);
  /* animation: border-animation 3s infinite; */
}
/*
@keyframes border-animation {
  0% { border-style: solid; }
  50% { border-style: dashed; }
  100% { border-style: solid; }
}
*/

/* Keyframes for border animation */
@keyframes border-animation {
  0% { border-style: solid; }
  50% { border-style: dashed; }
  100% { border-style: solid; }
}

.hero .right {
  color: var(--pure);
  text-align: left;
}

.hero .right h6 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

.hero .right p {
  line-height: 1.9;
  margin-bottom: 2rem;
}

.hero .right h1 {
  font-size: 4rem;
  font-weight: 100;
  line-height: 1.2;
  margin-bottom: .5rem;
}

/* Typewriter Effect */
.typewriter {
  display: inline-block;
  overflow: hidden;
  color: var(--secondary);
  border-right: 1px solid var(--pure);
  white-space: nowrap;
  animation: typing 3s steps(12, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--pure); }
}

/* Count Container */
.count-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 4.75rem;
  margin-bottom: 1.5rem;
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1rem;
  min-height: 90px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.count-number {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-right: 0;
  margin-bottom: 0.2rem;
  line-height: 1;
  font-weight: bold;
}

.count-label {
  font-size: 0.95rem;
  color: rgba(242, 242, 242, 0.9);
}

/* Utility Classes */
.display {
  display: flex;
  flex-wrap: wrap;
}

.items {
  align-items: center;
}

.space {
  justify-content: space-around;
}

.btn1 {
  font-family: 'poppins', sans-serif;
  padding: 0.4rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  outline: none;
  cursor: pointer;
  border-radius: 2.5rem;
  transition: all 0.5s ease;
}

.btn-primary1 {
  color: var(--pure);
  background: var(--secondary);
}

.btn-primary1:hover {
  background: transparent;
  border: 2px solid var(--secondary);
}

.hero .right .btns {
  font-family: 'poppins', sans-serif;
  padding: 0.4rem 1rem;
  font-size: .9rem;
  font-weight: 400;
  background-color: transparent;
  border: 2px solid var(--secondary);
  outline: none;
  cursor: pointer;
  border-radius: 2.5rem;
  transition: all .3s ease;
}

.hero .right .btn-secondary {
  color: var(--secondary);
}

.hero .right .btn-secondary:hover {
  color: var(--light);
  background-color: var(--secondary);
}

.hero .right .download {
  margin-left: 1rem;
  font-weight: 600;
}

.hero .right .svg-container {
  margin-left: 2.5rem;
  font-weight: 600;
}

.hero .right .svg-container svg {
  margin-right: 1rem;
  font-weight: 600;
}
.download_socials {
  display: flex;
  flex-direction: row; /* Default layout */
  /* justify-content: space-between; */
  align-items: center;
}

.download_socials .btns {
  margin-right: 1rem; /* Add spacing between button and SVGs */
}

.svg-container {
  display: flex;
  gap: 1rem; /* Space between SVG icons */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero .left img {
      width: 250px;
  }

  .hero .right h1 {
      font-size: 3rem;
  }

  .hero .right p {
      font-size: 0.9rem;
  }

  .count-container {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  header nav {
      flex-direction: column;
      align-items: flex-start;
    width: 100%;
  }

  header nav .left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  header nav .left > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    width: 100%;
  }

  header nav .right {
    width: 100%;
    margin-top: 0.75rem;
  }

  .download_socials {
    flex-direction: column;
    align-items: center;
}

.download_socials .btns {
    margin: 0 0 1rem 0; /* Add spacing below button */
}

.svg-container {
    margin-top: 1rem; /* Add space above SVG container */
    gap: 0.5rem; /* Reduce spacing between SVG icons if needed */
}
  header nav .left {
      margin-bottom: 1rem;
  }

  header nav .left a {
      margin-right: 0;
  }

  .hero {
      flex-direction: column;
      text-align: center;
  }
.hero .right {
  margin-bottom: 2rem;
  text-align: center;
}

.hero .right .svg-container {
  justify-content: center;
  flex-wrap: wrap;
}
  /* .hero .left {
      margin-bottom: 1rem;
  } */

  .hero .right h1 {
      font-size: 2.5rem;
  }

  .hero .right p {
      font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  header nav .left a {
      margin-right: 0.5rem;
  }

  .hero .left img {
      width: 200px;
  }

  .hero .right h1 {
      font-size: 2rem;
  }

  .hero .right p {
      font-size: 0.7rem;
  }

  .count-container {
      width: 100%;
      grid-template-columns: 1fr;
      gap: 0.75rem;
  }

  .count-item {
      width: 100%;
      text-align: center;
      min-height: 82px;
  }

  .count-number {
      font-size: 1.9rem;
  }

  .count-label {
      font-size: 0.8rem;
  }
}


/* About Me Section */
section {
  padding: 6rem 0;
  color: var(--primary);
  /* font-family: 'opensans', sans-serif; */
}
  

section.about h1 {
  margin-bottom: 2rem;
  font-size: 3rem;
  font-weight: 400;
}
section.about span{
  color: var(--secondary);
}
section.about h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}
section.about p{
  color: #1c1c22;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 2rem;
}

/* image styling */

section.about .about-img {
  height: 25rem;
  cursor: pointer;
  border-radius: 40px;
  object-fit: cover; 
  transition: opacity 0.3s ease;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
  transition: filter 0.3s ease; /* Transition effect for filter */
  filter: brightness(0.8); /* Darkens the image */
}


/* Services Page */
section.services {
  min-height: 80vh;
  display: flex; 
  flex-direction: column; 
  /* align-items: center; */
  /* background-color: rgba(0, 0, 0, 0.05); */
  justify-content: center;
  padding-top: 3rem; 
  padding-bottom: 3rem;
}

section.box {
  max-width: 100%; 
  margin-left: auto; 
  margin-right: auto; 
  padding: 6rem 0;
}

section.services .grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr); /*1 for md */
  gap: 60px;
  align-items: stretch;
}


section.services .grid-content {
  display: flex;
  flex-direction: column; 
  justify-content: flex-start;
  gap: 1.5rem;
  width: 100%;
  min-height: 360px;
  height: 100%;
}

section.services .grid-content .border-line {
  margin-top: auto;
}
.grid-content .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.grid-content .title .logo {
  height:60px;
  width: 60px;
}


.text-style {
  font-size: 3rem;
  font-weight: 800;
  color: transparent;
  transition: all 0.5s ease; 
  cursor: pointer;
}

.text-outline {
  -webkit-text-stroke: 1px var(--secondary);
}
.text-outline:hover {
  -webkit-text-stroke: 1px var(--primary);
}

.border-line {
  border-bottom: 1px solid rgba(33, 33, 33, 0.3);
  width: 100%;
}

.grid h2 {
  font-size: 42px;
  font-weight: bold; 
  line-height: 1; 
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  section.services .grid{
    grid-template-columns: repeat(1, 1fr);
  }
}




/* My skills */
#skills {
  padding: 60px 0;
  background-color: #f9f9f9;
  transition: background-color 0.35s ease;
  /* font-family: 'Poppins', sans-serif; */
}

#skills h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
   font-family: 'Poppins', sans-serif;
  color: var(--primary)
}
#skills h2 span{
  color: var(--secondary);
}

#skills p {
  align-items: center;
  margin-bottom: 2rem;
  display: none;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjust minmax values as needed */
  gap: 20px;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.35s ease;
  overflow: hidden;
  height: 150px; /* Set a fixed height */
}

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

.skill img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.skill h3 {
  font-size: 1rem;
  color: var(--primary);
  text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr; 
  }
}

/* My works section */
.my-works {
  padding: 50px 0;
  background-color: #f4f4f4;
  transition: background-color 0.35s ease;
}

.work-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-head {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.section-head span {
  color: #00a86b;
}

.section-subheading {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #555;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

@media screen and (max-width: 992px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16 / 9;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.work-item img {
  display: block;
  border-radius: 10px;
  width: 100%;
  height: auto;
}

.work-item:hover img {
  opacity: 0.3;
}

/* TGAK-specific tweaks to ensure image is visible and not overly cropped */
/* TGAK-specific rules reverted per request */

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.work-item:hover .overlay {
  opacity: 1;
  pointer-events: auto;
}

.overlay h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.work-btn {
  padding: 10px 20px;
  background-color: #00a86b;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  transition: background-color 0.3s ease-in-out;
}

.work-btn:hover {
  background-color: #007a5e;
}



/* contact form */
#contact {
  padding: 60px 0;
  background-color: #f5f5f5;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.35s ease;
}

#contact h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #00a86b;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.35s ease;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 1em;
  margin-bottom: 8px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1em;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #00a86b;
}

.form-group select {
  background-color: #fff;
  cursor: pointer;
}

textarea {
  resize: none;
}

.btn {
  display: inline-block;
  padding: 10px 30px;
  background-color: #00a86b;
  color: #fff;
  font-size: 1.1em;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  text-align: center;
}

.btn:hover {
  background-color: #007f54;
}

/* Responsive Design */
@media (max-width: 768px) {
  #contact-form {
      padding: 20px;
  }

  .btn {
      padding: 10px 20px;
  }
}


/* footer */

footer {
  background-color: #333;
  padding: 20px 0;
  text-align: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

footer p {
  margin: 5px 0;
  font-size: 0.9em;
}

footer a {
  color: #00a86b;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: #007f54;
  text-decoration: underline;
}
.footer-container.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: center;
  padding: 2rem 1rem;
}

.footer-container.container p {
  margin: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

footer span {
  color: var(--secondary);
  font-size: 300;
  font-weight: 600;
}


.floating-button {
  position: fixed;
  bottom: 20px; /* Distance from the bottom */
  right: 20px; /* Distance from the right */
  background-color: var(--secondary); /* Button color */
  border-radius: 50%; /* Make the button round */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 60px; /* Button size */
  height: 60px; /* Button size */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.floating-button:hover {
  background-color: var(--secondary); /* Darker button color on hover */
}

.button-link {
  color: var(--pure); /* Icon color */
  text-decoration: none;
}

.floating-button svg {
  width: 40px;
  height: 40px;
}

html {
  scroll-behavior: smooth;
}
