/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #e3f0ff 0%, #f8fafd 100%);
    min-height: 100vh;
    font-family: 'Poppins', Arial, sans-serif;
    transition: background 0.6s;
}

section {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 8px 32px 0 rgba(123,182,234,0.10);
    border-radius: 22px;
    margin: 2.5rem 0;
    padding: 2.5rem 1.5rem;
    transition: box-shadow 0.4s, background 0.4s;
    backdrop-filter: blur(8px);
    animation: fadeInSection 1.2s;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- New Animations --- */
@keyframes fadeInUpCard {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes cardLift {
  0% { transform: translateY(0) scale(1); box-shadow: 0 2px 12px 0 rgba(64,98,187,0.08); }
  100% { transform: translateY(-10px) scale(1.04); box-shadow: 0 8px 32px 0 rgba(64,98,187,0.18); }
}
@keyframes floatProfile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes glowBorder {
  0% { box-shadow: 0 0 0 0 #5dade2; }
  70% { box-shadow: 0 0 12px 4px #5dade2; }
  100% { box-shadow: 0 0 0 0 #5dade2; }
}

/* --- Attractive Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes cardHoverLift {
  0% { transform: translateY(0) scale(1); box-shadow: 0 2px 12px 0 rgba(64,98,187,0.08); }
  100% { transform: translateY(-10px) scale(1.04); box-shadow: 0 8px 32px 0 rgba(64,98,187,0.18); }
}
@keyframes floatProfile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes glowingBorder {
  0% { box-shadow: 0 0 0 0 #5dade2; }
  70% { box-shadow: 0 0 12px 4px #5dade2; }
  100% { box-shadow: 0 0 0 0 #5dade2; }
}

/* Section fade-in on scroll */
section, .footer-content, .project-card, .blog-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
section.visible, .footer-content.visible, .project-card.visible, .blog-card.visible {
  opacity: 1;
  transform: none;
  animation: fadeInUp 1.1s cubic-bezier(.4,0,.2,1);
}

/* --- Color Consistency Improvements (Key Selectors) --- */
:root {
  --background: #e9eef6;
  --section-bg: #f7f9fa;
  --accent-color: #4062bb;
  --accent-color-hover: #5dade2;
  --text-color: #232946;
  --text-secondary: #6c7a89;
  --card-bg: #fff;
  --highlight: #ffd700;
}

body {
  background: linear-gradient(135deg, var(--background) 0%, var(--section-bg) 100%);
  color: var(--text-color);
}

section, .about, .skills, .projects, .blog, .services, .reviews, .contact {
  background: var(--section-bg);
  color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--accent-color);
}

a, .nav-links a, .simple-footer-links a {
  color: var(--accent-color);
  transition: color 0.2s;
}
a:hover, .nav-links a:hover, .simple-footer-links a:hover {
  color: var(--highlight);
}

.cta-button, button.cta-button {
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--highlight) 100%);
  color: #fff;
  border: none;
}
.cta-button.secondary {
  background: #fff;
  color: var(--accent-color);
  border: 2px solid var(--highlight);
}

footer, .simple-footer {
  background: linear-gradient(90deg, #232946 0%, var(--accent-color) 100%);
  color: #fff;
}
.simple-footer-title {
  color: var(--highlight);
}
.simple-footer-social a {
  color: var(--highlight);
}
.simple-footer-social a:hover {
  color: #fff;
}

/* Professional Blue/Navy/Gray Color Palette */
:root {
    --background: #e5e9f2;
    --section-bg: #f7f9fb;
    --accent-color: #4062bb;
    --accent-color-hover: #5dade2;
    --text-color: #1a2236;
    --text-secondary: #6c7a89;
    --card-bg: #ffffff;
    --glass-bg: rgba(229, 233, 242, 0.7);
    --border-color: #cfd8e8;
    --button-bg: #4062bb;
    --button-bg-hover: #5dade2;
    --button-text: #ffffff;
    --highlight: #ffd700;
}

/* Enhanced Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--section-bg);
    box-shadow: 0 2px 12px 0 rgba(123,182,234,0.08);
}

.navbar .logo {
    font-size: 2rem;
    font-weight: bold;
    color: #764ba2;
}

.navbar .logo .highlight {
    color: #ffd700;
}

/* Enhanced Navbar Styles */
.enhanced-navbar {
    background: linear-gradient(90deg, #1a2236 0%, #4062bb 100%);
    box-shadow: 0 4px 16px rgba(26,34,54,0.08);
    border-bottom: 2px solid var(--highlight);
    padding: 1.2rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}
.enhanced-navbar .logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.enhanced-navbar .logo .highlight {
    color: var(--highlight);
    font-weight: bold;
}
.enhanced-navbar .nav-links li a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
    position: relative;
    overflow: hidden;
}
.enhanced-navbar .nav-links li a::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--highlight) 0%, #4062bb 100%);
    transition: width 0.3s, left 0.3s;
}
.enhanced-navbar .nav-links li a:hover::after, .enhanced-navbar .nav-links li a.active::after {
    width: 100%;
    left: 0;
}
.enhanced-navbar .nav-links li a:hover, .enhanced-navbar .nav-links li a.active {
    background: var(--highlight);
    color: #1a2236;
}
.enhanced-navbar .menu-btn {
    color: #fff;
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: #2c3e50;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #3498db;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Enhanced Hero Section */
.enhanced-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background: linear-gradient(135deg, #1a2236 0%, #4062bb 100%);
    color: #fff;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 8px 32px #764ba222;
    margin-bottom: 2rem;
    padding: 2rem 1rem 4rem 1rem;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 500px;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-content .hero-subtitle {
    font-size: 1.5rem;
    color: var(--highlight);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-content .cta-button {
    background: linear-gradient(90deg, var(--highlight) 0%, #ffe066 100%);
    color: #1a2236;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    padding: 0.9rem 2.2rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px #ffd70033;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background: #fff;
    color: #764ba2;
    transform: translateY(-2px) scale(1.04);
}

.cta-button.secondary {
    background: #fff;
    color: #4062bb;
    border: 2px solid var(--highlight);
}

.cta-button.secondary:hover {
    background: var(--highlight);
    color: #1a2236;
}

/* Hero image frame and upload enhancements */
.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.hero-img-frame {
    background: linear-gradient(135deg, #4062bb 0%, #ffd700 100%);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 6px 32px 0 rgba(64,98,187,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    margin-bottom: 0.5rem;
}
.profile-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 12px 0 rgba(64,98,187,0.10);
    background: #f7f9fb;
}
.hero-img-upload {
    text-align: center;
}
.upload-label {
    display: inline-block;
    background: #4062bb;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.2rem;
}
.upload-label:hover {
    background: #ffd700;
    color: #4062bb;
}

/* --- Proportional Layout & Alignment Improvements --- */
/* About Section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #23294618;
  padding: 2.2rem 1.5rem 2.2rem 1.5rem;
}
.about-text {
  flex: 1 1 340px;
  font-size: 1.08rem;
  color: var(--text, #232946);
  line-height: 1.7;
  letter-spacing: 0.01em;
  padding-right: 1.2rem;
  text-align: left;
}
.education-section, .personal-info {
  margin: 1.5rem 0 0.5rem 0;
  background: #f0f4fa;
  border-radius: 12px;
  padding: 1.1rem 1rem 1rem 1.1rem;
  box-shadow: 0 2px 12px #4062bb11;
  text-align: left;
}
.education-section h3, .personal-info h3 {
  font-size: 1.1rem;
  color: #4062bb;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.education-item h4 {
  font-size: 1.05rem;
  color: #232946;
  margin-bottom: 0.2rem;
}
.personal-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.personal-info li {
  margin-bottom: 0.6rem;
  font-size: 1.01rem;
  color: #232946;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.personal-info li i {
  color: #4062bb;
  font-size: 1.05rem;
  min-width: 20px;
}
.personal-info li a {
  color: #4062bb;
  text-decoration: underline dotted;
  transition: color 0.2s;
}
.personal-info li a:hover {
  color: #232946;
}

/* Skills Section */
.skills {
  background: linear-gradient(120deg, #f7f9fa 0%, #e9eef6 100%);
  padding: 70px 0 40px 0;
  text-align: center;
}
.skills h2 {
  font-size: 2.2rem;
  margin-bottom: 2.2rem;
  color: var(--primary, #232946);
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
  max-width: 700px;
  margin: 0 auto;
}
.skill-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 #2329460d;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  min-width: 180px;
  max-width: 220px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.skill-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 32px 0 #23294622;
}
.skill-card i {
  font-size: 2.1rem;
  color: #4062bb;
  margin-bottom: 0.7rem;
}
.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #232946;
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9eef6;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 0.3rem;
}
.progress {
  height: 100%;
  background: linear-gradient(90deg, #4062bb 60%, #ffd700 100%);
  border-radius: 6px;
  width: 0;
  transition: width 1.2s cubic-bezier(.77,0,.18,1);
}

@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    padding: 1.5rem 0.7rem;
  }
  .about-text {
    padding-right: 0;
  }
  .skills-grid {
    flex-direction: column;
    gap: 1.2rem;
  }
}

/* --- Deprecated Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1s forwards;
}

/* --- Enhanced Home Section Animations --- */
.hero-content h1, .hero-content .hero-subtitle, .hero-content .cta-button {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-content h1 { animation-delay: 0.2s; }
.hero-content .hero-subtitle { animation-delay: 0.5s; }
.hero-content .cta-button:first-of-type { animation-delay: 0.8s; }
.hero-content .cta-button.secondary { animation-delay: 1.1s; }

.hero-img-frame {
  animation: popIn 1.2s cubic-bezier(.4,0,.2,1) 0.6s both;
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.7) rotate(-10deg); }
  60% { opacity: 1; transform: scale(1.05) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.profile-img {
  animation: floatProfile 3.5s ease-in-out infinite;
  box-shadow: 0 8px 32px 0 rgba(64,98,187,0.18), 0 0 0 0 #ffd700;
  transition: box-shadow 0.4s;
}
.profile-img:hover {
  box-shadow: 0 8px 32px 0 #ffd70099, 0 0 24px 8px #ffd70044;
  animation-play-state: paused;
}

.hero-img-frame {
  transition: box-shadow 0.4s, transform 0.4s;
}
.hero-img-frame:hover {
  box-shadow: 0 0 0 8px #ffd70044, 0 8px 32px 0 #4062bb33;
  transform: scale(1.04) rotate(2deg);
}

/* Animated background shapes for hero section */
.hero-bg-animated {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-animated span {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.18;
  animation: heroBgFloat 8s ease-in-out infinite;
}
.hero-bg-animated .shape1 {
  width: 120px; height: 120px; background: #4062bb;
  left: 8%; top: 18%; animation-delay: 0s;
}
.hero-bg-animated .shape2 {
  width: 80px; height: 80px; background: #ffd700;
  left: 70%; top: 10%; animation-delay: 2s;
}
.hero-bg-animated .shape3 {
  width: 60px; height: 60px; background: #5dade2;
  left: 40%; top: 70%; animation-delay: 4s;
}
.hero-bg-animated .shape4 {
  width: 100px; height: 100px; background: #232946;
  left: 80%; top: 60%; animation-delay: 1.5s;
}
.hero-bg-animated .shape5 {
  width: 50px; height: 50px; background: #fff;
  left: 20%; top: 80%; animation-delay: 3.5s;
}
@keyframes heroBgFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
}

/* --- Animated Real Star Shape --- */
.hero-bg-animated .star {
  position: absolute;
  width: 18px;
  height: 18px;
  background: none;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
  animation: twinkle 2.5s linear infinite, starMove 12s linear infinite;
}
.hero-bg-animated .star::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: none;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  background: linear-gradient(180deg, #fff 70%, #ffd700 100%);
  box-shadow: 0 0 8px 2px #fff7, 0 0 16px 4px #ffd70055;
  display: block;
}

/* Keep the rest of the star animation and positioning as before */
.hero-bg-animated .star:nth-child(1)  { left: 5%;  top: 10%;  animation-delay: 0s; }
.hero-bg-animated .star:nth-child(2)  { left: 15%; top: 30%;  animation-delay: 1s; }
.hero-bg-animated .star:nth-child(3)  { left: 25%; top: 20%;  animation-delay: 2s; }
.hero-bg-animated .star:nth-child(4)  { left: 35%; top: 40%;  animation-delay: 0.5s; }
.hero-bg-animated .star:nth-child(5)  { left: 45%; top: 15%;  animation-delay: 1.5s; }
.hero-bg-animated .star:nth-child(6)  { left: 55%; top: 35%;  animation-delay: 2.5s; }
.hero-bg-animated .star:nth-child(7)  { left: 65%; top: 25%;  animation-delay: 0.8s; }
.hero-bg-animated .star:nth-child(8)  { left: 75%; top: 45%;  animation-delay: 1.8s; }
.hero-bg-animated .star:nth-child(9)  { left: 85%; top: 20%;  animation-delay: 2.8s; }
.hero-bg-animated .star:nth-child(10) { left: 95%; top: 30%;  animation-delay: 0.3s; }
.hero-bg-animated .star:nth-child(11) { left: 10%; top: 60%;  animation-delay: 1.3s; }
.hero-bg-animated .star:nth-child(12) { left: 20%; top: 80%;  animation-delay: 2.3s; }
.hero-bg-animated .star:nth-child(13) { left: 30%; top: 70%;  animation-delay: 0.7s; }
.hero-bg-animated .star:nth-child(14) { left: 40%; top: 90%;  animation-delay: 1.7s; }
.hero-bg-animated .star:nth-child(15) { left: 50%; top: 60%;  animation-delay: 2.7s; }
.hero-bg-animated .star:nth-child(16) { left: 60%; top: 80%;  animation-delay: 0.2s; }
.hero-bg-animated .star:nth-child(17) { left: 70%; top: 70%;  animation-delay: 1.2s; }
.hero-bg-animated .star:nth-child(18) { left: 80%; top: 90%;  animation-delay: 2.2s; }
.hero-bg-animated .star:nth-child(19) { left: 90%; top: 60%;  animation-delay: 0.9s; }
.hero-bg-animated .star:nth-child(20) { left: 98%; top: 80%;  animation-delay: 1.9s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.85; filter: brightness(1); }
  50% { opacity: 0.3; filter: brightness(0.7); }
}
@keyframes starMove {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.15); }
  100% { transform: translateY(0) scale(1); }
}

/* Remove old shape styles if not used */
.hero-bg-animated .shape1,
.hero-bg-animated .shape2,
.hero-bg-animated .shape3,
.hero-bg-animated .shape4,
.hero-bg-animated .shape5 {
  display: none !important;
}

/* Scroll To Top Button Enhancements */
#scrollToTopBtn {
    display: flex !important;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    background: linear-gradient(135deg, #4062bb 0%, #5dade2 100%);
    color: #fff;
    border-radius: 50%;
    border: 2px solid #4062bb;
    box-shadow: 0 4px 24px 0 rgba(123,182,234,0.18);
    font-size: 1.6rem;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    animation: pulseBtn 1.5s infinite;
}
@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(123,182,234,0.18); }
    70% { box-shadow: 0 0 0 12px rgba(123,182,234,0.08); }
    100% { box-shadow: 0 0 0 0 rgba(123,182,234,0.18); }
}
#scrollToTopBtn:hover {
    background: linear-gradient(135deg, #5dade2 0%, #4062bb 100%);
    color: var(--highlight);
}

