/* === GLOBAL STYLES === */
:root {
  --primary-color: #6c63ff;
  --secondary-color: #4d44db;
  --dark-color: #2f2e41;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --glass: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f9f9f9;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  position: relative;
}

h3::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.highlight {
  color: var(--primary-color);
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.highlight:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn.primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.btn.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(108, 99, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
  }
}

.section-title {
  text-align: center;
}

.section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* === ANIMATED BACKGROUND === */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #f5f7fa, #e4e8f0, #f5f7fa, #e4e8f0);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  z-index: -1;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .line {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px;
  transition: all 0.3s ease;
}

.hamburger.active .line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--gray-color);
}

.hero-content p {
  margin-bottom: 30px;
  font-size: 1.2rem;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.image-wrapper {
  width: 380px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-down i {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* === SKILLS SECTION === */
.skills {
  background-color: #f8f9fa;
  position: relative;
}

.skills h3 {
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.skill-item {
  background-color: white;
  padding: 30px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  color: white;
}

.skill-item i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.skill-item:hover i {
  color: white;
  transform: scale(1.2);
}

.skill-item span {
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.skill-item:hover span {
  color: white;
}

/* === PROJECTS SECTION === */
.projects {
  position: relative;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.filter-btn.active {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.filter-btn:hover {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 0.9;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.project-info {
  padding: 25px;
  position: relative;
  z-index: 2;
  background-color: white;
  transition: all 0.3s ease;
}

.project-card:hover .project-info {
  background-color: transparent;
  color: white;
}

.project-info h4 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.project-card:hover .project-info h4 {
  color: white;
}

.project-info p {
  color: var(--gray-color);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.project-card:hover .project-info p {
  color: rgba(255, 255, 255, 0.9);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-tag {
  background-color: #f0f0f0;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.project-card:hover .project-tag {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.project-links a i {
  margin-right: 5px;
}

.project-card:hover .project-links a {
  color: white;
}

.project-card:hover .project-links a:hover {
  transform: translateX(5px);
}

/* === ABOUT SECTION === */
.about .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image {
  flex: 1;
}

.about-image .image-wrapper {
  width: 380px;
  height: 500px;
}

.about-content {
  flex: 1;
}

.about-content p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.timeline {
  margin: 40px 0;
  padding-left: 30px;
  border-left: 3px solid var(--primary-color);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: 3px solid white;
  box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-item h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.timeline-item p {
  margin-bottom: 0;
}

/* === DESIGN SECTION === */
.design {
  background-color: #f8f9fa;
}

.design-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 25px;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.tab-btn.active {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.tab-btn:hover {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.design-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(108, 99, 255, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1.2);
}

/* === CONTACT SECTION === */
.contact-container {
  display: flex;
  gap: 60px;
  margin-top: 50px;
}

.contact-info {
  flex: 1;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.info-item i {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
  transition: all 0.3s ease;
}

.info-item:hover i {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.info-item span {
  font-size: 1.1rem;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.social-links a {
  width: 50px;
  height: 50px;
  background-color: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-color);
  transition: all 0.3s ease;
  font-size: 1.3rem;
}

.social-links a:hover {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.contact-form {
  flex: 1;
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* === FOOTER === */
.footer {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-top: 100px;
}

.footer p {
  font-size: 1.1rem;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 992px) {
  section {
    padding: 80px 0;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 50px;
  }

  .cta-buttons {
    justify-content: center;
  }

  .about .container {
    flex-direction: column;
    gap: 40px;
  }

  .contact-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .image-wrapper {
    width: 320px;
    height: 320px;
  }
  
  .about-image .image-wrapper {
    height: 400px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.8rem;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .design-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.6rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .filter-buttons, .design-tabs {
    flex-wrap: wrap;
  }
  
  .projects-grid, .design-gallery {
    grid-template-columns: 1fr;
  }
  
  .image-wrapper {
    width: 280px;
    height: 280px;
  }
  
  .about-image .image-wrapper {
    height: 350px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
}

/* === TYPING ANIMATION === */
.typing-animation {
  position: relative;
  display: inline-block;
}

.typing-animation::after {
  content: '|';
  position: absolute;
  right: -8px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
/* Body default light mode */
body {
  background-color: #fff;
  color: #222;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

/* Example elements you want to style in dark mode */
.navbar, section, footer {
  background-color: #eee;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #222;
}

body.dark-mode .navbar,
body.dark-mode section,
body.dark-mode footer {
  background-color: #1e1e1e;
  color: #ccc;
}

/* Theme toggle switch style */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.4s;
}

.theme-switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s;
}

.theme-switch input:checked + .slider {
  background-color: #2196F3;
}

.theme-switch input:checked + .slider:before {
  transform: translateX(26px);
}
.education-section {
  padding: 40px 20px;
  max-width: 900px;
  margin: 40px auto;  /* centers the section with margin */
  color: #222;
  text-align: center;
}

body.dark-mode .education-section {
  color: #ddd;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
}

.education-item {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  align-items: center;
  width: 100%;
  max-width: 700px;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .education-item {
  background-color: #292929;
  color: #ddd;
}

.education-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.education-text h3 {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
}

.education-text p {
  margin: 3px 0;
  font-size: 1rem;
  text-align: left;
}
