/* Squares Theme - Applied when squares is active */
body.squares-theme {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%) !important;
}

/* Header Squares Theme */
body.squares-theme .header {
  background: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(100, 116, 139, 0.3);
}

body.squares-theme .logo {
  color: #94a3b8 !important;
  text-shadow: 0 0 20px rgba(148, 163, 184, 0.5);
}

body.squares-theme .logo i {
  color: #cbd5e1 !important;
}

body.squares-theme .navbar a {
  color: #cbd5e1 !important;
}

body.squares-theme .navbar a:hover,
body.squares-theme .navbar a.active {
  color: #f1f5f9 !important;
  text-shadow: 0 0 10px rgba(241, 245, 249, 0.5);
}

/* Home Section Squares Theme */
body.squares-theme .home {
  background: transparent !important;
}

body.squares-theme .home-content h1 {
  color: #f1f5f9 !important;
  text-shadow: 0 0 30px rgba(148, 163, 184, 0.5);
}

body.squares-theme .home-content h3 {
  color: #cbd5e1 !important;
}

body.squares-theme .home-content h3 span {
  color: #94a3b8 !important;
  text-shadow: 0 0 15px rgba(148, 163, 184, 0.5);
}

body.squares-theme .home-content p {
  color: #e2e8f0 !important;
}

/* Social Media Icons Squares Theme */
body.squares-theme .social-media a {
  background: rgba(100, 116, 139, 0.2) !important;
  border: 2px solid rgba(100, 116, 139, 0.4) !important;
  color: #cbd5e1 !important;
}

body.squares-theme .social-media a:hover {
  background: rgba(148, 163, 184, 0.3) !important;
  border-color: #94a3b8 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 0 20px rgba(148, 163, 184, 0.5) !important;
}

/* Buttons Squares Theme */
body.squares-theme .btn {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
  border: 2px solid transparent !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(100, 116, 139, 0.4);
}

body.squares-theme .btn:hover {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
  box-shadow: 0 0 30px rgba(148, 163, 184, 0.6) !important;
  transform: translateY(-3px);
}

body.squares-theme .btn-secondary {
  background: transparent !important;
  border: 2px solid #64748b !important;
  color: #64748b !important;
}

body.squares-theme .btn-secondary:hover {
  background: rgba(100, 116, 139, 0.2) !important;
  border-color: #94a3b8 !important;
  color: #94a3b8 !important;
}

/* Skills Section Squares Theme */
body.squares-theme .skills {
  background: transparent !important;
}

body.squares-theme .heading {
  color: #f1f5f9 !important;
  text-shadow: 0 0 20px rgba(148, 163, 184, 0.4);
}

body.squares-theme .heading span {
  color: #94a3b8 !important;
  text-shadow: 0 0 25px rgba(148, 163, 184, 0.6);
}

body.squares-theme .skills-subtitle {
  color: #cbd5e1 !important;
}

body.squares-theme .skills-category {
  background: rgba(100, 116, 139, 0.1) !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  backdrop-filter: blur(10px);
}

body.squares-theme .skills-category:hover {
  background: rgba(100, 116, 139, 0.2) !important;
  border-color: rgba(148, 163, 184, 0.5) !important;
  box-shadow: 0 8px 32px rgba(100, 116, 139, 0.3) !important;
}

body.squares-theme .category-icon {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
  box-shadow: 0 0 20px rgba(100, 116, 139, 0.5);
}

body.squares-theme .category-title {
  color: #f1f5f9 !important;
}

body.squares-theme .skill-tag {
  background: rgba(100, 116, 139, 0.2) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(100, 116, 139, 0.4) !important;
}

