/*
Theme Name: Saikat Portfolio
Description: A fully customizable portfolio theme with WordPress Customizer integration
Author: Saikat Dutta
Version: 1.0
Text Domain: saikat-portfolio
*/

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --dark: #2f2e35;
  --dark-alt: #34343b;
  --accent: #c19521;
  --light: #ffffff;
  --gray: #a0a0a0;
  --gradient: linear-gradient(135deg, #c19521 0%, #d4af37 100%);
  --gradient-dark: linear-gradient(135deg, #2f2e35 0%, #34343b 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--light);
  line-height: 1.6;
  background-color: var(--dark);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 100px 0;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  transition: width 0.5s ease;
}

h2:hover:after {
  width: 120px;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 20px;
  color: var(--gray);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--gradient);
  color: var(--light);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--dark);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn:hover:before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(193, 149, 33, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:before {
  background: var(--accent);
}

.btn-outline:hover {
  color: var(--light);
}

/* Header Styles */
header {
  background-color: rgba(47, 46, 53, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

header.scrolled {
  background-color: rgba(47, 46, 53, 0.98);
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light);
  text-decoration: none;
  position: relative;
}

.logo:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: width 0.4s ease;
}

.logo:hover:after {
  width: 100%;
}

.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: var(--light);
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
}

nav ul li a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

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

nav ul li a:hover {
  color: var(--accent);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: var(--light);
}

.mobile-menu:hover {
  transform: scale(1.1);
  color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(193, 149, 33, 0.1) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  animation: float 20s linear infinite;
  opacity: 0.5;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-100px, -100px) rotate(360deg);
  }
}

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

.hero-text {
  flex: 1;
  padding-right: 50px;
  animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--light);
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text h2 {
  font-size: 1.8rem;
  text-align: left;
  margin-bottom: 30px;
  color: var(--light);
}

.hero-text h2:after {
  left: 0;
  transform: none;
}

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

.social-links {
  margin: 30px 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  width: 40px;
  height: 40px;
  background: var(--gradient);
  color: var(--light);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Resume button inline with socials */
.social-links .resume-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 40px;
  padding: 0 14px;
  margin-left: 10px;
  border-radius: 20px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}
.social-links .resume-btn i {
  margin-right: 8px;
  font-size: 1rem;
}
.social-links .resume-btn:hover {
  background: var(--gradient);
  color: var(--light);
  border-color: transparent;
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(193, 149, 33, 0.3);
}

.hero-image {
  flex: 1;
  text-align: center;
  animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image .profile-container {
  width: 350px;
  height: 350px;
  margin: 0 auto;
  position: relative;
}

.hero-image .profile-shape {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: morph 8s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border: 5px solid var(--accent);
}

.profile-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-image {
  transition: all 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

.profile-status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--gradient);
  color: var(--light);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 2px 20px rgba(193, 149, 33, 0.5);
  }
  100% {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* Services Section */
.services {
  background-color: var(--dark-alt);
  position: relative;
}

.services:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,70 Q50,90 100,70 L100,100 L0,100 Z" fill="rgba(193, 149, 33, 0.05)"/></svg>');
  background-size: cover;
  z-index: 0;
}

.services .container {
  position: relative;
  z-index: 1;
}

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

.service-card {
  background-color: var(--dark);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--gradient);
  transition: all 0.4s ease;
  z-index: -1;
}

.service-card:hover:before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  color: var(--light);
  border-color: transparent;
}

