/* === VARIABLES === */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #3f37c9;
  --accent: #f0b323;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --success: #4bb543;
}

/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #f5f7fa;
}

a {
  text-decoration: none;
  color: var(--dark);
  transition: color 0.3s;
}

a:hover {
  color: var(--primary);
}

.btn {
  display: inline-block;
  background: #ff6b6b;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 10px;
}

/* === HEADER === */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s;
}

.search {
  font-size: 1.2rem;
}

/* === HERO SECTIONS === */
.hero, .about-hero, .blog-hero, .contact-hero {
  position: relative;
  height: 60vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero h1, .about-hero h1, .blog-hero h1, .contact-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p, .about-hero p, .blog-hero p, .contact-hero p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content, .about-hero h1, .blog-hero h1, .contact-hero h1 {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-btn {
  display: inline-block;
  background: #ff6b6b;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  margin-top: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid #ff6b6b;
}

.hero-btn:hover {
  background: transparent;
  color: #ff6b6b;
}

/* === HOME PAGE === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin: 0 0 10px;
}

.date {
  color: #777;
  font-size: 0.9rem;
}

.read-more {
  color: #ff6b6b;
  font-weight: bold;
}

/* Profile Picture Styles */
.profile-pic-wrapper {
    width: 120px; /* Reduced from 150px */
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ff6b6b;
}

.profile-pic-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: fit;
}

/* === ABOUT PAGE === */
.about-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-img {
  width: 40%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  margin-top: 0;
}

.interests {
  list-style: none;
  padding: 0;
}

.interests li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.interests i {
  color: #ff6b6b;
}

/* === BLOG PAGE === */
.blog-container {
  display: flex;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  gap: 40px;
}

.blog-sidebar {
  flex: 1;
}

.blog-posts {
  flex: 3;
}

.post {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.post img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.category {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.pagination a {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.pagination a.active {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
}

/* === CONTACT PAGE === */
.contact-container {
  display: flex;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  gap: 40px;
}

.contact-form {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.contact-info {
  flex: 1;
}

.info-card {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.info-card i {
  font-size: 2rem;
  color: #ff6b6b;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: #333;
  font-size: 1.5rem;
}

/* === TRAVEL PAGE SPECIFIC STYLES === */

/* Hero Section */
.travel-hero {
    position: relative;
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('https://images.unsplash.com/photo-1464037866556-6812c9d1c72e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.travel-hero .hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* Destination Grid */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.destination-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-10px);
}

.destination-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover .destination-image img {
    transform: scale(1.1);
}

.location-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.destination-info {
    padding: 20px;
}

.destination-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.read-more {
    color: #ff6b6b;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.view-all {
    text-align: center;
    margin: 40px 0;
}

/* Travel Tips Section */
.travel-tips {
    background: #f9f9f9;
    padding: 60px 0;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tip-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tip-card i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.tip-card h3 {
    margin-top: 0;
}

/* Section Headers (Reusable) */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .travel-hero .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .destination-grid {
        grid-template-columns: 1fr;
    }
    
    .destination-image {
        height: 200px;
    }
}

/* === SIDEBAR WIDGETS (SHARED) === */
.sidebar-widget {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-widget img {
  width: 100%;
  border-radius: 50%;
  margin: 10px 0;
}

.sidebar-widget form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.sidebar-widget form button {
  width: 100%;
  padding: 10px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
}

.sidebar-widget ul li {
  margin-bottom: 10px;
}

/* === FOOTER === */
footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

footer p {
  color: var(--gray);
  font-size: 0.9rem;
}

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 1.2rem;
}

/* === TOPIC PAGES === */

/* Hero Sections */
.topic-hero {
    position: relative;
    height: 50vh;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
}

.topic-hero .hero-text h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.topic-hero .hero-text i {
    margin-right: 15px;
}

/* Content Sections */
.content-section {
    padding: 80px 20px;
}

.alt-bg {
    background: #f9f9f9;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* Productivity Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.method-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.method-icon {
    width: 70px;
    height: 70px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

/* Tech Grid */
.tech-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.tech-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-details {
    padding: 30px;
}

.tech-specs {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tech-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-specs li::before {
    content: "→";
    color: #ff6b6b;
}

/* Lifestyle Grid */
.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.habit-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.habit-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.habit-time {
    background: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.habit-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.habit-steps li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.habit-steps i {
    color: #ff6b6b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tech-item {
        grid-template-columns: 1fr;
    }
    
    .topic-hero .hero-text h1 {
        font-size: 2.2rem;
    }
}

/* === ENHANCED WELLNESS TOOLKIT === */
.wellness-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #f9f9f9 0%, #ffffff 100%);
}

.wellness-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.wellness-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #333;
  position: relative;
  display: inline-block;
}

.wellness-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #ff6b6b;
}

.wellness-header p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.wellness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.wellness-card {
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255,107,107,0.1);
  position: relative;
  overflow: hidden;
}

.wellness-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #ff6b6b 0%, #6e48aa 100%);
}

.wellness-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.wellness-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255,107,107,0.1) 0%, rgba(110,72,170,0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.2rem;
  color: #ff6b6b;
  transition: all 0.3s ease;
}

.wellness-card:hover .wellness-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, #ff6b6b 0%, #6e48aa 100%);
  color: white;
}

.wellness-card h3 {
  font-size: 1.5rem;
  margin: 0 0 15px;
  color: #333;
}

.wellness-card p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.wellness-btn {
  display: inline-block;
  padding: 10px 25px;
  background: transparent;
  color: #ff6b6b;
  border: 2px solid #ff6b6b;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.wellness-card:hover .wellness-btn {
  background: #ff6b6b;
  color: white;
  box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

/* Pulse Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.wellness-card:nth-child(1) {
  animation: pulse 4s ease-in-out infinite;
}

.wellness-card:nth-child(2) {
  animation: pulse 4s ease-in-out 1s infinite;
}

.wellness-card:nth-child(3) {
  animation: pulse 4s ease-in-out 2s infinite;
}

/* === ESSENTIAL APPS SECTION === */
.essentials-section {
  padding: 80px 0;
  background: #f8fafc;
}

.essentials-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.essentials-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #2d3748;
  position: relative;
}

.essentials-header h2:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b 0%, #6e48aa 100%);
  border-radius: 2px;
}

.essentials-header p {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.7;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.app-card {
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(237, 242, 247, 0.8);
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-color: rgba(255,107,107,0.3);
}

.app-logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.5rem;
  color: white;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.app-card:hover .app-logo {
  transform: scale(1.1) rotate(5deg);
}

.app-card h3 {
  font-size: 1.5rem;
  margin: 0 0 15px;
  color: #2d3748;
  text-align: center;
}

.app-card p {
  color: #4a5568;
  margin-bottom: 25px;
  line-height: 1.7;
  text-align: center;
}

.app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

.app-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  color: #4a5568;
}

.app-features li:before {
  content: '✓';
  color: #ff6b6b;
  font-weight: bold;
  margin-right: 10px;
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  background: linear-gradient(135deg, #ff6b6b 0%, #6e48aa 100%);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  margin: 0 auto;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.app-card:hover .app-link {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,107,107,0.4);
}

/* App-specific colors */
.vscode { background: linear-gradient(135deg, #007ACC 0%, #1f8fff 100%); }
.iterm2 { background: linear-gradient(135deg, #000000 0%, #2a2a2a 100%); }
.git { background: linear-gradient(135deg, #F05032 0%, #f7827d 100%); }

/* === PRODUCTIVITY RESOURCES SECTION === */
.productivity-resources {
  padding: 90px 0;
  background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
}

.resources-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 100px;
}

.resources-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #2d3748;
  position: relative;
  display: inline-block;
}

.resources-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #6e48aa);
  border-radius: 3px;
}

.resources-header p {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.7;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.resource-card {
  background: white;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.resource-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.resource-card:hover .resource-image img {
  transform: scale(1.05);
}

.resource-category {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.9);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ff6b6b;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.resource-content {
  padding: 25px;
}

.resource-content h3 {
  font-size: 1.4rem;
  margin: 0 0 10px;
  color: #2d3748;
}

.resource-content p {
  color: #4a5568;
  margin-bottom: 20px;
  line-height: 1.6;
}

.resource-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #718096;
}

.resource-meta span {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.resource-meta i {
  margin-right: 5px;
  color: #ff6b6b;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 25px;
  background: linear-gradient(to right, #ff6b6b, #6e48aa);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.resource-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.resource-card:hover .resource-link {
  box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.resource-card:hover .resource-link i {
  transform: translateX(3px);
}

/* Productivity categories */
.time-management { border-top: 4px solid #4299e1; }
.focus-methods { border-top: 4px solid #9f7aea; }
.toolkit { border-top: 4px solid #ed8936; }

/* === ENHANCED CATEGORY SECTION === */
.categories-section {
  padding: 80px 0;
  background: #f8fafc;
}

.categories-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.categories-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #2d3748;
  position: relative;
  display: inline-block;
}

.categories-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #6e48aa);
  border-radius: 3px;
}

.categories-header p {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.7;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.category-card {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.category-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 1;
}

.category-card:hover .category-bg {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
  z-index: 2;
}

.category-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  color: white;
}

.category-content h3 {
  font-size: 1.6rem;
  margin: 0 0 10px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.category-count {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.category-link {
  display: inline-flex;
  align-items: center;
  color: white;
  font-weight: 600;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.category-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.category-card:hover .category-link {
  opacity: 1;
  text-decoration: underline;
}

.category-card:hover .category-link i {
  transform: translateX(5px);
}

/* Category-specific colors */
.category-travel { border-left: 5px solid #4299e1; }
.category-productivity { border-left: 5px solid #9f7aea; }
.category-tech { border-left: 5px solid #ed8936; }
.category-lifestyle { border-left: 5px solid #48bb78; }

/* Animated floating effect */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.category-card:nth-child(odd) {
  animation: float 6s ease-in-out infinite;
}

.category-card:nth-child(even) {
  animation: float 6s ease-in-out 1s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .category-content {
    padding: 20px;
  }
  
  .category-content h3 {
    font-size: 1.4rem;
  }
}

/* === ULTRA-COMPACT HERO === */
.hero {
  position: relative;
  height: 50vh;             /* Significantly shorter */
  min-height: 400px;        /* Reduced minimum */
  display: flex;
  align-items: center;
  padding: 40px 0;          /* Added vertical padding */
  overflow: hidden;
  color: white;
  text-align: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  background: 
    linear-gradient(rgba(110, 72, 170, 0.7), rgba(110, 72, 170, 0.7)),
    var(--bg-image);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;         /* More narrow content */
  padding: 0 20px;
  margin: 0 auto;           /* Better centering */
}

.hero h1 {
  font-size: 2.2rem;        /* Smaller heading */
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero p {
  font-size: 1rem;          /* Smaller paragraph */
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hero-btn {
  padding: 10px 24px;       /* More compact buttons */
  font-size: 0.9rem;
}

/* Remove scroll indicator if space is tight */
.scroll-down {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero {
    height: 45vh;
    min-height: 350px;
    padding: 30px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* === ABOUT HERO WITH BACKGROUND IMAGE === */
.about-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  background: 
    linear-gradient(rgba(110, 72, 170, 0.7), rgba(110, 72, 170, 0.7)),
    var(--about-bg-image);
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 0.8s ease-out;
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.highlight {
  color: #ff6b6b;
}

.tagline {
  font-size: 1.3rem;
  opacity: 0.9;
  letter-spacing: 1px;
}

/* === COMPACT ABOUT HERO === */
.about-hero {
  position: relative;
  height: 50vh;             /* Matches index.html height */
  min-height: 400px;        /* Matches index.html */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
  margin-bottom: 40px;      /* Added space below */
}

.about-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  background: 
    linear-gradient(rgba(110, 72, 170, 0.7), rgba(110, 72, 170, 0.7)),
    var(--about-bg-image);
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;         /* Matches index.html width */
  padding: 0 20px;
}

.about-hero h1 {
  font-size: 2.2rem;        /* Matches index.html size */
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.highlight {
  color: #ff6b6b;           /* Your accent color */
}

.tagline {
  font-size: 1.1rem;        /* Slightly larger than index p */
  opacity: 0.9;
  margin-bottom: 25px;       /* Space for potential button */
}

/* Optional CTA button to match index */
.about-cta {
  display: inline-block;
  padding: 10px 25px;
  background: #ff6b6b;
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.about-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

/* Tech Badges */
.tech-badge {
  display: inline-block;
  background: #ff6b6b;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Tech Spec Icons */
.tech-specs i {
  width: 20px;
  color: #6e48aa;
  margin-right: 8px;
}

/* Software Icons */
.software-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.software-icon.android {
  background: linear-gradient(135deg, #3DDC84, #2BB673);
  color: white;
}

.software-icon.windows {
  background: linear-gradient(135deg, #0078D7, #004E8C);
  color: white;
}

.software-icon.code {
  background: linear-gradient(135deg, #6e48aa, #9d50bb);
  color: white;
}

.software-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  background: rgba(110, 72, 170, 0.1);
  color: #6e48aa;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* === BLOG ENHANCEMENTS === */
.blog-hero {
  position: relative;
  height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(110, 72, 170, 0.8), rgba(110, 72, 170, 0.5));
}

.search-bar {
  max-width: 500px;
  margin: 30px auto 0;
  display: flex;
}

.search-bar input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.search-bar button {
  width: 50px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-bar button:hover {
  background: #e05555;
}

/* Post Styles */
.post {
  position: relative;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.featured-post {
  border: 2px solid #ff6b6b;
}

.post-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff6b6b;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
}

.post img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post:hover img {
  transform: scale(1.03);
}

.post-content {
  padding: 25px;
}

.post-category {
  display: inline-block;
  background: #6e48aa;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.post h2 {
  font-size: 1.5rem;
  margin: 0 0 15px;
  transition: color 0.3s ease;
}

.post:hover h2 {
  color: #ff6b6b;
}

.post-excerpt {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-date {
  color: #888;
  font-size: 0.9rem;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #ff6b6b;
  color: white;
  transform: translateY(-2px);
}

/* Popular Posts */
.popular-post {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
}

.popular-post img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.popular-post h4 {
  margin: 0 0 5px;
  font-size: 0.9rem;
}

.post-meta {
  font-size: 0.7rem;
  color: #888;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.page-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: #f0f0f0;
  transition: all 0.3s ease;
}

.page-number:hover, .page-number.active {
  background: #ff6b6b;
  color: white;
}

.next-page {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 20px;
  background: #6e48aa;
  color: white;
  transition: all 0.3s ease;
}

.next-page:hover {
  background: #5d3a9b;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-container {
    flex-direction: column;
  }
  
  .blog-sidebar {
    order: -1;
    margin-bottom: 40px;
  }
  
  .post img {
    height: 200px;
  }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    padding: 0;
    margin: 10px 0;
  }

  .about-content {
    flex-direction: column;
  }

  .about-img {
    width: 100%;
  }

  .blog-container, .contact-container {
    flex-direction: column;
  }

  .blog-sidebar {
    order: -1;
    margin-bottom: 30px;
  }
  
  .hero, .about-hero, .blog-hero, .contact-hero {
    padding: 80px 20px;
  }
}