/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

/* === Root Variables === */
:root {
  --accent-color: #D58A94;
  --accent-color-hover: #b66c78;
  --text-dark: #333;
  --text-muted: #666;
  --bg-light: #f8f9fa;
  --bg-white: #fff;
  --border-radius: 10px;
  --transition: all 0.3s ease-in-out;
}

/* === Navbar === */
.navbar {
  width: 86%;
  display: flex;
  margin: auto;
  padding: 15px 0;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo {
  width: 160px;
  cursor: pointer;
  margin-top: -3%;
  margin-left: -2%;
}

.nav-link,
.nav-link:hover,
.nav-link:focus {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent-color);
}

/* === Hero Section === */
.main {
  width: 100%;
  background: url(pic/bg.jpg) center/cover no-repeat;
  height: 100vh;
  position: relative;
}

.info {
  margin-top: 6%;
}

.info h1 {
  font-size: 65px;
  color: rgb(36, 32, 30);
}

.info h3 {
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 24px;
}

.info span {
  color: var(--accent-color);
}

.info a {
  display: inline-block;
  margin: 26px 0;
  padding: 10px 18px;
  background: rgb(36, 32, 30);
  color: #fff;
  text-decoration: none;
  border-radius: var(--border-radius);
}

.info a:hover {
  background: rgb(59, 174, 209);
}

/* === Hero Image === */
.image {
  width: 30%;
  height: 60%;
  position: absolute;
  right: 100px;
  bottom: 0;
}

.image img {
  position: absolute;
  height: 140%;
  left: 40%;
  transform: translate(-55%);
  bottom: 0;
  transition: left 2s ease;
}

.image:hover .girl {
  left: 55%;
}

/* === Buttons === */
button,
.btn,
.btn-primary,
.btn-outline-primary {
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent-color-hover);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-outline-primary:hover {
  background-color: var(--accent-color-hover);
  color: #fff;
  border-color: var(--accent-color-hover);
}

/* === Skill Cards === */
.skill-card {
  padding: 1rem;
  background-color: var(--bg-light);
  border-left: 4px solid transparent;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-6px);
  border-left: 4px solid var(--accent-color);
  background-color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

/* === Progress Bar === */
.progress {
  height: 20px;
  margin-top: 10px;
  border-radius: 10px;
  background-color: #f1f1f1;
}

.progress-bar {
  line-height: 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
}

/* === Skills Section Enhancements === */
#skills {
  position: relative;
}

.skill-card {
  cursor: default;
}

.skill-card:hover h5 {
  color: var(--accent-color);
}

/* Smooth progress animation */
.progress-bar {
  transition: width 1.4s ease-in-out;
}

/* Slight glow on hover */
.skill-card:hover .progress-bar {
  filter: brightness(1.1);
}


/* === Portfolio Cards === */
.portfolio-card {
  background-color: #fff;
  overflow: hidden;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-card img {
  transition: transform 0.4s ease;
}

.portfolio-card:hover img {
  transform: scale(1.03);
}

/* === Portfolio Animation === */
#portfolio .transition {
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Section Headings === */
h1, h2, h3, h4 {
  /* color: var(--accent-color); */
  transition: var(--transition);
}

h2 {
  font-weight: 700;
}

/* === Icon Effects === */
.icons a,
.footer-icons a {
  text-decoration: none;
  background-color: transparent;
}

.icons a ion-icon,
.footer-icons a ion-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: var(--transition);
}

.icons a:hover ion-icon,
.footer-icons a:hover ion-icon {
  color: var(--accent-color-hover);
  transform: scale(1.2);
}

/* === Form Elements === */
input,
textarea,
select {
  border-radius: var(--border-radius);
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px rgba(230, 104, 59, 0.3);
}

/* === Section Spacing === */
section {
  padding: 4rem 0;
}

/* === Footer === */
footer {
  border-top: 1px solid #ddd;
  padding-top: 2rem;
  transition: var(--transition);
}

/* === Case Study Content === */
#case-study-content {
    max-width: 800px;
    margin: auto;
}

/* === Form css === */

.form-message {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #333;
}

.form-message.success {
  color: green;
}

.form-message.error {
  color: red;
}

button .spinner {
  margin-left: 10px;
}

/* stats home page */

.stat-card {
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.05)
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

.stat-card h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 6px;
}

.stat-card p {
    font-size: 14px;
    color: #060505;
    letter-spacing: 0.3px;
    margin: 0;
}

.stat-card.blue h2 {
    color: #5ecbff;
}

.stat-card.orange h2 {
    color: #ff9f43;
}

.stat-card.green h2 {
    color: #2ed573;
}

.stat-card.blue {
    box-shadow: 0 12px 35px rgba(94, 203, 255, 0.25);
}

.stat-card.orange {
    box-shadow: 0 12px 35px rgba(255, 159, 67, 0.25);
}

.stat-card.green {
    box-shadow: 0 12px 35px rgba(46, 213, 115, 0.25);
}








