/* Google Fonts */
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700|Open+Sans:400,600");

/* ==========================================================================
   CSS Custom Properties (Light Theme - Default)
   ========================================================================== */
:root {
  --bg-primary: #fff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #1a1a1a;
  --bg-footer: #111;
  --text-primary: #1a1a1a;
  --text-body: #444;
  --text-muted: #555;
  --text-light: #666;
  --text-lighter: #777;
  --border-color: #eee;
  --card-bg: #fff;
  --nav-bg: #fff;
  --nav-collapse-bg: #fff;
  --accent: #E91E63;
  --accent-dark: #c2185b;
  --preloader-bg: #fff;
  --loader-border: #f0f0f0;
  --shadow-card: rgba(0, 0, 0, 0.08);
  --shadow-nav: rgba(0, 0, 0, 0.06);
  --tag-bg: rgba(233, 30, 99, 0.08);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-dark: #0a0a0a;
  --bg-footer: #0a0a0a;
  --text-primary: #e0e0e0;
  --text-body: #b0b0b0;
  --text-muted: #a0a0a0;
  --text-light: #909090;
  --text-lighter: #808080;
  --border-color: #2a2a2a;
  --card-bg: #1e1e1e;
  --nav-bg: #1a1a1a;
  --nav-collapse-bg: #1a1a1a;
  --accent: #E91E63;
  --accent-dark: #f06292;
  --preloader-bg: #121212;
  --loader-border: #2a2a2a;
  --shadow-card: rgba(0, 0, 0, 0.3);
  --shadow-nav: rgba(0, 0, 0, 0.3);
  --tag-bg: rgba(233, 30, 99, 0.15);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  font-size: 16px;
  font-weight: 400;
  font-family: 'Open Sans', sans-serif;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

a {
  color: var(--accent);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

a:focus {
  outline: none;
}

p {
  font-weight: 400;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  margin: 0 0 15px;
}

ul, ol {
  list-style: outside none none;
  margin: 0;
  padding: 0;
}

ul li, ol li {
  list-style: none;
}

img {
  max-width: 100%;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  font-size: 14px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  padding: 12px 28px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn:focus,
.btn:active {
  box-shadow: none;
  outline: none;
}

.btn-common {
  background-color: #E91E63;
  color: #fff;
  border: 2px solid #E91E63;
}

.btn-common:hover {
  background-color: #c2185b;
  border-color: #c2185b;
  color: #fff;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  color: #fff;
  background-color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 15px;
}

button:focus {
  outline: none !important;
}

/* ==========================================================================
   Skeleton Preloader
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--preloader-bg);
  z-index: 9999999;
  overflow-y: auto;
  transition: opacity 0.4s ease;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.skeleton-page {
  min-height: 100vh;
}

.skeleton-bone {
  background: var(--border-color);
  position: relative;
  overflow: hidden;
  display: block;
}

.skeleton-bone::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  animation: shimmer 1.8s infinite;
}

[data-theme="dark"] .skeleton-bone::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-nav {
  padding: 22px 0;
}

.skeleton-hero {
  padding: 160px 0 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.skeleton-avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  margin: 0 auto 40px;
}

.skeleton-section {
  padding: 80px 0;
}

.skeleton-card-mini {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
a.back-to-top {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  text-decoration: none;
  z-index: 999;
}

a.back-to-top i {
  display: block;
  font-size: 18px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  color: #fff;
  background: var(--text-primary);
  border-radius: 50%;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

a.back-to-top:hover i {
  background: #E91E63;
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
}

/* ==========================================================================
   Section Shared
   ========================================================================== */
.section-padding {
  padding: 100px 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-label.light {
  color: rgba(255, 255, 255, 0.7);
}

.section-title {
  font-size: 36px;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  text-align: left;
}

.section-title.light {
  color: #fff;
}

.text-center .section-title {
  text-align: center;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

.bg-light {
  background-color: var(--bg-secondary) !important;
}

.bg-dark {
  background-color: var(--bg-dark) !important;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  padding: 0;
  transition: all 0.3s ease;
}

.scrolling-navbar {
  background: transparent;
  padding: 20px 0;
}

.scrolling-navbar .navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  padding: 0;
}

.scrolling-navbar .navbar-brand:hover {
  color: var(--accent);
}

.top-nav-collapse {
  background: var(--nav-bg);
  padding: 10px 0;
  z-index: 999999;
  box-shadow: 0 2px 20px var(--shadow-nav);
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}

.navbar-toggler {
  border: none;
  padding: 10px;
  cursor: pointer;
}

.navbar-toggler .lni-menu {
  font-size: 24px;
  color: var(--text-primary);
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-nav .nav-item .nav-link {
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 10px 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  color: var(--accent);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
#hero {
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-img {
  text-align: center;
  margin-bottom: 40px;
}

.profile-photo {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border: 6px solid var(--bg-primary);
}

.hero-content {
  padding-left: 20px;
}

.hero-greeting {
  font-size: 16px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.hero-name {
  font-size: 56px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.1;
}

.hero-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero-bio {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-cta {
  margin-bottom: 32px;
}

.hero-cta .btn {
  margin-right: 12px;
  margin-bottom: 12px;
}

.hero-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  margin-right: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hero-social a:hover {
  color: #E91E63;
  background: rgba(233, 30, 99, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content .section-title {
  margin-bottom: 30px;
}

.about-text p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.skill-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  transition: all 0.3s ease;
}

.skill-item:hover {
  border-color: #E91E63;
  box-shadow: 0 8px 30px rgba(233, 30, 99, 0.08);
  transform: translateY(-4px);
}

.skill-icon {
  margin-bottom: 16px;
}

.skill-icon i {
  font-size: 32px;
  color: var(--accent);
}

.skill-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-item p {
  font-size: 14px;
  color: var(--text-lighter);
  margin: 0;
}

/* ==========================================================================
   Playground / Projects Section
   ========================================================================== */
.project-grid {
  margin-top: 20px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 40px 30px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: 0 12px 40px var(--shadow-card);
  transform: translateY(-6px);
  border-color: transparent;
}

.project-icon {
  margin-bottom: 20px;
}

.project-icon i {
  font-size: 36px;
  color: var(--accent);
}

.project-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  flex-grow: 1;
}

.project-tags {
  margin-bottom: 16px;
}

.project-tags span {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: var(--accent);
  background: var(--tag-bg);
  padding: 4px 12px;
  border-radius: 20px;
  margin-right: 6px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-link {
  font-size: 14px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.project-link i {
  font-size: 12px;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.project-link:hover {
  color: #E91E63;
}

.project-link:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   This & That Section
   ========================================================================== */
.fun-facts {
  margin-top: 40px;
}

.fact-item {
  text-align: center;
  padding: 30px 20px;
}

.fact-item i {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.fact-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.fact-item p {
  font-size: 14px;
  color: var(--text-lighter);
  margin: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
#contact {
  background: var(--bg-dark);
}

.contact-content {
  padding: 20px 0;
}

.contact-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 460px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.contact-social {
  margin-top: 40px;
}

.contact-social a {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  margin: 0 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.contact-social a:hover {
  color: #fff;
  border-color: #E91E63;
  background: #E91E63;
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-area {
  background: var(--bg-footer);
  padding: 30px 0;
}

.footer-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-text a {
  color: var(--accent);
}

.footer-text a:hover {
  color: #fff;
}

/* ==========================================================================
   Theme Toggle Button
   ========================================================================== */
.theme-toggle-btn {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.3s ease;
  margin-left: 16px;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  transform: rotate(20deg);
}

[data-theme="dark"] .theme-toggle-btn {
  border-color: #444;
}
