/* Base Styles */
:root {
  --primary-color: #6c63ff;
  --secondary-color: #4d44ff;
  --accent-color: #ff6584;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --bg-light: #f9f9f9;
  --bg-dark: #1a1a2e;
  --success-color: #28a745;
  --error-color: #dc3545;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 10rem 0;
  position: relative;
}

.section-title {
  font-size: 3.6rem;
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  color: var(--text-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 0.4rem;
  background: var(--primary-color);
  border-radius: 5px;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  transition: transform 0.2s ease;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.7;
}

.cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
}

/* Header */
header {
  position: fixed;
  display: flex;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

header.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.98);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;
  position: absolute;
  left: 40px;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav ul li a {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Home Section */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  overflow: hidden;
  position: relative;
}

.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.home-text {
  flex: 1;
}

.home-text h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
  position: relative;
}

.glitch {
  position: relative;
  animation: glitch 1s linear infinite;
}

@keyframes glitch {
  2%,
  64% {
    transform: translate(2px, 0) skew(0deg);
  }
  4%,
  60% {
    transform: translate(-2px, 0) skew(0deg);
  }
  62% {
    transform: translate(0, 0) skew(5deg);
  }
}

.glitch:before,
.glitch:after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch:before {
  left: 2px;
  text-shadow: -2px 0 var(--accent-color);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch:after {
  left: -2px;
  text-shadow: -2px 0 var(--primary-color);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(31px, 9999px, 94px, 0);
  }
  5% {
    clip: rect(70px, 9999px, 71px, 0);
  }
  10% {
    clip: rect(29px, 9999px, 83px, 0);
  }
  15% {
    clip: rect(16px, 9999px, 21px, 0);
  }
  20% {
    clip: rect(2px, 9999px, 40px, 0);
  }
  25% {
    clip: rect(61px, 9999px, 15px, 0);
  }
  30% {
    clip: rect(61px, 9999px, 77px, 0);
  }
  35% {
    clip: rect(117px, 9999px, 98px, 0);
  }
  40% {
    clip: rect(15px, 9999px, 7px, 0);
  }
  45% {
    clip: rect(83px, 9999px, 4px, 0);
  }
  50% {
    clip: rect(106px, 9999px, 27px, 0);
  }
  55% {
    clip: rect(76px, 9999px, 73px, 0);
  }
  60% {
    clip: rect(46px, 9999px, 97px, 0);
  }
  65% {
    clip: rect(46px, 9999px, 69px, 0);
  }
  70% {
    clip: rect(105px, 9999px, 13px, 0);
  }
  75% {
    clip: rect(7px, 9999px, 10px, 0);
  }
  80% {
    clip: rect(101px, 9999px, 33px, 0);
  }
  85% {
    clip: rect(37px, 9999px, 46px, 0);
  }
  90% {
    clip: rect(112px, 9999px, 76px, 0);
  }
  95% {
    clip: rect(69px, 9999px, 33px, 0);
  }
  100% {
    clip: rect(61px, 9999px, 113px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 119px, 0);
  }
  5% {
    clip: rect(133px, 9999px, 74px, 0);
  }
  10% {
    clip: rect(76px, 9999px, 61px, 0);
  }
  15% {
    clip: rect(25px, 9999px, 14px, 0);
  }
  20% {
    clip: rect(138px, 9999px, 4px, 0);
  }
  25% {
    clip: rect(105px, 9999px, 82px, 0);
  }
  30% {
    clip: rect(41px, 9999px, 58px, 0);
  }
  35% {
    clip: rect(115px, 9999px, 96px, 0);
  }
  40% {
    clip: rect(69px, 9999px, 92px, 0);
  }
  45% {
    clip: rect(1px, 9999px, 73px, 0);
  }
  50% {
    clip: rect(20px, 9999px, 20px, 0);
  }
  55% {
    clip: rect(28px, 9999px, 99px, 0);
  }
  60% {
    clip: rect(89px, 9999px, 64px, 0);
  }
  65% {
    clip: rect(74px, 9999px, 67px, 0);
  }
  70% {
    clip: rect(71px, 9999px, 126px, 0);
  }
  75% {
    clip: rect(100px, 9999px, 86px, 0);
  }
  80% {
    clip: rect(41px, 9999px, 24px, 0);
  }
  85% {
    clip: rect(102px, 9999px, 23px, 0);
  }
  90% {
    clip: rect(57px, 9999px, 86px, 0);
  }
  95% {
    clip: rect(17px, 9999px, 48px, 0);
  }
  100% {
    clip: rect(84px, 9999px, 88px, 0);
  }
}

