/* Base Styles */
:root {
  --primary-color: #4361ee;
  --primary-light: #6b84f5;
  --primary-dark: #3a56d4;
  --secondary-color: #3f37c9;
  --accent-color: #4895ef;
  --accent-light: #72b1ff;
  --text-color: #333333;
  --text-light: #6c757d;
  --light-text: #f8f9fa;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --card-bg: #f8f9fa;
  --card-dark: #e9ecef;
  --nav-bg: rgba(226, 234, 238, 0.95);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

[data-theme="dark"] {
  --primary-color: #4895ef;
  --primary-light: #72b1ff;
  --primary-dark: #3f7fd1;
  --secondary-color: #4361ee;
  --accent-color: #3f37c9;
  --accent-light: #5a51d6;
  --text-color: #f8f9fa;
  --text-light: #adb5bd;
  --light-text: #f8f9fa;
  --bg-color: #121212;
  --bg-light: #1e1e1e;
  --card-bg: #1e1e1e;
  --card-dark: #2d2d2d;
  --nav-bg: rgba(30, 30, 30, 0.95);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
}

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 20px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  gap: 8px;
}

.btn i {
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.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(-2px);
  box-shadow: var(--shadow-lg);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--nav-bg);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links ul {
  display: flex;
}

.nav-links ul li {
  margin-left: 30px;
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle i {
  font-size: 1.1rem;
  color: var(--text-color);
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: rotate(15deg);
}

.mobile-theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  transition: var(--transition);
}

.mobile-theme-toggle i {
  font-size: 1.1rem;
  color: var(--text-color);
  transition: var(--transition);
}

.mobile-theme-toggle:hover {
  transform: rotate(15deg);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 70px);
  background-color: var(--bg-color);
  z-index: 999;
  transition: var(--transition);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu ul {
  margin-top: 30px;
}

.mobile-menu ul li {
  margin-bottom: 20px;
}

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 500;
  position: relative;
}

.mobile-nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.mobile-nav-link:hover::after,
.mobile-nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 0 0 50px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  padding-right: 40px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
  color: var(--text-light);
}

.cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image .profile-pic {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-light);
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--secondary-color);
  border-right: 2px solid var(--secondary-color);
  transform: rotate(45deg);
  margin: 0 auto;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Stats Section */
.stats {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-card {
  padding: 30px 20px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
}

.about-image .about-pic {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.skills {
  margin-top: 40px;
}

.skills h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.skill-tags span {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.skill-tags span:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.resume-download {
  margin-top: 30px;
}

/* Portfolio Section */
.portfolio {
  padding: 100px 0;
  background-color: var(--card-bg);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  overflow: hidden;
  border-radius: var(--border-radius);
  position: relative;
}

.portfolio-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(67, 97, 238, 0.9);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
  text-align: center;
}

.portfolio-overlay h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.portfolio-overlay p {
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.portfolio-link {
  padding: 8px 20px;
  background-color: white;
  color: var(--primary-color);
  border-radius: 20px;
  font-weight: 500;
  transition: var(--transition);
}

.portfolio-link:hover {
  background-color: var(--bg-color);
  transform: translateY(-2px);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.view-all {
  text-align: center;
  margin-top: 50px;
}

/* Blog Section */
.blog {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.blog-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 8px 20px;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.category-btn.active,
.category-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.blog-card.featured {
  grid-column: span 2;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.blog-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 1;
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

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

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

.blog-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.blog-category {
  color: var(--primary-color);
  font-weight: 500;
}

.blog-content h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.blog-content p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* YouTube Section */
.youtube {
  padding: 100px 0;
  background-color: var(--card-bg);
}

.video-featured {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
}

.video-player {
  flex: 2;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-player iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

.video-info {
  flex: 1;
}

.video-info h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.video-meta {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.video-info p {
  margin-bottom: 30px;
  color: var(--text-light);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.video-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.video-thumbnail {
  position: relative;
  height: 180px;
  overflow: hidden;
}

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

.video-card:hover .video-thumbnail img {
  transform: scale(1.1);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.video-card:hover .play-icon {
  opacity: 1;
}

.play-icon i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.video-info {
  padding: 15px;
}

.video-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.video-meta {
  color: var(--text-light);
  font-size: 0.9rem;
}

.channel-cta {
  text-align: center;
  margin-top: 50px;
}

.channel-cta p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: none;
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.quote-icon {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
}

.testimonial-content p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 30px;
  color: var(--text-light);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-info h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.author-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 20px;
}

.testimonial-prev,
.testimonial-next {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
  color: var(--primary-dark);
}

.testimonial-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--card-dark);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
}

/* Clients Section */
.clients {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.client-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
  max-width: 150px;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.client-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 30px;
  color: var(--text-light);
}

.contact-details {
  margin: 30px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  gap: 15px;
}

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

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-item a {
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary-color);
}

.social-links h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: var(--card-bg);
  color: var(--text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  flex: 1;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--card-dark);
  border-radius: var(--border-radius);
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  color: #e63946;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.form-message {
  margin-top: 20px;
  padding: 10px;
  border-radius: var(--border-radius);
  display: none;
}

.form-message.success {
  background-color: rgba(56, 163, 165, 0.1);
  color: #38a3a5;
  display: block;
}

.form-message.error {
  background-color: rgba(230, 57, 70, 0.1);
  color: #e63946;
  display: block;
}

.loading-icon {
  display: none;
}

/* Footer */
.footer {
  padding: 80px 0 30px;
  background-color: var(--nav-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-about p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: var(--bg-color);
  color: var(--text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary-color);
  color: white;
}

.footer-links h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.footer-contact ul li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
}

.footer-contact i {
  color: var(--primary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--card-dark);
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--text-light);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--primary-color);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
  border: none;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.scroll-to-top i {
  font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .video-featured {
    flex-direction: column;
  }

  .video-player {
    width: 100%;
  }

  .blog-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 50px;
  }

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

  .about-content {
    flex-direction: column;
  }

  .contact-content {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .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);
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .about,
  .blog,
  .youtube,
  .contact {
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid,
  .blog-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-image .profile-pic {
    width: 300px;
    height: 300px;
  }

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

  .section-title::after {
    width: 60px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 30px 20px;
  }

  .newsletter-form {
    flex-direction: column;
  }
}