/* Logo Styles */
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #fff;
    border: 2px solid #ffd700;
    object-fit: cover;
    display: inline-block;
    animation: logoBounce 2s infinite alternate;
}

@keyframes logoBounce {
    0% { transform: translateY(0) scale(1); }
    60% { transform: translateY(-8px) scale(1.08); }
    100% { transform: translateY(0) scale(1); }
}

.animated-logo {
    transition: transform 0.3s;
}

.animated-logo:hover {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 4px 16px #ffd70044;
}

/* Subtle fade-in animation for sections */
section, .footer-content {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.2s;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Animated floating icons background */
.animated-bg-icons {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.animated-bg-icons i {
    position: absolute;
    font-size: 3rem;
    opacity: 0.13;
    color: #7bb6ea;
    filter: blur(0.5px);
    animation: floatIcons 8s ease-in-out infinite;
}
@keyframes floatIcons {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* Ensure main content is above icons */
body > *:not(.animated-bg-icons) {
    position: relative;
    z-index: 1;
}

/* Education and Personal Info Sections */
.education-section, .personal-info {
    background: rgba(232, 244, 255, 0.6);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(123,182,234,0.08);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.education-section h3, .personal-info h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.education-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.education-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.education-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.personal-info ul {
    list-style: none;
    padding: 0;
}

.personal-info li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.personal-info li i {
    margin-right: 1rem;
    color: var(--accent-color);
    width: 20px;
}

.personal-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.personal-info a:hover {
    color: var(--accent-color-hover);
}

/* Blog/Articles Section */
.blog {
    margin: 2.5rem 0;
    padding: 2.5rem 1.5rem;
    background: var(--section-bg, #f4f8fb);
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(123,182,234,0.10);
}
.blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.blog-card {
    background: var(--card-bg, #fafdff);
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(123,182,234,0.08);
    padding: 1.5rem 1.2rem;
    max-width: 340px;
    min-width: 260px;
    flex: 1 1 300px;
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1.5px solid var(--border-color, #dbeafe);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.blog-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(123,182,234,0.18);
}
.blog-card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color, #7bb6ea);
    font-size: 1.25rem;
}
.blog-date {
    font-size: 0.9rem;
    color: var(--text-secondary, #6c7a89);
    margin-bottom: 0.7rem;
}
.blog-excerpt {
    color: var(--text-color, #2a3a4b);
    margin-bottom: 1.2rem;
}
.blog-link {
    color: var(--accent-color, #7bb6ea);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.blog-link:hover {
    color: var(--accent-color-hover, #5a9bd8);
    text-decoration: underline;
}

/* --- Services Section --- */
.services {
  padding: 70px 0 40px 0;
  background: var(--section-bg, #f7f9fa);
  text-align: center;
}
.services h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: var(--primary, #232946);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: var(--card-bg, #fff);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #2329460d;
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px 0 #23294622;
}
.service-card i {
  font-size: 2.2rem;
  color: var(--accent, #4062bb);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--primary, #232946);
}
.service-card p {
  color: var(--text, #555);
  font-size: 1rem;
}

/* --- Reviews Section --- */
.reviews {
  padding: 70px 0 40px 0;
  background: var(--section-bg-alt, #e9eef6);
  text-align: center;
}
.reviews h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: var(--primary, #232946);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.review-card {
  background: var(--card-bg, #fff);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #2329460d;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.review-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 #23294622;
}
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.reviewer-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent, #4062bb);
  box-shadow: 0 2px 8px #23294622;
}
.review-rating {
  color: #ffd700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.review-text {
  color: var(--text, #444);
  font-size: 1.08rem;
  font-style: italic;
}

/* --- About Section Enhancements --- */
.about {
  background: linear-gradient(120deg, #e9eef6 0%, #f7f9fa 100%);
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
}
.about h2 {
  text-align: center;
  font-size: 2.7rem;
  color: var(--primary, #232946);
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
  font-weight: 700;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #23294618;
  padding: 2.2rem 1.5rem 2.2rem 1.5rem;
}
.about-text {
  flex: 1 1 340px;
  font-size: 1.08rem;
  color: var(--text, #232946);
  line-height: 1.7;
  letter-spacing: 0.01em;
  padding-right: 1.2rem;
  text-align: left;
}
.education-section, .personal-info {
  margin: 1.5rem 0 0.5rem 0;
  background: #f0f4fa;
  border-radius: 12px;
  padding: 1.1rem 1rem 1rem 1.1rem;
  box-shadow: 0 2px 12px #4062bb11;
  text-align: left;
}
.education-section h3, .personal-info h3 {
  font-size: 1.1rem;
  color: #4062bb;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.education-item h4 {
  font-size: 1.05rem;
  color: #232946;
  margin-bottom: 0.2rem;
}
.personal-info ul {
  list-style: none;
  padding: 0;
}

.personal-info li {
  margin-bottom: 0.6rem;
  font-size: 1.01rem;
  color: #232946;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.personal-info li i {
  color: #4062bb;
  font-size: 1.05rem;
  min-width: 20px;
}
.personal-info li a {
  color: #4062bb;
  text-decoration: underline dotted;
  transition: color 0.2s;
}
.personal-info li a:hover {
  color: #232946;
}

/* Skills Section */
.skills {
  background: linear-gradient(120deg, #f7f9fa 0%, #e9eef6 100%);
  padding: 70px 0 40px 0;
  text-align: center;
}
.skills h2 {
  font-size: 2.2rem;
  margin-bottom: 2.2rem;
  color: var(--primary, #232946);
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
  max-width: 700px;
  margin: 0 auto;
}
.skill-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 #2329460d;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  min-width: 180px;
  max-width: 220px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.skill-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 32px 0 #23294622;
}
.skill-card i {
  font-size: 2.1rem;
  color: #4062bb;
  margin-bottom: 0.7rem;
}
.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #232946;
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9eef6;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 0.3rem;
}
.progress {
  height: 100%;
  background: linear-gradient(90deg, #4062bb 60%, #ffd700 100%);
  border-radius: 6px;
  width: 0;
  transition: width 1.2s cubic-bezier(.77,0,.18,1);
}

@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    padding: 1.5rem 0.7rem;
  }
  .about-text {
    padding-right: 0;
  }
  .skills-grid {
    flex-direction: column;
    gap: 1.2rem;
  }
}

/* --- Deprecated Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1s forwards;
}

/* --- Enhanced Home Section Animations --- */
.hero-content h1, .hero-content .hero-subtitle, .hero-content .cta-button {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-content h1 { animation-delay: 0.2s; }
.hero-content .hero-subtitle { animation-delay: 0.5s; }
.hero-content .cta-button:first-of-type { animation-delay: 0.8s; }
.hero-content .cta-button.secondary { animation-delay: 1.1s; }

.hero-img-frame {
  animation: popIn 1.2s cubic-bezier(.4,0,.2,1) 0.6s both;
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.7) rotate(-10deg); }
  60% { opacity: 1; transform: scale(1.05) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.profile-img {
  animation: floatProfile 3.5s ease-in-out infinite;
  box-shadow: 0 8px 32px 0 rgba(64,98,187,0.18), 0 0 0 0 #ffd700;
  transition: box-shadow 0.4s;
}
.profile-img:hover {
  box-shadow: 0 8px 32px 0 #ffd70099, 0 0 24px 8px #ffd70044;
  animation-play-state: paused;
}

.hero-img-frame {
  transition: box-shadow 0.4s, transform 0.4s;
}
.hero-img-frame:hover {
  box-shadow: 0 0 0 8px #ffd70044, 0 8px 32px 0 #4062bb33;
  transform: scale(1.04) rotate(2deg);
}

/* Animated background shapes for hero section */
.hero-bg-animated {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-animated span {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.18;
  animation: heroBgFloat 8s ease-in-out infinite;
}
.hero-bg-animated .shape1 {
  width: 120px; height: 120px; background: #4062bb;
  left: 8%; top: 18%; animation-delay: 0s;
}
.hero-bg-animated .shape2 {
  width: 80px; height: 80px; background: #ffd700;
  left: 70%; top: 10%; animation-delay: 2s;
}
.hero-bg-animated .shape3 {
  width: 60px; height: 60px; background: #5dade2;
  left: 40%; top: 70%; animation-delay: 4s;
}
.hero-bg-animated .shape4 {
  width: 100px; height: 100px; background: #232946;
  left: 80%; top: 60%; animation-delay: 1.5s;
}
.hero-bg-animated .shape5 {
  width: 50px; height: 50px; background: #fff;
  left: 20%; top: 80%; animation-delay: 3.5s;
}
@keyframes heroBgFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
}

/* --- Animated Real Star Shape --- */
.hero-bg-animated .star {
  position: absolute;
  width: 18px;
  height: 18px;
  background: none;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
  animation: twinkle 2.5s linear infinite, starMove 12s linear infinite;
}
.hero-bg-animated .star::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: none;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  background: linear-gradient(180deg, #fff 70%, #ffd700 100%);
  box-shadow: 0 0 8px 2px #fff7, 0 0 16px 4px #ffd70055;
  display: block;
}

/* Keep the rest of the star animation and positioning as before */
.hero-bg-animated .star:nth-child(1)  { left: 5%;  top: 10%;  animation-delay: 0s; }
.hero-bg-animated .star:nth-child(2)  { left: 15%; top: 30%;  animation-delay: 1s; }
.hero-bg-animated .star:nth-child(3)  { left: 25%; top: 20%;  animation-delay: 2s; }
.hero-bg-animated .star:nth-child(4)  { left: 35%; top: 40%;  animation-delay: 0.5s; }
.hero-bg-animated .star:nth-child(5)  { left: 45%; top: 15%;  animation-delay: 1.5s; }
.hero-bg-animated .star:nth-child(6)  { left: 55%; top: 35%;  animation-delay: 2.5s; }
.hero-bg-animated .star:nth-child(7)  { left: 65%; top: 25%;  animation-delay: 0.8s; }
.hero-bg-animated .star:nth-child(8)  { left: 75%; top: 45%;  animation-delay: 1.8s; }
.hero-bg-animated .star:nth-child(9)  { left: 85%; top: 20%;  animation-delay: 2.8s; }
.hero-bg-animated .star:nth-child(10) { left: 95%; top: 30%;  animation-delay: 0.3s; }
.hero-bg-animated .star:nth-child(11) { left: 10%; top: 60%;  animation-delay: 1.3s; }
.hero-bg-animated .star:nth-child(12) { left: 20%; top: 80%;  animation-delay: 2.3s; }
.hero-bg-animated .star:nth-child(13) { left: 30%; top: 70%;  animation-delay: 0.7s; }
.hero-bg-animated .star:nth-child(14) { left: 40%; top: 90%;  animation-delay: 1.7s; }
.hero-bg-animated .star:nth-child(15) { left: 50%; top: 60%;  animation-delay: 2.7s; }
.hero-bg-animated .star:nth-child(16) { left: 60%; top: 80%;  animation-delay: 0.2s; }
.hero-bg-animated .star:nth-child(17) { left: 70%; top: 70%;  animation-delay: 1.2s; }
.hero-bg-animated .star:nth-child(18) { left: 80%; top: 90%;  animation-delay: 2.2s; }
.hero-bg-animated .star:nth-child(19) { left: 90%; top: 60%;  animation-delay: 0.9s; }
.hero-bg-animated .star:nth-child(20) { left: 98%; top: 80%;  animation-delay: 1.9s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.85; filter: brightness(1); }
  50% { opacity: 0.3; filter: brightness(0.7); }
}
@keyframes starMove {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.15); }
  100% { transform: translateY(0) scale(1); }
}

/* Remove old shape styles if not used */
.hero-bg-animated .shape1,
.hero-bg-animated .shape2,
.hero-bg-animated .shape3,
.hero-bg-animated .shape4,
.hero-bg-animated .shape5 {
  display: none !important;
}

/* Scroll To Top Button Enhancements */
#scrollToTopBtn {
    display: flex !important;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    background: linear-gradient(135deg, #4062bb 0%, #5dade2 100%);
    color: #fff;
    border-radius: 50%;
    border: 2px solid #4062bb;
    box-shadow: 0 4px 24px 0 rgba(123,182,234,0.18);
    font-size: 1.6rem;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    animation: pulseBtn 1.5s infinite;
}
@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(123,182,234,0.18); }
    70% { box-shadow: 0 0 0 12px rgba(123,182,234,0.08); }
    100% { box-shadow: 0 0 0 0 rgba(123,182,234,0.18); }
}
#scrollToTopBtn:hover {
    background: linear-gradient(135deg, #5dade2 0%, #4062bb 100%);
    color: var(--highlight);
}

/* Logo Styles */
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #fff;
    border: 2px solid #ffd700;
    object-fit: cover;
    display: inline-block;
    animation: logoBounce 2s infinite alternate;
}

@keyframes logoBounce {
    0% { transform: translateY(0) scale(1); }
    60% { transform: translateY(-8px) scale(1.08); }
    100% { transform: translateY(0) scale(1); }
}

.animated-logo {
    transition: transform 0.3s;
}

.animated-logo:hover {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 4px 16px #ffd70044;
}

/* Subtle fade-in animation for sections */
section, .footer-content {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.2s;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Animated floating icons background */
.animated-bg-icons {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.animated-bg-icons i {
    position: absolute;
    font-size: 3rem;
    opacity: 0.13;
    color: #7bb6ea;
    filter: blur(0.5px);
    animation: floatIcons 8s ease-in-out infinite;
}
@keyframes floatIcons {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* Ensure main content is above icons */
body > *:not(.animated-bg-icons) {
    position: relative;
    z-index: 1;
}

/* Education and Personal Info Sections */
.education-section, .personal-info {
    background: rgba(232, 244, 255, 0.6);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(123,182,234,0.08);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.education-section h3, .personal-info h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.education-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.education-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.education-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.personal-info ul {
    list-style: none;
    padding: 0;
}

.personal-info li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.personal-info li i {
    margin-right: 1rem;
    color: var(--accent-color);
    width: 20px;
}

.personal-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.personal-info a:hover {
    color: var(--accent-color-hover);
}

/* Blog/Articles Section */
.blog {
    margin: 2.5rem 0;
    padding: 2.5rem 1.5rem;
    background: var(--section-bg, #f4f8fb);
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(123,182,234,0.10);
}
.blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.blog-card {
    background: var(--card-bg, #fafdff);
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(123,182,234,0.08);
    padding: 1.5rem 1.2rem;
    max-width: 340px;
    min-width: 260px;
    flex: 1 1 300px;
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1.5px solid var(--border-color, #dbeafe);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.blog-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(123,182,234,0.18);
}
.blog-card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color, #7bb6ea);
    font-size: 1.25rem;
}
.blog-date {
    font-size: 0.9rem;
    color: var(--text-secondary, #6c7a89);
    margin-bottom: 0.7rem;
}
.blog-excerpt {
    color: var(--text-color, #2a3a4b);
    margin-bottom: 1.2rem;
}
.blog-link {
    color: var(--accent-color, #7bb6ea);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.blog-link:hover {
    color: var(--accent-color-hover, #5a9bd8);
    text-decoration: underline;
}

/* --- Services Section --- */
.services {
  padding: 70px 0 40px 0;
  background: var(--section-bg, #f7f9fa);
  text-align: center;
}
.services h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: var(--primary, #232946);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: var(--card-bg, #fff);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #2329460d;
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px 0 #23294622;
}
.service-card i {
  font-size: 2.2rem;
  color: var(--accent, #4062bb);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--primary, #232946);
}
.service-card p {
  color: var(--text, #555);
  font-size: 1rem;
}

/* --- Reviews Section --- */
.reviews {
  padding: 70px 0 40px 0;
  background: var(--section-bg-alt, #e9eef6);
  text-align: center;
}
.reviews h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: var(--primary, #232946);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.review-card {
  background: var(--card-bg, #fff);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #2329460d;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.review-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 #23294622;
}
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.reviewer-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent, #4062bb);
  box-shadow: 0 2px 8px #23294622;
}
.review-rating {
  color: #ffd700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.review-text {
  color: var(--text, #444);
  font-size: 1.08rem;
  font-style: italic;
}

/* --- About Section Enhancements --- */
.about {
  background: linear-gradient(120deg, #e9eef6 0%, #f7f9fa 100%);
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
}
.about h2 {
  text-align: center;
  font-size: 2.7rem;
  color: var(--primary, #232946);
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
  font-weight: 700;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #23294618;
  padding: 2.2rem 1.5rem 2.2rem 1.5rem;
}
.about-text {
  flex: 1 1 340px;
  font-size: 1.08rem;
  color: var(--text, #232946);
  line-height: 1.7;
  letter-spacing: 0.01em;
  padding-right: 1.2rem;
  text-align: left;
}
.education-section, .personal-info {
  margin: 1.5rem 0 0.5rem 0;
  background: #f0f4fa;
  border-radius: 12px;
  padding: 1.1rem 1rem 1rem 1.1rem;
  box-shadow: 0 2px 12px #4062bb11;
  text-align: left;
}
.education-section h3, .personal-info h3 {
  font-size: 1.1rem;
  color: #4062bb;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.education-item h4 {
  font-size: 1.05rem;
  color: #232946;
  margin-bottom: 0.2rem;
}
.personal-info ul {
  list-style: none;
  padding: 0;
}

.personal-info li {
  margin-bottom: 0.6rem;
  font-size: 1.01rem;
  color: #232946;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.personal-info li i {
  color: #4062bb;
  font-size: 1.05rem;
  min-width: 20px;
}
.personal-info li a {
  color: #4062bb;
  text-decoration: underline dotted;
  transition: color 0.2s;
}
.personal-info li a:hover {
  color: #232946;
}

/* Skills Section */
.skills {
  background: linear-gradient(120deg, #f7f9fa 0%, #e9eef6 100%);
  padding: 70px 0 40px 0;
  text-align: center;
}
.skills h2 {
  font-size: 2.2rem;
  margin-bottom: 2.2rem;
  color: var(--primary, #232946);
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
  max-width: 700px;
  margin: 0 auto;
}
.skill-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 #2329460d;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  min-width: 180px;
  max-width: 220px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.skill-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 32px 0 #23294622;
}
.skill-card i {
  font-size: 2.1rem;
  color: #4062bb;
  margin-bottom: 0.7rem;
}
.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #232946;
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9eef6;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 0.3rem;
}
.progress {
  height: 100%;
  background: linear-gradient(90deg, #4062bb 60%, #ffd700 100%);
  border-radius: 6px;
  width: 0;
  transition: width 1.2s cubic-bezier(.77,0,.18,1);
}

@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    padding: 1.5rem 0.7rem;
  }
  .about-text {
    padding-right: 0;
  }
  .skills-grid {
    flex-direction: column;
    gap: 1.2rem;
  }
}

/* --- Contact Section Enhancements --- */
.contact {
  background: linear-gradient(120deg, #e9eef6 0%, #f7f9fa 100%);
  padding: 70px 0 40px 0;
  text-align: center;
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 rgba(123,182,234,0.10);
  margin: 2.5rem 0;
}
.contact-content {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #23294618;
  padding: 2.2rem 1.5rem 2.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid #cfd8e8;
  border-radius: 10px;
  font-size: 1rem;
  background: #f7f9fb;
  color: #232946;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 #2329460a;
  resize: none;
}
#contact-form input:focus,
#contact-form textarea:focus {
  border: 1.5px solid #4062bb;
  outline: none;
  box-shadow: 0 0 0 2px #4062bb33;
}
#contact-form button.cta-button {
  width: 100%;
  padding: 1rem 0;
  font-size: 1.1rem;
  border-radius: 30px;
  background: linear-gradient(90deg, #4062bb 0%, #ffd700 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 8px #ffd70033;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
#contact-form button.cta-button:hover {
  background: #fff;
  color: #4062bb;
  border: 2px solid #4062bb;
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 900px) {
  .contact-content {
    padding: 1.2rem 0.5rem;
  }
}
@media (max-width: 600px) {
  .contact {
    padding: 40px 0 20px 0;
  }
  .contact-content {
    max-width: 98vw;
    border-radius: 12px;
    box-shadow: 0 2px 8px 0 #2329460a;
  }
  #contact-form input,
  #contact-form textarea {
    font-size: 0.98rem;
    padding: 0.7rem 0.7rem;
  }
  #contact-form button.cta-button {
    font-size: 1rem;
    padding: 0.8rem 0;
  }
  footer {
    border-radius: 16px 16px 0 0;
    padding: 1.5rem 0 0.7rem 0;
  }
  gap: 1.1rem;
}
.simple-footer-social a {
  color: #ffd700;
  font-size: 1.3rem;
  transition: color 0.2s, transform 0.2s;
}
.simple-footer-social a:hover {
  color: #fff;
  transform: scale(1.2) rotate(-8deg);
}
.simple-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 1rem;
  color: #fff;
  border-top: 1px solid #4062bb;
  padding-top: 1rem;
}
.footer-top-link {
  color: #ffd700;
  font-size: 1.3rem;
  margin-left: 1.2rem;
  transition: color 0.2s, transform 0.2s;
}
.footer-top-link:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.2);
}

@media (max-width: 900px) {
  .simple-footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .simple-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
}
@media (max-width: 600px) {
  .simple-footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .simple-footer-links {
    gap: 0.7rem;
    flex-wrap: wrap;
  }
  .simple-footer-social {
    gap: 0.7rem;
  }
  .simple-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
  }
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a2236 0%, #232946 100%);
    color: #e5e9f2;
}

body.dark-mode section,
body.dark-mode .skills-grid,
body.dark-mode .project-grid,
body.dark-mode .about-content,
body.dark-mode .contact-content {
    background: rgba(26, 34, 54, 0.92);
    color: #e5e9f2;
    box-shadow: 0 4px 24px 0 rgba(26,34,54,0.18);
}

body.dark-mode .skill-card,
body.dark-mode .project-card,
body.dark-mode .education-section,
body.dark-mode .personal-info {
    background: rgba(64, 98, 187, 0.18);
    border: 1.5px solid #232946;
    color: #e5e9f2;
}

body.dark-mode .cta-button, body.dark-mode button.cta-button {
    background: linear-gradient(90deg, #232946 0%, #4062bb 100%);
    color: #fff;
}
body.dark-mode .cta-button:hover, body.dark-mode button.cta-button:hover {
    background: linear-gradient(90deg, #4062bb 0%, #232946 100%);
    color: var(--highlight);
}

body.dark-mode .highlight {
    color: var(--highlight);
}

body.dark-mode .navbar, body.dark-mode header, body.dark-mode footer {
    background: #1a2236;
    color: #e5e9f2;
}

body.dark-mode .nav-links a {
    color: #e5e9f2;
}
body.dark-mode .nav-links a:hover {
    color: #5dade2;
}

body.dark-mode #scrollToTopBtn {
    background: linear-gradient(135deg, #232946 0%, #4062bb 100%);
    color: #fff;
    border: 2px solid #5dade2;
}
body.dark-mode #scrollToTopBtn:hover {
    background: linear-gradient(135deg, #4062bb 0%, #232946 100%);
    color: var(--highlight);
}

body.dark-mode input, body.dark-mode textarea {
    background: #232946;
    color: #e5e9f2;
    border: 1.5px solid #4062bb;
}

/* Typing Effect */
#typed-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent-color, #7bb6ea);
    min-height: 1.7em;
    border-right: 2px solid var(--accent-color, #7bb6ea);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    letter-spacing: 1px;
    animation: blink-caret 0.8s step-end infinite;
}
@keyframes blink-caret {
    0%, 100% { border-color: var(--accent-color, #7bb6ea); }
    50% { border-color: transparent; }
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e9f2;
    border-radius: 6px;
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
    overflow: hidden;
    box-shadow: 0 1px 4px 0 rgba(123,182,234,0.10);
}
.progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4062bb 0%, #5dade2 100%);
    border-radius: 6px;
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* Project and Blog Card Animations */
.project-card, .blog-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.project-card.visible, .blog-card.visible {
  opacity: 1;
  transform: none;
  animation: fadeInUpCard 0.9s cubic-bezier(.4,0,.2,1);
}

/* Skill Card Hover Animation */
.skill-card {
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
}
.skill-card:hover {
  animation: cardLift 0.4s forwards;
}

/* Floating Profile Image */
.hero-image img {
  animation: floatProfile 3.5s ease-in-out infinite;
}

/* --- Deprecated Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1s forwards;
}

/* --- Enhanced Home Section Animations --- */
.hero-content h1, .hero-content .hero-subtitle, .hero-content .cta-button {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-content h1 { animation-delay: 0.2s; }
.hero-content .hero-subtitle { animation-delay: 0.5s; }
.hero-content .cta-button:first-of-type { animation-delay: 0.8s; }
.hero-content .cta-button.secondary { animation-delay: 1.1s; }

.hero-img-frame {
  animation: popIn 1.2s cubic-bezier(.4,0,.2,1) 0.6s both;
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.7) rotate(-10deg); }
  60% { opacity: 1; transform: scale(1.05) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.profile-img {
  animation: floatProfile 3.5s ease-in-out infinite;
  box-shadow: 0 8px 32px 0 rgba(64,98,187,0.18), 0 0 0 0 #ffd700;
  transition: box-shadow 0.4s;
}
.profile-img:hover {
  box-shadow: 0 8px 32px 0 #ffd70099, 0 0 24px 8px #ffd70044;
  animation-play-state: paused;
}

.hero-img-frame {
  transition: box-shadow 0.4s, transform 0.4s;
}
.hero-img-frame:hover {
  box-shadow: 0 0 0 8px #ffd70044, 0 8px 32px 0 #4062bb33;
  transform: scale(1.04) rotate(2deg);
}

/* Animated background shapes for hero section */
.hero-bg-animated {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-animated span {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.18;
  animation: heroBgFloat 8s ease-in-out infinite;
}
.hero-bg-animated .shape1 {
  width: 120px; height: 120px; background: #4062bb;
  left: 8%; top: 18%; animation-delay: 0s;
}
.hero-bg-animated .shape2 {
  width: 80px; height: 80px; background: #ffd700;
  left: 70%; top: 10%; animation-delay: 2s;
}
.hero-bg-animated .shape3 {
  width: 60px; height: 60px; background: #5dade2;
  left: 40%; top: 70%; animation-delay: 4s;
}
.hero-bg-animated .shape4 {
  width: 100px; height: 100px; background: #232946;
  left: 80%; top: 60%; animation-delay: 1.5s;
}
.hero-bg-animated .shape5 {
  width: 50px; height: 50px; background: #fff;
  left: 20%; top: 80%; animation-delay: 3.5s;
}
@keyframes heroBgFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
}

/* --- Animated Real Star Shape --- */
.hero-bg-animated .star {
  position: absolute;
  width: 18px;
  height: 18px;
  background: none;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
  animation: twinkle 2.5s linear infinite, starMove 12s linear infinite;
}
.hero-bg-animated .star::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: none;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  background: linear-gradient(180deg, #fff 70%, #ffd700 100%);
  box-shadow: 0 0 8px 2px #fff7, 0 0 16px 4px #ffd70055;
  display: block;
}

/* Keep the rest of the star animation and positioning as before */
.hero-bg-animated .star:nth-child(1)  { left: 5%;  top: 10%;  animation-delay: 0s; }
.hero-bg-animated .star:nth-child(2)  { left: 15%; top: 30%;  animation-delay: 1s; }
.hero-bg-animated .star:nth-child(3)  { left: 25%; top: 20%;  animation-delay: 2s; }
.hero-bg-animated .star:nth-child(4)  { left: 35%; top: 40%;  animation-delay: 0.5s; }
.hero-bg-animated .star:nth-child(5)  { left: 45%; top: 15%;  animation-delay: 1.5s; }
.hero-bg-animated .star:nth-child(6)  { left: 55%; top: 35%;  animation-delay: 2.5s; }
.hero-bg-animated .star:nth-child(7)  { left: 65%; top: 25%;  animation-delay: 0.8s; }
.hero-bg-animated .star:nth-child(8)  { left: 75%; top: 45%;  animation-delay: 1.8s; }
.hero-bg-animated .star:nth-child(9)  { left: 85%; top: 20%;  animation-delay: 2.8s; }
.hero-bg-animated .star:nth-child(10) { left: 95%; top: 30%;  animation-delay: 0.3s; }
.hero-bg-animated .star:nth-child(11) { left: 10%; top: 60%;  animation-delay: 1.3s; }
.hero-bg-animated .star:nth-child(12) { left: 20%; top: 80%;  animation-delay: 2.3s; }
.hero-bg-animated .star:nth-child(13) { left: 30%; top: 70%;  animation-delay: 0.7s; }
.hero-bg-animated .star:nth-child(14) { left: 40%; top: 90%;  animation-delay: 1.7s; }
.hero-bg-animated .star:nth-child(15) { left: 50%; top: 60%;  animation-delay: 2.7s; }
.hero-bg-animated .star:nth-child(16) { left: 60%; top: 80%;  animation-delay: 0.2s; }
.hero-bg-animated .star:nth-child(17) { left: 70%; top: 70%;  animation-delay: 1.2s; }
.hero-bg-animated .star:nth-child(18) { left: 80%; top: 90%;  animation-delay: 2.2s; }
.hero-bg-animated .star:nth-child(19) { left: 90%; top: 60%;  animation-delay: 0.9s; }
.hero-bg-animated .star:nth-child(20) { left: 98%; top: 80%;  animation-delay: 1.9s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.85; filter: brightness(1); }
  50% { opacity: 0.3; filter: brightness(0.7); }
}
@keyframes starMove {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.15); }
  100% { transform: translateY(0) scale(1); }
}

/* Remove old shape styles if not used */
.hero-bg-animated .shape1,
.hero-bg-animated .shape2,
.hero-bg-animated .shape3,
.hero-bg-animated .shape4,
.hero-bg-animated .shape5 {
  display: none !important;
}

/* Scroll To Top Button Enhancements */
#scrollToTopBtn {
    display: flex !important;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    background: linear-gradient(135deg, #4062bb 0%, #5dade2 100%);
    color: #fff;
    border-radius: 50%;
    border: 2px solid #4062bb;
    box-shadow: 0 4px 24px 0 rgba(123,182,234,0.18);
    font-size: 1.6rem;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    animation: pulseBtn 1.5s infinite;
}
@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(123,182,234,0.18); }
    70% { box-shadow: 0 0 0 12px rgba(123,182,234,0.08); }
    100% { box-shadow: 0 0 0 0 rgba(123,182,234,0.18); }
}
#scrollToTopBtn:hover {
    background: linear-gradient(135deg, #5dade2 0%, #4062bb 100%);
    color: var(--highlight);
}

/* Logo Styles */
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #fff;
    border: 2px solid #ffd700;
    object-fit: cover;
    display: inline-block;
    animation: logoBounce 2s infinite alternate;
}

@keyframes logoBounce {
    0% { transform: translateY(0) scale(1); }
    60% { transform: translateY(-8px) scale(1.08); }
    100% { transform: translateY(0) scale(1); }
}

.animated-logo {
    transition: transform 0.3s;
}

.animated-logo:hover {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 4px 16px #ffd70044;
}

/* Subtle fade-in animation for sections */
section, .footer-content {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.2s;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Animated floating icons background */
.animated-bg-icons {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.animated-bg-icons i {
    position: absolute;
    font-size: 3rem;
    opacity: 0.13;
    color: #7bb6ea;
    filter: blur(0.5px);
    animation: floatIcons 8s ease-in-out infinite;
}
@keyframes floatIcons {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* Ensure main content is above icons */
body > *:not(.animated-bg-icons) {
    position: relative;
    z-index: 1;
}

/* Education and Personal Info Sections */
.education-section, .personal-info {
    background: rgba(232, 244, 255, 0.6);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(123,182,234,0.08);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.education-section h3, .personal-info h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.education-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.education-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.education-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.personal-info ul {
    list-style: none;
    padding: 0;
}

.personal-info li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.personal-info li i {
    margin-right: 1rem;
    color: var(--accent-color);
    width: 20px;
}

.personal-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.personal-info a:hover {
    color: var(--accent-color-hover);
}

/* Blog/Articles Section */
.blog {
    margin: 2.5rem 0;
    padding: 2.5rem 1.5rem;
    background: var(--section-bg, #f4f8fb);
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(123,182,234,0.10);
}
.blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.blog-card {
    background: var(--card-bg, #fafdff);
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(123,182,234,0.08);
    padding: 1.5rem 1.2rem;
    max-width: 340px;
    min-width: 260px;
    flex: 1 1 300px;
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1.5px solid var(--border-color, #dbeafe);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.blog-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(123,182,234,0.18);
}
.blog-card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color, #7bb6ea);
    font-size: 1.25rem;
}
.blog-date {
    font-size: 0.9rem;
    color: var(--text-secondary, #6c7a89);
    margin-bottom: 0.7rem;
}
.blog-excerpt {
    color: var(--text-color, #2a3a4b);
    margin-bottom: 1.2rem;
}
.blog-link {
    color: var(--accent-color, #7bb6ea);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.blog-link:hover {
    color: var(--accent-color-hover, #5a9bd8);
    text-decoration: underline;
}

/* --- Services Section --- */
.services {
  padding: 70px 0 40px 0;
  background: var(--section-bg, #f7f9fa);
  text-align: center;
}
.services h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: var(--primary, #232946);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: var(--card-bg, #fff);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #2329460d;
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px 0 #23294622;
}
.service-card i {
  font-size: 2.2rem;
  color: var(--accent, #4062bb);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--primary, #232946);
}
.service-card p {
  color: var(--text, #555);
  font-size: 1rem;
}

/* --- Reviews Section --- */
.reviews {
  padding: 70px 0 40px 0;
  background: var(--section-bg-alt, #e9eef6);
  text-align: center;
}
.reviews h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: var(--primary, #232946);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.review-card {
  background: var(--card-bg, #fff);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #2329460d;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.review-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 #23294622;
}
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.reviewer-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent, #4062bb);
  box-shadow: 0 2px 8px #23294622;
}
.review-rating {
  color: #ffd700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.review-text {
  color: var(--text, #444);
  font-size: 1.08rem;
  font-style: italic;
}

/* --- About Section Enhancements --- */
.about {
  background: linear-gradient(120deg, #e9eef6 0%, #f7f9fa 100%);
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
}
.about h2 {
  text-align: center;
  font-size: 2.7rem;
  color: var(--primary, #232946);
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
  font-weight: 700;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #23294618;
  padding: 2.2rem 1.5rem 2.2rem 1.5rem;
}
.about-text {
  flex: 1 1 340px;
  font-size: 1.08rem;
  color: var(--text, #232946);
  line-height: 1.7;
  letter-spacing: 0.01em;
  padding-right: 1.2rem;
  text-align: left;
}
.education-section, .personal-info {
  margin: 1.5rem 0 0.5rem 0;
  background: #f0f4fa;
  border-radius: 12px;
  padding: 1.1rem 1rem 1rem 1.1rem;
  box-shadow: 0 2px 12px #4062bb11;
  text-align: left;
}
.education-section h3, .personal-info h3 {
  font-size: 1.1rem;
  color: #4062bb;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.education-item h4 {
  font-size: 1.05rem;
  color: #232946;
  margin-bottom: 0.2rem;
}
.personal-info ul {
  list-style: none;
  padding: 0;
}

.personal-info li {
  margin-bottom: 0.6rem;
  font-size: 1.01rem;
  color: #232946;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.personal-info li i {
  color: #4062bb;
  font-size: 1.05rem;
  min-width: 20px;
}
.personal-info li a {
  color: #4062bb;
  text-decoration: underline dotted;
  transition: color 0.2s;
}
.personal-info li a:hover {
  color: #232946;
}

/* Skills Section */
.skills {
  background: linear-gradient(120deg, #f7f9fa 0%, #e9eef6 100%);
  padding: 70px 0 40px 0;
  text-align: center;
}
.skills h2 {
  font-size: 2.2rem;
  margin-bottom: 2.2rem;
  color: var(--primary, #232946);
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
  max-width: 700px;
  margin: 0 auto;
}
.skill-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 #2329460d;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  min-width: 180px;
  max-width: 220px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.skill-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 32px 0 #23294622;
}
.skill-card i {
  font-size: 2.1rem;
  color: #4062bb;
  margin-bottom: 0.7rem;
}
.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #232946;
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9eef6;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 0.3rem;
}
.progress {
  height: 100%;
  background: linear-gradient(90deg, #4062bb 60%, #ffd700 100%);
  border-radius: 6px;
  width: 0;
  transition: width 1.2s cubic-bezier(.77,0,.18,1);
}

@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    padding: 1.5rem 0.7rem;
  }
  .about-text {
    padding-right: 0;
  }
  .skills-grid {
    flex-direction: column;
    gap: 1.2rem;
  }
}

/* --- Contact Section Enhancements --- */
.contact {
  background: linear-gradient(120deg, #e9eef6 0%, #f7f9fa 100%);
  padding: 70px 0 40px 0;
  text-align: center;
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 rgba(123,182,234,0.10);
  margin: 2.5rem 0;
}
.contact-content {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 #23294618;
  padding: 2.2rem 1.5rem 2.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid #cfd8e8;
  border-radius: 10px;
  font-size: 1rem;
  background: #f7f9fb;
  color: #232946;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 #2329460a;
  resize: none;
}
#contact-form input:focus,
#contact-form textarea:focus {
  border: 1.5px solid #4062bb;
  outline: none;
  box-shadow: 0 0 0 2px #4062bb33;
}
#contact-form button.cta-button {
  width: 100%;
  padding: 1rem 0;
  font-size: 1.1rem;
  border-radius: 30px;
  background: linear-gradient(90deg, #4062bb 0%, #ffd700 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 8px #ffd70033;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
#contact-form button.cta-button:hover {
  background: #fff;
  color: #4062bb;
  border: 2px solid #4062bb;
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 900px) {
  .contact-content {
    padding: 1.2rem 0.5rem;
  }
}
@media (max-width: 600px) {
  .contact {
    padding: 40px 0 20px 0;
  }
  .contact-content {
    max-width: 98vw;
    border-radius: 12px;
    box-shadow: 0 2px 8px 0 #2329460a;
  }
  #contact-form input,
  #contact-form textarea {
    font-size: 0.98rem;
    padding: 0.7rem 0.7rem;
  }
  #contact-form button.cta-button {
    font-size: 1rem;
    padding: 0.8rem 0;
  }
  footer {
    border-radius: 16px 16px 0 0;
    padding: 1.5rem 0 0.7rem 0;
  }
}

/* --- Footer Enhancements --- */
footer {
  background: linear-gradient(90deg, #232946 0%, #4062bb 100%);
  color: #fff;
  padding: 2.5rem 0 1.2rem 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 24px 0 rgba(64,98,187,0.10);
  margin-top: 3rem;
}
.simple-footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 1.2rem auto;
  gap: 2rem;
}
.simple-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.simple-footer-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ffd700;
  object-fit: cover;
  box-shadow: 0 2px 8px #ffd70033;
}
.simple-footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffd700;
}
.simple-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
}
.simple-footer-links a {
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  transition: background 0.2s, color 0.2s;
}
.simple-footer-links a:hover {
  background: #ffd700;
  color: #232946;
}
.simple-footer-social {
  display: flex;
  gap: 1.1rem;
}
.simple-footer-social a {
  color: #ffd700;
  font-size: 1.3rem;
  transition: color 0.2s, transform 0.2s;
}
.simple-footer-social a:hover {
  color: #fff;
  transform: scale(1.2) rotate(-8deg);
}
.simple-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 1rem;
  color: #fff;
  border-top: 1px solid #4062bb;
  padding-top: 1rem;
}
.footer-top-link {
  color: #ffd700;
  font-size: 1.3rem;
  margin-left: 1.2rem;
  transition: color 0.2s, transform 0.2s;
}
.footer-top-link:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.2);
}

@media (max-width: 900px) {
  .simple-footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .simple-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
}
@media (max-width: 600px) {
  .simple-footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .simple-footer-links {
    gap: 0.7rem;
    flex-wrap: wrap;
  }
  .simple-footer-social {
    gap: 0.7rem;
  }
  .simple-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
  }
}