.typing-text {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.typing-text::after {
  content: "|";
  position: absolute;
  right: -8px;
  animation: blink 0.7s infinite;
}

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

.home-description {
  margin-bottom: 3rem;
}

.home-description p {
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 2rem;
}

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  border-radius: 5rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.primary-btn {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.primary-btn:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}
/* ======================= */
.secondary-btn {
    border: none;
    outline: none;
    color: #000;
    background: #fff;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    -webkit-user-select: none;
}

.secondary-btn:before {
    content: "";
    background: linear-gradient(
      45deg,
      #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000
    );  /* Rainbow gradient */
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    -webkit-filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing-button-9 20s linear infinite;  /* Apply the glow animation */
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
}

/* Animation for the rainbow glow effect */
@keyframes glowing-button-9 {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Inner part of Button 9 */
.secondary-btn:after {
    z-index: -1;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #f0f0f0;  
    left: 0;
    top: 0;
    border-radius: 10px;
}



.secondary-btn:hover {
  background: var(--primary-color);
  /* color: white; */
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.home-image {
  flex: 1;
  position: relative;
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.image-container img {
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

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

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: floatShape 8s linear infinite;
}

.shape-1 {
  top: -20px;
  left: -20px;
  width: 60px;
  height: 60px;
  background: rgba(108, 99, 255, 0.2);
  animation-delay: 0s;
}

.shape-2 {
  top: 50%;
  right: -30px;
  width: 80px;
  height: 80px;
  background: rgba(255, 101, 132, 0.2);
  animation-delay: 2s;
}

.shape-3 {
  bottom: -20px;
  left: 30%;
  width: 50px;
  height: 50px;
  background: rgba(108, 99, 255, 0.2);
  animation-delay: 4s;
}

.shape-4 {
  top: 30%;
  left: -40px;
  width: 70px;
  height: 70px;
  background: rgba(255, 101, 132, 0.2);
  animation-delay: 6s;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -10px) rotate(90deg);
  }
  50% {
    transform: translate(0, 20px) rotate(180deg);
  }
  75% {
    transform: translate(-10px, -10px) rotate(270deg);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-color);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 6px;
  height: 6px;
  background: var(--text-color);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel 1.5s infinite;
}

@keyframes wheel {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
}

.arrow {
  margin-top: 10px;
}

.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--text-color);
  border-right: 2px solid var(--text-color);
  transform: rotate(45deg);
  margin: -5px;
  animation: arrow 2s infinite;
}

@keyframes arrow {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Skills Section */
#skills {
  background-color: var(--bg-light);
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.skill-category {
  margin-bottom: 2rem;
}

.skill-category h3 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-item {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-item:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.skill-item:hover .skill-icon,
.skill-item:hover h4 {
  color: white;
}

.skill-item:hover .progress {
  background: white;
}

.skill-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.skill-info h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
  transition: width 1.5s ease-in-out;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
}

.project-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.project-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-tech span {
  background: var(--bg-light);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1.5rem;
}

.project-link {
  color: var(--primary-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--secondary-color);
}

/* Services Section */
#services {
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem;
}

.service-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p {
  color: white;
}

.service-card:hover .service-link {
  color: white;
  border-color: white;
}

.service-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.service-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  transition: var(--transition);
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Socials Section */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
}

.social-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.social-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  z-index: -1;
}

.github::before {
  background: #333;
}

.linkedin::before {
  background: #0077b5;
}

.leetcode::before {
  background: #f89f1b;
}

.social-card:hover {
  transform: translateY(-10px);
}

.social-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 3.5rem;
}

.github .social-icon {
  color: #333;
  background: rgba(51, 51, 51, 0.1);
}

.linkedin .social-icon {
  color: #0077b5;
  background: rgba(0, 119, 181, 0.1);
}

.leetcode .social-icon {
  color: #f89f1b;
  background: rgba(248, 159, 27, 0.1);
}

.social-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.social-card p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.github .badge {
  background: rgba(51, 51, 51, 0.1);
  color: #333;
}

.linkedin .badge {
  background: rgba(0, 119, 181, 0.1);
  color: #0077b5;
}

