@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;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    background-color: black;
    color: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(0,0,0,0.7);
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    color: #FFDAB9;
    text-decoration: none; /* removes underline */
}

nav a {
    color: white;
    font-size: 1.8rem;
    margin-left: 3rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

nav a.active, nav a:hover {
    color: #FFDAB9;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #FFDAB9;
    transition: 0.3s;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    min-height: 100vh;
}

.home-content .social-icons {
    margin-bottom: 2rem; /* space after icons before buttons */
}

.home-content .btn {
    margin-right: 1.5rem; /* space between buttons */
}

.home-content h1 {
    font-size: 5rem;
    font-weight: 700;
}

.home-content h1 span {
    color: #FFDAB9;
}

.home-content h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.home-content p {
    font-size: clamp(1.2rem, 1.6vw, 1.8rem); 
    max-width: 700px;
    margin-bottom: 3rem; 
}

/* Bouncing Image */
.home-img img {
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px #FFDAB9;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Typing Text (pure CSS) */
.typing-text .words::after {
    content: "Software Developer";
    color:  #FFDAB9;
    animation: words 10s infinite;
}

.typing-text .words {
    position: relative;
    display: inline-block;
}

.typing-text .words::before {
    content: "";
    position: absolute;
    right: -3px;
    width: 2px;
    height: 1.2em;
    background-color: #FFDAB9;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

@keyframes words {
    0%, 20% { 
      content: "Software Developer"; 
    }
    21%, 40% { 
      content: "Web Designer"; 
    }
    41%, 60% { 
      content: "UI/UX Enthusiast"; 
    }
    61%, 80% { 
      content: "Java Programmer"; 
    }
    81%, 100% { 
      content: "Problem Solver";
    }
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 2px solid #FFDAB9;
    border-radius: 50%;
    color: #FFDAB9;
    margin-right: 1rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #FFDAB9;
    color: black;
    transform: scale(1.3);
    box-shadow: 0 0 20px #FFDAB9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid #FFDAB9;
    border-radius: 4rem;
    color: #FFDAB9;
    background-color: black;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #FFDAB9;
    color: black;
    box-shadow: 0 0 20px #FFDAB9;
    transform: scale(1.05);
}

/* Sections */
section {
    padding: 8rem 5%;
    min-height: 100vh;
}

h2 {
    font-size: 3rem;
    text-align: center;
    color: #FFDAB9;
    margin-bottom: 3rem;
}

.section-content ul {
    list-style: none;
    font-size: 1.7rem;
    text-align: center;
}

.section-content a {
    color: #FFDAB9;
    text-decoration: none;
}
.heading {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #fff;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: #111; /* dark card */
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #FFDAB9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #FFDAB9;
}

.card p {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #ddd;
}

.card .highlight {
  color: #b74b4b;
  font-weight: bold;
}

.card .date {
  font-size: 1.2rem;
  color: #aaa;
}