.service-card:hover p,
.service-card:hover h3,
.service-card:hover .service-icon {
  color: var(--light);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.service-card h3 {
  margin-bottom: 15px;
  transition: all 0.4s ease;
  color: var(--light);
}

.service-card p {
  transition: all 0.4s ease;
}

.project-count {
  display: block;
  margin-top: 15px;
  font-weight: 700;
  color: var(--accent);
  transition: all 0.4s ease;
}

.service-card:hover .project-count {
  color: var(--light);
}

/* Stats Section */
.stats {
  background: var(--gradient-dark);
  color: var(--light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,30 Q50,10 100,30 L100,100 L0,100 Z" fill="rgba(193, 149, 33, 0.05)"/></svg>');
  background-size: cover;
}

.stats h2 {
  color: var(--light);
  position: relative;
  z-index: 1;
}

.stats h2:after {
  background: var(--gradient);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-item {
  width: 100%;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
}

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

/* Portfolio Section */
.portfolio {
  background-color: var(--dark);
  position: relative;
}

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

.filter-btn {
  padding: 10px 25px;
  margin: 0 10px 10px;
  background: transparent;
  border: 2px solid var(--gray);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.4s ease;
  font-weight: 600;
  color: var(--gray);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient);
  border-color: transparent;
  color: var(--light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(193, 149, 33, 0.3);
}

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

.portfolio-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  background-color: var(--dark-alt);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.portfolio-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 46, 53, 0.8);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1;
}

.portfolio-item:hover:before {
  opacity: 0.9;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.portfolio-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  background-color: #4a4a52;
}

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

.portfolio-content {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.portfolio-content h3 {
  margin-bottom: 10px;
  color: var(--light);
}

.portfolio-content p {
  color: var(--gray);
}

.portfolio-more {
  text-align: center;
  margin-top: 30px;
}

.show-more-btn {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.show-more-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--gradient);
  transition: all 0.4s ease;
  z-index: -1;
}

.show-more-btn:hover:before {
  width: 100%;
}

.show-more-btn:hover {
  color: var(--light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(193, 149, 33, 0.3);
}

.portfolio-items-hidden {
  display: none;
}

/* Blog Section */
.blog {
  background-color: var(--dark-alt);
  position: relative;
}

.blog:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 Q50,20 100,0 L100,100 L0,100 Z" fill="rgba(193, 149, 33, 0.03)"/></svg>');
  background-size: cover;
  z-index: 0;
}

.blog .container {
  position: relative;
  z-index: 1;
}

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

.blog-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  background-color: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.blog-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  background-color: #5a5a62;
}

.blog-card:hover .blog-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(--gray);
}

.blog-content h3 {
  margin-bottom: 15px;
  transition: color 0.3s ease;
  color: var(--light);
}

.blog-card:hover .blog-content h3 {
  color: var(--accent);
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.read-more:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.read-more:hover:after {
  width: 100%;
}

.blog-more {
  text-align: center;
  margin-top: 30px;
}

.blog-items-hidden {
  display: none;
}

/* Contact Section */
.contact {
  background-color: var(--dark);
  position: relative;
}

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

.contact-info {
  flex: 1;
}

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

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

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px;
  background: var(--dark-alt);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem;
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--light);
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--dark-alt);
  color: var(--light);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193, 149, 33, 0.2);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
}
.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer */
footer {
  background: var(--dark-alt);
  color: var(--light);
  padding: 70px 0 20px;
  position: relative;
}
/* Footer site name color primary */
footer .footer-about h3 {
  color: var(--accent);
}

footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,20 L100,100 L0,100 Z" fill="rgba(0,0,0,0.1)"/></svg>');
  background-size: cover;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-about {
  flex: 2;
  padding-right: 50px;
}

.footer-links {
  flex: 1;
}

.footer-links h3 {
  margin-bottom: 20px;
  color: var(--light);
}

.footer-links ul {
  list-style: none;
}

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

.footer-links ul li a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  padding-left: 15px;
}

.footer-links ul li a:before {
  content: "›";
  position: absolute;
  left: 0;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.footer-links ul li a:hover {
  color: var(--accent);
}

.footer-links ul li a:hover:before {
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  color: var(--gray);
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Loading animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

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

  .hero-text {
    padding-right: 0;
    margin-bottom: 50px;
    text-align: center;
  }

  .hero-text h2:after {
    left: 50%;
    transform: translateX(-50%);
  }

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

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

  .footer-about {
    padding-right: 0;
    margin-bottom: 30px;
  }

  /* Center hero and cards on tablets/mobiles */
  .hero-text,
  .footer-content,
  .footer-bottom {
    text-align: center;
  }
  .hero-text .btn,
  .hero-text .btn-outline,
  .social-links {
    margin-left: auto;
    margin-right: auto;
  }
  .services-grid,
  .stats-grid,
  .portfolio-grid,
  .blog-grid {
    justify-items: center;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  .mobile-menu {
    display: block;
  }

  /* Move mobile menu icon to the right */
  .header-container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .mobile-menu {
    justify-self: end;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-image .profile-container {
    width: 280px;
    height: 280px;
  }

  .social-links .resume-btn {
    margin-top: 20px !important;
  }
	
  .hero-text h2 {
    text-align: center;
  }
}

@media (max-width: 576px) {
  section {
    padding: 70px 0;
  }

  .hero {
    padding: 140px 0 80px;
  }

  /* Disable hero float/scroll effects on small screens */
  .hero:before {
    animation: none;
  }
  .hero {
    transform: none !important;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

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

  .hero-image .profile-container {
    width: 250px;
    height: 250px;
  }

  .social-links .resume-btn {
    margin-top: 30px !important;
  }
}

/* WordPress specific styles */
.wp-block-image {
  margin: 0;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Customizer live preview styles */
.customize-partial-edit-shortcut {
  position: relative;
}

.customize-partial-edit-shortcut button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  z-index: 1000;
}