.leetcode .badge {
  background: rgba(248, 159, 27, 0.1);
  color: #f89f1b;
}

.social-link {
  display: inline-block;
  position: relative;
  /* left: 20px; */
  padding: 1rem 2rem;
  border-radius: 3rem;
  font-weight: 500;
  transition: var(--transition);
}

 .social-link {
  /* left: 2rem; */
  all: unset;
  width: 100px;
  height: 25px;
  font-size: 16px;
  color: #f0f0f0;
  cursor: pointer;
  position: relative;
  left: 7em;
    z-index: 1;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  /* user-select: none; */
  touch-action: manipulation;
}

 .social-link::after,
 .social-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
  transition: all 0.4s;
}

.github .social-link::before {
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
  background: #28282d;
  border-radius: 10px;
}

.github .social-link::after {
  transform: translate(10px, 10px);
  width: 35px;
  height: 35px;
  background: #ffffff15;
  backdrop-filter: blur(5px);
  border-radius: 50px;
}

.github .social-link:hover::before {
  transform: translate(5%, 20%);
  width: 110%;
  height: 110%;
}

.github .social-link:hover::after {
  border-radius: 10px;
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
}

.github .social-link:active::after {
  transition: 0s;
  transform: translate(0, 5%);
}

/* ================================= */
.linkedin .social-link::before {
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
  background: #0077b5;
  border-radius: 10px;
}

.linkedin .social-link::after {
  transform: translate(10px, 10px);
  width: 35px;
  height: 35px;
  background: #bee2f628;
  backdrop-filter: blur(5px);
  border-radius: 50px;
}

.linkedin .social-link:hover::before {
  transform: translate(5%, 20%);
  width: 110%;
  height: 110%;
}

.linkedin .social-link:hover::after {
  border-radius: 10px;
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
}

.linkedin .social-link:active::after {
  transition: 0s;
  transform: translate(0, 5%);
}

/* =============================== */
.leetcode .social-link::before {
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
  background: #804e02;
  border-radius: 10px;
}

.leetcode .social-link::after {
  transform: translate(10px, 10px);
  width: 35px;
  height: 35px;
  background: #f8a01b22;
  backdrop-filter: blur(5px);
  border-radius: 50px;
}

.leetcode .social-link:hover::before {
  transform: translate(5%, 20%);
  width: 110%;
  height: 110%;
}

.leetcode .social-link:hover::after {
  border-radius: 10px;
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
}

.leetcode .social-link:active::after {
  transition: 0s;
  transform: translate(0, 5%);
}


/* 
.linkedin .social-link {
  background: #0077b5;
  color: white;
} */
/* 
.leetcode .social-link {
  background: #f89f1b;
  color: white;
} */

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
#contact {
  background-color: var(--bg-light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  flex-shrink: 0;
}

.contact-text h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-form-container {
  background: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--box-shadow);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  position: relative;
}

.form-group:nth-child(3),
.form-group:nth-child(4) {
  grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1.6rem;
  background: transparent;
  transition: var(--transition);
}

.form-group textarea {
  height: 150px;
  resize: none;
}

.form-group label {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: var(--text-light);
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  border-color: var(--primary-color);
  outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 1.2rem;
  padding: 0 5px;
  background: white;
  color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.submit-btn {
  grid-column: 1 / -1;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.submit-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.form-status {
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  margin-top: 1rem;
  display: none;
}

.form-status.success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  display: block;
}

.form-status.error {
  background: rgba(220, 53, 69, 0.1);
  color: var(--error-color);
  display: block;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.footer-logo h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-logo p {
  color: #aaa;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-link-group h4 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: white;
}

.footer-link-group ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link-group ul li a {
  color: #aaa;
  transition: var(--transition);
}

.footer-link-group ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #aaa;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  html {
    font-size: 60%;
  }

  .home-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: 2;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .hamburger {
    display: block;
  }

  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    transition: var(--transition);
    z-index: 999;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  nav ul li {
    margin: 1.5rem 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .section-title {
    font-size: 3rem;
  }

  .home-text h1 {
    font-size: 4rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 50%;
  }

  .section {
    padding: 8rem 0;
  }

  .home-text h1 {
    font-size: 3.5rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .services-grid,
  .socials-grid {
    grid-template-columns: 1fr;
  }
}
