:root {
  --main-color: #ff6b6b;
  --bg-light: #f8f9fa;
  --text-dark: #212529;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Navbar */
.navbar-brand {
  font-weight: bold;
  color: var(--main-color) !important;
}
.nav-link.active { color: #fff !important; }
.navbar .nav-link:hover { opacity: 0.9; }

/* Hero (Home) */
.hero-section {
  background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1600&q=80')
              center/cover no-repeat fixed;
  min-height: 60vh;
  position: relative;
}
.hero-section::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
}
.hero-section .content { position: relative; z-index: 1; }

/* Sections */
.section-title {
  border-bottom: 3px solid var(--main-color);
  display: inline-block;
  margin-bottom: 20px;
  padding-bottom: 5px;
}
.intro-section { padding: 60px 20px; }
.tools-icons i { font-size: 2rem; margin: 10px; color: var(--main-color); }

/* Cards / Projects */
.card { border: none; transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.card-img-top { height: 200px; object-fit: cover; }
.project-card { border: none; }

/* Parallax headers for inner pages */
.parallax-header {
  color: #fff; height: 50vh; text-align: center; position: relative;
  background-size: cover; background-position: center;
}
.parallax-header.about {
  background:
    linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
    url('https://images.unsplash.com/photo-1543269865-cbf427effbad?auto=format&fit=crop&w=1600&q=80');
}
.parallax-header.projects {
  background:
    linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)),
    url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?fit=crop&w=1600&q=80');
}
.parallax-header.contact {
  background:
    linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)),
    url('https://images.unsplash.com/photo-1615840287214-7ff58936c4cf?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); /* New Unsplash image */
  background-size: cover;
  background-position: center;
}
.parallax-header .container { position: relative; z-index: 1; }

/* About profile image */
.profile-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* About section layout */
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.about-text {
  flex: 1 1 60%;
}
.about-image {
  flex: 1 1 35%;
  display: flex;
  justify-content: flex-end;
}

/* Footer */
footer {
  background: #212529; color: #fff;
  padding: 40px 0; text-align: center;
}

/* Contact bits */
.contact-info i { color: var(--main-color); font-size: 1.2rem; margin-right: 8px; }
.social-icons a { font-size: 1.6rem; margin: 10px; color: var(--main-color); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Scroll-to-top button */
#scrollTopBtn {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border: none; border-radius: 8px;
  background: #212529; color: #fff; font-size: 18px; display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); cursor: pointer; z-index: 1000;
}
#scrollTopBtn:hover { background: #111; }

/* Utilities */
.text-accent { color: var(--main-color); }

/* Small tweaks */
@media (max-width: 576px) {
  .hero-section { min-height: 50vh; }
  .profile-img { width: 170px; height: 170px; }
  .about-container { flex-direction: column; text-align: center; }
  .about-image { justify-content: center; }
}
