/* Basics */
html{
  scroll-behavior: smooth;
}

:root{
  --primcolor:#0097a7;
  --sendprimcolor:#00bcd4;
  --thirdprimcolor:#2aa2af;
  --font-body: 'Roboto', sans-serif;
  --font-heading: 'Source Sans 3', sans-serif;
  --font-code: 'Source Code Pro', monospace;
}

body{
  font-family: var(--font-body);
}

h1,h2,h3,h4,h5{
  font-family: var(--font-heading);
}

/* Header nav */
.bg-nav{
  background-color:rgba(0, 0, 0, 0.116) ;
}

nav a{
  font-size: 1.2rem !important;
  transition: all 0.3s ease !important;
  padding-left: 20px !important;
  color: white !important;
}

nav a:hover{
  color: #00bcd4 !important;
  transform: scale(1.1);
}

/* ----------------------Home------------------- */
.home{
  background-image: url("./imges/background.png");
  min-height: 100vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  background-attachment: fixed;
}

.homeLayer{
  background-color: rgba(74, 91, 104, 0.25);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.homeContent{
  color: white;
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.homeContent h1{
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 300;
  color: rgb(17, 253, 253);
  margin-bottom: 1rem;
}

.homeContent p{
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

/* --------------------About------------------- */
.aboutImg{
  width: clamp(120px, 25vw, 170px);      
  height: clamp(120px, 25vw, 170px);     
  object-fit: cover;
  object-position: center;
  border-radius: 50%; 
}

.aboutContent h2 {
  color: #222;
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.aboutContent h2::before{
  content: "|";
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  padding-right: 2px;
  margin: auto;
  color: var(--sendprimcolor);
}

.skill-item p{
  font-weight: 400;
  margin: 0;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.about-Data p{
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}

.skills{
  margin-top: 20px;
}

/* -----------Projects // Cards ------------------ */
.projects{
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.projects h2{
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  color: #222;
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.card{
  text-align: center;
  height: auto;
  min-height: 450px;
  position: relative;
  max-width: 100%;
  margin: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover{
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.card h5{
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.card p{
  font-weight: 300;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.5;
}

.card a{
  font-weight: 400;
  letter-spacing: 2px;
  font-size: clamp(0.8rem, 2vw, 1rem);
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.card a:hover{
  transform: scale(1.05);
  background-color: #333 !important;
}

.card img{
  transition: all 0.3s ease;
  height: clamp(150px, 25vw, 200px);
  object-fit: cover;
  width: 100%;
}

.card:hover img{
  transform: scale(1.1);
}

.cardImg{
  overflow: hidden;
  border-radius: 0.375rem 0.375rem 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .homeContent h1 {
    font-size: 2.5rem;
  }
  
  .homeContent p {
    font-size: 1.2rem;
  }
  
  .aboutImg {
    width: 120px;
    height: 120px;
  }
  
  .card {
    min-height: 400px;
  }
  
  .card img {
    height: 150px;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  nav a {
    padding: 0.5rem 1rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 576px) {
  .homeContent h1 {
    font-size: 2rem;
  }
  
  .homeContent p {
    font-size: 1rem;
  }
  
  .aboutImg {
    width: 100px;
    height: 100px;
  }
  
  .card {
    min-height: 350px;
    max-width: 280px;
    margin: 0 auto 1rem auto;
  }
  
  .card img {
    height: 120px;
  }
  
  .projects {
    padding: 1.5rem 0;
  }
  
  .projects h2 {
    margin-bottom: 1.5rem;
  }
  
  .aboutContent h2 {
    font-size: 1.5rem;
  }
  
  .aboutContent h2::before {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .homeContent h1 {
    font-size: 1.8rem;
  }
  
  .card {
    min-height: 320px;
    max-width: 250px;
    margin: 0 auto 1rem auto;
  }
  
  .card img {
    height: 100px;
  }
  
  .aboutImg {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 375px) {
  .card {
    min-height: 280px;
    max-width: 220px;
    margin: 0 auto 0.75rem auto;
  }
  
  .card img {
    height: 80px;
  }
  
  .card h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .card p {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  .card a {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
  
  .homeContent h1 {
    font-size: 1.6rem;
  }
  
  .homeContent p {
    font-size: 0.9rem;
  }
  
  .aboutImg {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 320px) {
  .card {
    min-height: 250px;
    max-width: 200px;
    margin: 0 auto 0.5rem auto;
  }
  
  .card img {
    height: 70px;
  }
  
  .card h5 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  
  .card p {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  
  .card a {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
  
  .homeContent h1 {
    font-size: 1.4rem;
  }
  
  .homeContent p {
    font-size: 0.8rem;
  }
  
  .aboutImg {
    width: 60px;
    height: 60px;
  }
  
  .projects {
    padding: 1rem 0;
  }
  
  .projects h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
  }
}

/* Print styles */
@media print {
  .home {
    background-image: none;
    min-height: auto;
  }
  
  .homeLayer {
    background-color: transparent;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
  }
}