/* =========================
   College-Ready Portfolio CSS
   Author: Saksham Khadka
   ========================= */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #ff004f;
  --dark: #080808;
  --light: #ffffff;
  --gray: #ababab;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--dark);
  color: var(--light);
}

/* ---------- Global ---------- */
.container {
  padding: 10px 10%;
}

.sub-title {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  border-radius: 30px;
  background: var(--primary);
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn:hover {
  background: #e60045;
  transform: translateY(-3px);
}

/* ---------- Header ---------- */
#header {
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)), url(img\ 1.jpg) center/cover no-repeat;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 140px;
}

nav ul li {
  display: inline-block;
  margin: 10px 20px;
}

nav ul li a {
  color: var(--light);
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav ul li a::after {
  content: '';
  width: 0;
  height: 3px;
  background: var(--primary);
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

.header-text {
  margin-top: 20%;
}

.header-text h1 {
  font-size: 55px;
}

.header-text h1 span {
  color: var(--primary);
}

/* ---------- About ---------- */
.about {
  padding: 80px 0;
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-col-1 {
  flex-basis: 35%;
}

.about-col-1 img {
  width: 100%;
  border-radius: 15px;
}

.about-col-2 {
  flex-basis: 60%;
}

.tab-titles {
  display: flex;
  margin: 20px 0 40px;
}

.tab-links {
  margin-right: 50px;
  cursor: pointer;
  position: relative;
}

.tab-links::after {
  content: '';
  width: 0;
  height: 3px;
  background: var(--primary);
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.3s;
}

.tab-links.active-link::after {
  width: 50%;
}

.tab-contents {
  display: none;
}

.tab-contents.active-tab {
  display: block;
}

.tab-contents ul li {
  list-style: none;
  margin: 10px 0;
}

.tab-contents span {
  color: var(--primary);
  font-size: 14px;
}

/* ---------- Services ---------- */
#services {
  padding: 80px 0;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.services-list div {
  background: #262626;
  padding: 40px;
  border-radius: 15px;
  transition: 0.3s;
}

.services-list div:hover {
  background: var(--primary);
  transform: translateY(-10px);
}

.services-list i {
  font-size: 40px;
  margin-bottom: 20px;
}

/* ---------- Portfolio ---------- */
#portfolio {
  padding: 80px 0;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.work {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.work img {
  width: 100%;
  display: block;
  transition: 0.3s;
}

.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0,0,0,0.6), var(--primary));
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0 40px;
  transition: 0.3s;
}

.work:hover img {
  transform: scale(1.1);
}

.work:hover .layer {
  height: 100%;
}

/* ---------- Contact ---------- */
#contact {
  padding: 80px 0;
}

.contact-left {
  flex-basis: 35%;
}

.contact-right {
  flex-basis: 60%;
}

.contact-left p {
  margin: 20px 0;
}

.social-icons a {
  font-size: 25px;
  margin-right: 15px;
  color: var(--gray);
  transition: 0.3s;
}

.social-icons a:hover {
  color: var(--primary);
}

.contact-right form input,
.contact-right form textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: #262626;
  padding: 15px;
  margin: 15px 0;
  color: var(--light);
  border-radius: 10px;
}

.copyright {
  text-align: center;
  padding: 25px 0;
  background: #262626;
  margin-top: 40px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .header-text h1 {
    font-size: 40px;
  }
  .about-col-1, .about-col-2,
  .contact-left, .contact-right {
    flex-basis: 100%;
  }
  nav ul {
    background: var(--primary);
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    transition: 0.3s;
  }
  nav ul li {
    display: block;
    margin: 25px;
  }
}
.submit-btn{
background: yellowgreen;

}