body.squares-theme .skill-tag:hover {
  background: rgba(148, 163, 184, 0.3) !important;
  color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

/* Portfolio Section Squares Theme */
body.squares-theme .portfolio {
  background: transparent !important;
}

body.squares-theme .portfolio-subtitle {
  color: #cbd5e1 !important;
}

body.squares-theme .portfolio-box {
  background: rgba(100, 116, 139, 0.1) !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  backdrop-filter: blur(10px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
  transform-origin: center center !important;
  will-change: transform, box-shadow !important;
  backface-visibility: hidden !important;
}

body.squares-theme .portfolio-box:hover {
  border-color: rgba(148, 163, 184, 0.5) !important;
  box-shadow: 0 12px 40px rgba(100, 116, 139, 0.3) !important;
  transform: translateY(-12px) scale(1.02) !important;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

body.squares-theme .portfolio-overlay {
  background: linear-gradient(
    135deg,
    rgba(100, 116, 139, 0.9) 0%,
    rgba(148, 163, 184, 0.9) 100%
  ) !important;
}

body.squares-theme .project-category {
  background: rgba(100, 116, 139, 0.3) !important;
  color: #cbd5e1 !important;
}

body.squares-theme .project-title {
  color: #f1f5f9 !important;
}

body.squares-theme .project-description {
  color: #e2e8f0 !important;
}

body.squares-theme .tech-badge {
  background: rgba(100, 116, 139, 0.2) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(100, 116, 139, 0.4) !important;
}

body.squares-theme .project-btn {
  border: 2px solid rgba(100, 116, 139, 0.5) !important;
  color: #cbd5e1 !important;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
  backface-visibility: hidden !important;
}

body.squares-theme .project-btn:hover {
  background: rgba(148, 163, 184, 0.2) !important;
  border-color: #94a3b8 !important;
  color: #f1f5f9 !important;
  transform: translateY(-3px) scale(1.02) !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* Contact Section Squares Theme */
body.squares-theme .contact-container {
  background: transparent !important;
}

body.squares-theme #contactHeading {
  color: #f1f5f9 !important;
  text-shadow: 0 0 20px rgba(148, 163, 184, 0.4);
}

body.squares-theme .contact-info {
  background: rgba(100, 116, 139, 0.1) !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  backdrop-filter: blur(10px);
}

body.squares-theme .info-section h3 {
  color: #94a3b8 !important;
}

body.squares-theme .info-item {
  color: #e2e8f0 !important;
}

body.squares-theme .contact-form {
  background: rgba(100, 116, 139, 0.1) !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  backdrop-filter: blur(10px);
}

body.squares-theme .form-title {
  color: #f1f5f9 !important;
}

body.squares-theme .contactName {
  color: #cbd5e1 !important;
}

body.squares-theme .contactInput,
body.squares-theme .contactTextarea {
  background: rgba(100, 116, 139, 0.1) !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  color: #f1f5f9 !important;
}

body.squares-theme .contactInput:focus,
body.squares-theme .contactTextarea:focus {
  border-color: #94a3b8 !important;
  box-shadow: 0 0 15px rgba(148, 163, 184, 0.3) !important;
}

body.squares-theme .contactSubmit {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
  border: none !important;
  box-shadow: 0 0 20px rgba(100, 116, 139, 0.4);
}

body.squares-theme .contactSubmit:hover {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
  box-shadow: 0 0 30px rgba(148, 163, 184, 0.6) !important;
}

/* Chatbot Squares Theme */
body.squares-theme #chatbot-toggle {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
  box-shadow: 0 4px 20px rgba(100, 116, 139, 0.4) !important;
}

body.squares-theme #chatbot-window {
  background: rgba(26, 26, 46, 0.95) !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  backdrop-filter: blur(20px);
}

body.squares-theme .chatbot-header {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
}

body.squares-theme .bot-message {
  background: rgba(100, 116, 139, 0.2) !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
}

body.squares-theme .user-message {
  background: rgba(148, 163, 184, 0.2) !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

body.squares-theme .quick-btn {
  background: rgba(100, 116, 139, 0.2) !important;
  border: 1px solid rgba(100, 116, 139, 0.4) !important;
  color: #cbd5e1 !important;
}

body.squares-theme .quick-btn:hover {
  background: rgba(148, 163, 184, 0.3) !important;
  border-color: #94a3b8 !important;
  color: #f1f5f9 !important;
}

/* Footer Squares Theme */
body.squares-theme .footer {
  background: rgba(26, 26, 46, 0.95) !important;
  border-top: 1px solid rgba(100, 116, 139, 0.3);
}

body.squares-theme .footer a {
  color: #cbd5e1 !important;
}

body.squares-theme .footer a:hover {
  color: #f1f5f9 !important;
  text-shadow: 0 0 10px rgba(148, 163, 184, 0.5);
}

body.squares-theme .footer-text p {
  color: #94a3b8 !important;
}

/* Scroll Progress Squares Theme */
body.squares-theme .scroll-progress-bar {
  background: linear-gradient(90deg, #64748b 0%, #94a3b8 100%) !important;
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.5);
}

/* Cursor Squares Theme */
body.squares-theme .cursor {
  border-color: #94a3b8 !important;
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.5);
}

body.squares-theme .cursor-follower {
  background: rgba(148, 163, 184, 0.2) !important;
}

/* Scroll Stack Cards Squares Theme */
body.squares-theme .scroll-stack-card {
  background: linear-gradient(
    135deg,
    rgba(15, 15, 20, 0.7) 0%,
    rgba(20, 20, 28, 0.7) 100%
  ) !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  box-shadow: 0 20px 60px rgba(100, 116, 139, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

body.squares-theme .scroll-stack-card:hover {
  background: linear-gradient(
    135deg,
    rgba(20, 20, 28, 0.75) 0%,
    rgba(25, 25, 33, 0.75) 100%
  ) !important;
  border-color: rgba(148, 163, 184, 0.6) !important;
  box-shadow: 0 30px 80px rgba(148, 163, 184, 0.5),
    0 12px 30px rgba(0, 0, 0, 0.8) !important;
  transform: translateY(-8px) scale(1.01) !important;
}

body.squares-theme .scroll-stack-card::before {
  background: linear-gradient(
    90deg,
    #64748b 0%,
    #94a3b8 50%,
    #cbd5e1 100%
  ) !important;
}

body.squares-theme .scroll-stack-card h3 {
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(148, 163, 184, 0.5) !important;
}

body.squares-theme .scroll-stack-card:hover h3 {
  text-shadow: 0 0 30px rgba(148, 163, 184, 0.7) !important;
}

body.squares-theme .scroll-stack-card h3::after {
  background: linear-gradient(90deg, #64748b, #94a3b8) !important;
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.6) !important;
}

body.squares-theme .scroll-stack-card p {
  color: rgba(220, 220, 230, 0.9) !important;
}

body.squares-theme .scroll-stack-card .tech-badge {
  background: linear-gradient(
    135deg,
    rgba(100, 116, 139, 0.15) 0%,
    rgba(148, 163, 184, 0.15) 100%
  ) !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  color: #cbd5e1 !important;
}

body.squares-theme .scroll-stack-card .tech-badge:hover {
  background: linear-gradient(
    135deg,
    rgba(100, 116, 139, 0.3) 0%,
    rgba(148, 163, 184, 0.3) 100%
  ) !important;
  border-color: rgba(148, 163, 184, 0.6) !important;
  color: #ffffff !important;
}

body.squares-theme .scroll-stack-card .btn-live {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
  box-shadow: 0 8px 20px rgba(100, 116, 139, 0.4) !important;
}

body.squares-theme .scroll-stack-card .btn-live:hover {
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.6) !important;
}

body.squares-theme .scroll-stack-card .btn-code {
  background: rgba(100, 116, 139, 0.1) !important;
  border: 2px solid #64748b !important;
  color: #cbd5e1 !important;
}

body.squares-theme .scroll-stack-card .btn-code:hover {
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.5) !important;
}

/* Page Loader Squares Theme */
body.squares-theme #page-loader {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%) !important;
}

body.squares-theme .loader-spinner {
  border-color: rgba(100, 116, 139, 0.2) !important;
  border-top-color: #94a3b8 !important;
}

body.squares-theme .loader-text {
  color: #f1f5f9 !important;
  text-shadow: 0 0 20px rgba(148, 163, 184, 0.4);
}

body.squares-theme .loader-progress-bar {
  background: linear-gradient(90deg, #64748b 0%, #94a3b8 100%) !important;
}

/* Smooth Grid Animations for Squares Theme */
body.squares-theme .portfolio-image img {
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1) !important;
  backface-visibility: hidden !important;
}

body.squares-theme .portfolio-box:hover .portfolio-image img {
  transform: scale(1.1) !important;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

body.squares-theme .project-title {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
  backface-visibility: hidden !important;
}

body.squares-theme .portfolio-box:hover .project-title {
  transform: translateX(5px) !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

body.squares-theme .project-category {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
  backface-visibility: hidden !important;
}

body.squares-theme .portfolio-box:hover .project-category {
  transform: scale(1.05) translateX(5px) !important;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
