@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words{
    0%, 20%{
        content: "Founder- MC Developer";
    }
    21%, 40%{
        content: "Server Developer";
    }
    41%, 60%{
        content: "Web Designer";
    }
    61%, 80%{
        content: "AI developer";
    }
    81%, 100%{
        content: "Athlete";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
  }

:root {
  --bg-dark: #020203;
  --card-bg: rgba(8, 11, 17, 0.6);
  --accent-cyan: #22d3ee;
  --accent-blue: #3b82f6;
  --accent-teal: #14b8a6;
  --text-gray: #9ca3af;
}

.services-section {
  background-color: var(--bg-dark);
  padding: 150px 30px;
  color: white;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  position: relative;
}

.container {
  max-width: 1800px;
  margin: 0 auto;
  max-height: 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  margin: 0 auto;
  border-radius: 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  position: relative;
  border-radius: 32px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  padding: 60px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  height: 600px;
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-inner {
  position: relative;
  z-index: 2;
}

.icon-box {
  width: 66px;
  height: 66px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: transform 0.4s ease;
}

.service-card:hover .icon-box {
  transform: scale(1.1);
}

.cyan-icon { color: var(--accent-cyan); }
.blue-icon { color: var(--accent-blue); }
.teal-icon { color: var(--accent-teal); }

.card-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.service-card:hover .card-title {
  color: var(--accent-cyan);
}

.card-description {
  color: var(--text-gray);
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.8;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.85rem;
  color: #d1d5db;
  margin-bottom: 12px;
}

.dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  opacity: 0.6;
}

/* Glow Effects */
.card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.service-card[data-glow="cyan"]:hover .card-glow {
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
  opacity: 1;
}

.service-card[data-glow="blue"]:hover .card-glow {
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  opacity: 1;
}

.service-card[data-glow="teal"]:hover .card-glow {
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
  opacity: 1;
}


.projects-title {
  text-align: center;
  font-size: 4rem;
  margin-bottom: 90px;
  color: #ffffff;
  letter-spacing: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 70px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Project Card */
.project-card {
  background: #050505;
  border-radius: 28px;
  padding: 35px;
  min-height: 620px;

  border: 1px solid rgba(255, 165, 0, 0.7);
  box-shadow: 0 0 45px rgba(255, 165, 0, 0.35);

  display: flex;
  flex-direction: column;

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 0 70px rgba(255, 165, 0, 0.65);
}

/* Image */
.project-image img {
  width: 90%;
  border-radius: 18px;
  margin-bottom: 25px;
  height: 90%;
}

/* Text */
.project-card h3 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #fff;
}

.project-card p {
  font-size: 1.7rem;
  line-height: 1.7;
  color: #cfd8dc;
  margin-bottom: 20px;
}

/* List */
.project-card ul {
  list-style: none;
  margin-bottom: 30px;
}

.project-card ul li {
  font-size: 1.6rem;
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.project-card ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: orange;
}

/* Button */
.project-card button {
  margin-top: auto;
  align-self: flex-start;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  background: orange;
  color: #000;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 0 20px rgba(255, 165, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 165, 0, 0.9);
}

/* Scroll reveal initial */
.reveal {
  opacity: 0;
  transform: translateY(70px);
}
#proimg3{
    width: 100%;
    align-items: center;
    padding-left: 50px;
}
.footer {
  background: radial-gradient(circle at top, #07192e, #000);
  padding: 80px 10% 30px;
  color: #cfd8dc;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Brand */
.footer-brand h3 {
  font-size: 2rem;
  color: #00f0ff;
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 1.5rem;
  line-height: 1.7;
  color: #b0bec5;
}

/* Links */
.footer-links h4,
.footer-social h4 {
  font-size: 1.9rem;
  margin-bottom: 15px;
  color: #7c3aed;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #cfd8dc;
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #00f0ff;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 18px;
}

.social-icons a {
  font-size: 1.9rem;
  color: #cfd8dc;
  transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.social-icons a:hover {
  color: #00f0ff;
  transform: translateY(-4px);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.8);
}

/* Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #90a4ae;
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  nav {
    width: 100%;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }

  nav a {
    width: 100%;
    padding: 10px 0;
    font-size: 18px;
  }
}
html {
 scroll-behavior: smooth;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 10%;

  /* Glassmorphism background */
  background: rgba(5, 5, 5, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  /* Premium subtle border */
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  /* Smooth appearance */
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
header.scrolled {
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(22px);
}

/* --- MEDIA QUERIES FOR MOBILE --- */

@media (max-width: 768px) {
    .services-section {
        padding: 80px 15px; /* Reduce vertical padding on mobile */
    }

    .section-title {
        font-size: 2.2rem; /* Smaller heading for mobile screens */
        margin-bottom: 15px;
    }

    .section-header {
        margin-bottom: 50px; /* Tighter spacing between header and cards */
    }

    .services-grid {
        grid-template-columns: 1fr; /* Force single column on mobile */
        gap: 24px; /* Slightly smaller gap between cards */
    }

    .service-card {
        padding: 35px 25px; /* Reduce internal card padding */
        border-radius: 24px; /* Slightly smaller corners for small screens */
    }

    .card-title {
        font-size: 1.5rem; /* Adjust card title size */
        margin-bottom: 18px;
    }

    .card-description {
        font-size: 0.9rem; /* Slightly smaller text for readability */
        margin-bottom: 25px;
    }

    .icon-box {
        width: 50px;
        height: 50px;
        margin-bottom: 25px;
    }

    /* Adjust background glows for mobile so they aren't too bright */
    .bg-glow {
        width: 80vw;
        height: 80vw;
        opacity: 0.05;
    }
}

/* Extra small devices (phones under 400px) */
@media (max-width: 400px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}
