/*
Theme Name: IshanikaMe Child
Theme URI: https://ishanikame.com
Description: A colorful, kid-friendly portfolio theme for Ishanika - young creator of apps, games, robots and more! 🚀
Author: IshanikaMe
Author URI: https://ishanikame.com
Template: twentytwentyfour
Version: 1.0.0
Text Domain: ishanikame-child
*/

/* =============================================
   ISHANIKAME - Kid-Friendly Portfolio Theme
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&display=swap');

/* --- CSS Variables --- */
:root {
  --color-primary:    #FF6B6B;   /* coral red */
  --color-secondary:  #4ECDC4;   /* teal */
  --color-accent1:    #FFE66D;   /* yellow */
  --color-accent2:    #A8E6CF;   /* mint green */
  --color-accent3:    #C3A6FF;   /* lavender */
  --color-dark:       #2C3E50;
  --color-text:       #333333;
  --color-light:      #F9F9F9;
  --color-white:      #FFFFFF;
  --font-heading:     'Fredoka One', cursive;
  --font-body:        'Nunito', sans-serif;
  --border-radius:    16px;
  --border-radius-lg: 24px;
  --shadow:           0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover:     0 8px 30px rgba(0,0,0,0.15);
}

/* --- Base Reset & Typography --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-secondary); }

img { max-width: 100%; height: auto; border-radius: var(--border-radius); }

/* --- Site Header --- */
.site-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent3) 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.site-branding .site-title a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.site-branding .site-description {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

/* --- Navigation --- */
.main-navigation {
  background: transparent;
}

.main-navigation ul li a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: 50px;
  transition: background 0.2s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  background: rgba(255,255,255,0.25);
  color: var(--color-white);
}

/* =============================================
   HOMEPAGE HERO SECTION
   ============================================= */
.ishanika-hero {
  background: linear-gradient(135deg, #FFF9F0 0%, #F0F8FF 50%, #FFF0F8 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ishanika-hero::before {
  content: '';
  position: absolute;
  top: -50px; left: -50px;
  width: 200px; height: 200px;
  background: var(--color-accent1);
  border-radius: 50%;
  opacity: 0.3;
}

.ishanika-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -30px;
  width: 300px; height: 300px;
  background: var(--color-accent2);
  border-radius: 50%;
  opacity: 0.25;
}

.ishanika-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.ishanika-hero .hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid var(--color-white);
  box-shadow: 0 0 0 4px var(--color-primary), var(--shadow);
  margin: 0 auto 24px;
  object-fit: cover;
}

.ishanika-hero .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--color-primary);
  margin-bottom: 8px;
}

.ishanika-hero .hero-subtitle {
  font-size: 1.3rem;
  color: var(--color-dark);
  margin-bottom: 24px;
  font-weight: 600;
}

.ishanika-hero .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.ishanika-hero .hero-tag {
  background: var(--color-white);
  border: 2px solid var(--color-secondary);
  color: var(--color-dark);
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

/* --- CTA Button --- */
.btn-ishanika {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), #FF8E53);
  color: var(--color-white) !important;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  padding: 14px 36px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(255,107,107,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-ishanika:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,107,107,0.5);
}

.btn-ishanika.secondary {
  background: linear-gradient(135deg, var(--color-secondary), #45B7AA);
  box-shadow: 0 4px 15px rgba(78,205,196,0.4);
}

/* =============================================
   FEATURED PROJECTS SECTION
   ============================================= */
.section-featured-projects {
  padding: 70px 20px;
  background: var(--color-light);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: 8px;
}

.section-title .section-line {
  width: 60px;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 10px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Project Card --- */
.project-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.project-card-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.badge-apps    { background: #FFE5E5; color: #E05252; }
.badge-games   { background: #E5F5FF; color: #3A9BD5; }
.badge-robots  { background: #E8FFE5; color: #3AAA5E; }
.badge-karting { background: #FFF5E5; color: #E07B3A; }
.badge-ai      { background: #F0E5FF; color: #8B52E0; }

.project-card-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

.project-card-thumb-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #FFF3E0, #FCE4EC);
}

.project-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.project-card-body p {
  color: #666;
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 18px;
}

/* =============================================
   BLOG SECTION
   ============================================= */
.section-blog {
  padding: 70px 20px;
  background: var(--color-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 5px solid var(--color-primary);
}

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

.blog-card:nth-child(2) { border-left-color: var(--color-secondary); }
.blog-card:nth-child(3) { border-left-color: var(--color-accent3); }

.blog-card-body {
  padding: 20px 22px 24px;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.blog-card-body p {
  font-size: 0.9rem;
  color: #666;
}

/* =============================================
   ABOUT SECTION / PAGE
   ============================================= */
.ishanika-about-section {
  padding: 70px 20px;
  background: linear-gradient(135deg, #F0FFF8, #FFF0FB);
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  width: 100%;
  max-width: 280px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  border: 5px solid var(--color-white);
}

.about-text h2 {
  color: var(--color-primary);
  margin-bottom: 16px;
}

.fun-facts {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.fun-facts li {
  padding: 8px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fun-facts li::before {
  content: '⭐';
  flex-shrink: 0;
}

/* =============================================
   SKILLS / INTERESTS ICONS ROW
   ============================================= */
.interests-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 50px 20px;
  background: var(--color-white);
}

.interest-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border: 2px solid #eee;
  border-radius: 50px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.interest-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

a.interest-pill {
  color: var(--color-text);
  cursor: pointer;
}

.interest-pill .pill-icon { font-size: 1.5rem; }

/* =============================================
   PAGE: PROJECTS
   ============================================= */
.page-projects-hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent2) 100%);
  padding: 60px 20px;
  text-align: center;
  color: var(--color-white);
}

.page-projects-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.project-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 30px 20px 10px;
}

.filter-btn {
  background: var(--color-white);
  border: 2px solid #ddd;
  border-radius: 50px;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* =============================================
   SINGLE PROJECT TEMPLATE
   ============================================= */
.single-project-header {
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #FFF9C4, #FFE0F0);
  text-align: center;
}

.project-meta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.project-sections {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.project-section-block {
  background: var(--color-light);
  border-radius: var(--border-radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  border-left: 5px solid var(--color-secondary);
}

.project-section-block h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.project-section-block:nth-child(2) { border-left-color: var(--color-accent3); }
.project-section-block:nth-child(3) { border-left-color: var(--color-accent1); }

/* =============================================
   BLOG / POSTS
   ============================================= */
.blog-page-hero {
  background: linear-gradient(135deg, var(--color-accent3) 0%, var(--color-primary) 100%);
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.blog-page-hero h1 { color: white; }

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.category-pill {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.category-pill:hover {
  background: rgba(255,255,255,0.35);
  color: white;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.95rem;
}

.site-footer .footer-emoji {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
}

.site-footer a { color: var(--color-accent1); }
.site-footer a:hover { color: var(--color-accent2); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    max-width: 200px;
    margin: 0 auto;
  }

  .ishanika-hero { padding: 50px 16px; }

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

  .interests-row { gap: 12px; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.float-anim { animation: float 3s ease-in-out infinite; }

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}
