:root{
  --bg: #0a0e27;
  --card: #1a1f3a;
  --accent: #00d4aa;
  --accent-2: #8A2BE2; /* A nice purple */
  --accent-3: #4ecdc4;
  --accent-4: #45b7d1;
  --muted: #8892b0;
  --glass: rgba(255,255,255,0.05);
  --text: #e6f1ff;
  --text-bright: #ffffff;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #00d4aa 0%, #4ecdc4 100%);
  --gradient-3: linear-gradient(135deg, #8A2BE2 0%, #4B0082 100%); /* Purple gradient */
  --shadow-glow: 0 10px 40px rgba(0, 212, 170, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Light theme overrides */
:root.light-theme {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1a2433;
  --text-bright: #0d1829;
  --muted: #556176;
  --glass: rgba(0,0,0,0.05);
  --shadow-card: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-glow: 0 10px 30px rgba(0, 212, 170, 0.25);
  --gradient-1: linear-gradient(135deg, #7f8ff4 0%, #5f2eea 100%);
  --gradient-2: linear-gradient(135deg, #00c6a2 0%, #25e6c4 100%);
  --gradient-3: linear-gradient(135deg, #ff6b6b 0%, #ffb86b 100%);
}

body.light-theme {
  background: linear-gradient(135deg, var(--bg) 0%, #e8ecf3 50%, #ffffff 100%);
  color: var(--text);
}

body.light-theme .site-header {
  background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.9) 100%);
  border-bottom-color: rgba(0,0,0,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
body.light-theme .site-header.scrolled {
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.96) 100%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
body.light-theme .nav { background: rgba(0,0,0,0.05); }
body.light-theme .nav a { color: var(--text); }
body.light-theme .nav a.active, body.light-theme .nav a:hover { color: var(--bg); }
body.light-theme .project-minimal { 
  border-color: rgba(52, 152, 219, 0.4); 
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}
body.light-theme .project-minimal:hover {
  border-color: #3498db;
  box-shadow: 0 20px 40px rgba(52, 152, 219, 0.2);
}
body.light-theme .project-minimal h3 {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.light-theme .project-tag {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}
body.light-theme .demo-link {
  background: rgba(52, 152, 219, 0.1);
  color: #2980b9;
  border-color: #3498db;
}
body.light-theme .demo-link::before {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}
body.light-theme .skill-simple { border-color: rgba(0,212,170,0.25); }
body.light-theme .expertise-item { border-color: rgba(69,183,209,0.25); }
body.light-theme .about-card { border-color: rgba(78,205,196,0.25); }
body.light-theme .site-footer { background: linear-gradient(135deg, var(--card) 0%, #eef2f7 100%); }
body.light-theme .footer-link { background: rgba(0,0,0,0.05); }
body.light-theme .social-link { background: rgba(0,0,0,0.05); }
body.light-theme .btn.outline { background: rgba(0,0,0,0.05); }
body.light-theme .github-link { background: rgba(0,0,0,0.05); }

/* Interactive Theme Toggle Switch */
.theme-switch-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
  cursor: pointer;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: var(--card);
  border: 1px solid var(--accent);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 34px;
  backdrop-filter: blur(10px);
}

.slider .icon-container {
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 212, 170, 0.4);
}

.slider .icon-container i {
  position: absolute;
  font-size: 14px;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fa-sun {
  color: #fff;
  opacity: 0;
  transform: scale(0) rotate(-90deg);
}

.fa-moon {
  color: var(--bg);
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

input:checked + .slider .icon-container {
  transform: translateY(-50%) translateX(26px);
  background: #f39c12;
  box-shadow: 0 2px 10px rgba(243, 156, 18, 0.5);
}

input:checked + .slider .fa-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

input:checked + .slider .fa-moon {
  opacity: 0;
  transform: scale(0) rotate(90deg);
}

body.light-theme .slider {
  background-color: #e9e9e9;
  border-color: #ccc;
}

*{box-sizing:border-box}
html,body{height:100%}

/* Mobile viewport fix */
.mobile-device {
  height: calc(var(--vh, 1vh) * 100);
}

/* Improve scrolling performance on mobile */
* {
  -webkit-overflow-scrolling: touch;
}

/* Mobile styles for 768px and below */
@media(max-width:768px){
  .theme-switch-wrapper { 
    top: 18px;
    right: 65px; /* Position next to hamburger */
  }
  
  /* Prevent zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  textarea {
    font-size: 16px !important;
  }
}

/* Improve scrolling performance on mobile */
* {
  -webkit-overflow-scrolling: touch;
}

body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg) 0%, #0f1419 50%, #1a1f3a 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing:antialiased;
  text-align: center;
  font-weight: 400;
}

/* Minimal Formal Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-bright);
}

h1 { font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; }
h2 { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 32px; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p, .subhead, .lead {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
}

.subhead { font-size: 1.2rem; }
.lead { font-size: 1.15rem; }
p { font-size: 1rem; }

code, pre, .code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.9rem;
}

.container{
  max-width:1000px;
  margin:0 auto;
  padding:0 20px;
}

@media(max-width:768px){
  .container{
    padding:0 20px;
    max-width: 100%;
  }
  
  .theme-switch-wrapper { 
    top: 20px;
    right: 75px;
    z-index: 1001;
  }
  
  #nav-toggle {
    right: 20px;
    top: 20px;
    position: absolute;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }
  
  .nav-wrap {
    justify-content: flex-start;
    padding: 20px 0;
  }
  
  .brand {
    font-size: 1.2rem;
    margin-left: 4px;
  }
  
  .site-header {
    padding: 0;
  }
  
  .site-header.scrolled {
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  }
}

@media(max-width:600px){
  .container{
    padding:0 16px;
  }
  
  .theme-switch-wrapper { 
    top: 18px;
    right: 70px;
  }
  
  #nav-toggle {
    right: 16px;
    top: 18px;
    width: 40px;
    height: 40px;
  }
  
  .brand {
    font-size: 1.1rem;
  }
}

@media(max-width:480px){
  .container{
    padding:0 14px;
  }
  
  .theme-switch-wrapper { 
    top: 16px;
    right: 60px;
  }
  
  .theme-switch {
    width: 50px;
    height: 28px;
  }
  
  .slider .icon-container {
    width: 22px;
    height: 22px;
  }
  
  input:checked + .slider .icon-container {
    transform: translateY(-50%) translateX(22px);
  }
  
  #nav-toggle {
    right: 14px;
    top: 16px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .brand {
    font-size: 1rem;
  }
  
  .nav-wrap {
    padding: 16px 0;
  }
}
.site-header{
  position:sticky;
  top:0;
  backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(15,23,36,0.95) 0%, rgba(26,31,58,0.9) 100%);
  border-bottom: 1px solid rgba(0, 212, 170, 0.2);
  z-index:60;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  backdrop-filter: blur(25px);
  background: linear-gradient(135deg, rgba(15,23,36,0.98) 0%, rgba(26,31,58,0.95) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(0, 212, 170, 0.4);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-2);
  opacity: 0.5;
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  position: relative;
}
.brand{
  font-family: 'Inter', sans-serif;
  font-weight:700;
  font-size:1.4rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration:none;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
  position: relative;
}

.brand:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.3));
}
#nav-toggle{
  display:none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color:var(--accent);
  font-size:1.25rem;
  cursor:pointer;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#nav-toggle:hover {
  background: rgba(0, 212, 170, 0.1);
  border-color: var(--accent);
  transform: scale(1.05);
}
.nav{
  display:flex;
  gap:8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  padding: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav a{
  color:var(--text);
  text-decoration:none;
  padding:12px 20px;
  border-radius:25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  overflow: hidden;
  white-space: nowrap;
  background: transparent;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-2);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
  border-radius: 25px;
  transform: scale(0.8);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav a:hover::after {
  width: 80%;
}

.nav a:hover{
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
}

.nav a.active{
  background: var(--gradient-2);
  color: var(--bg);
  box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
  transform: translateY(-1px);
}

.nav a.active::before {
  opacity: 1;
  transform: scale(1);
}

.nav a.active::after {
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero{
  padding:120px 0;
  text-align:center;
  min-height:80vh;
  display:flex;
  align-items:center;
  background: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300d4aa' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: float 20s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.hero-inner{
  width:100%;
  position: relative;
  z-index: 1;
}
.hero-content{
  max-width:700px;
  margin:0 auto;
}
.headline{
  font-size: var(--h1-font-size, 3.5rem); /* Use CSS var for consistency */
  margin:0 0 24px;
  color: var(--text-bright);
  font-family: 'Inter', sans-serif;
  font-weight:700;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 20px rgba(0, 212, 170, 0.2);
  animation: slideInDown 0.8s ease-out;
}
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}
.accent{
  background: var(--gradient-2);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.5));
}
.subhead{
  color:var(--text);
  font-family: 'Inter', sans-serif;
  font-size:1.25rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin:0 0 24px;
  animation: slideInUp 0.8s ease-out 0.2s both;
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.roles{
  display:flex;
  align-items:center;
  /* Fix invalid justify-content value */
  justify-content:center;
  gap:8px;
  background: var(--gradient-2);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-family: 'JetBrains Mono', monospace;
  font-weight:400;
  margin-bottom:40px;
  font-size:1.1rem;
  padding: 12px 24px;
  border: 2px solid var(--accent);
  border-radius: 50px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.5px;
  animation: slideInUp 0.8s ease-out 0.4s both;
}
.cursor{
  opacity:1;
  animation:blink 1s infinite;
  color: var(--accent);
}
@keyframes blink{50%{opacity:0}}

.hero-cta{
  display:flex;
  gap:20px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:40px;
  animation: slideInUp 0.8s ease-out 0.6s both;
}
.social{
  display:flex;
  gap:24px;
  justify-content:center;
  animation: slideInUp 0.8s ease-out 0.8s both;
}
.social-link{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}
.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.3s ease;
  z-index: -1;
}
.social-link.github {
  color: var(--text);
  border-color: #333;
}
.social-link.github::before {
  background: linear-gradient(135deg, #333, #555);
}
.social-link.github:hover {
  border-color: #333;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(51, 51, 51, 0.3);
}
.social-link.linkedin {
  color: var(--text);
  border-color: #0077b5;
}
.social-link.linkedin::before {
  background: linear-gradient(135deg, #0077b5, #00a0dc);
}
.social-link.linkedin:hover {
  border-color: #0077b5;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 119, 181, 0.3);
}
.social-link.contact {
  color: var(--text);
  border-color: var(--accent);
}
.social-link.contact::before {
  background: var(--gradient-2);
}
.social-link.contact:hover {
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.social-link:hover::before {
  left: 0;
}

@media(max-width:768px){
  .hero{
    padding:100px 0 80px;
    min-height:90vh;
    display:flex;
    align-items:center;
  }
  
  .headline{
    font-size:2.8rem;
    margin-bottom:20px;
    line-height: 1.1;
  }
  
  .subhead{
    font-size:1.15rem;
    margin-bottom:20px;
    padding: 0 10px;
    line-height: 1.5;
  }
  
  .roles{
    font-size:1rem; 
    padding: 12px 24px;
    margin-bottom:32px;
    border-width: 1px;
  }
  
  .hero-cta{
    gap: 14px;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 32px;
  }
  
  .hero-cta .btn {
    padding: 16px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 140px;
  }
  
  .social {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .social-link {
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 120px;
    justify-content: center;
  }
}
/* Enhanced Mobile for Medium screens */
@media (max-width:600px){
  .hero{
    padding:80px 0 60px;
    min-height:85vh;
  }
  
  .headline{
    font-size:2.4rem;
    margin-bottom:18px;
  }
  
  .subhead{
    font-size:1.1rem;
    padding: 0 8px;
  }
  
  .roles{
    padding:10px 20px;
    font-size:0.95rem;
    margin-bottom:28px;
  }
  
  .hero-cta{
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .hero-cta .btn {
    padding: 14px 32px;
    font-size: 0.9rem;
    width: 200px;
    max-width: 90%;
  }
  
  .social {
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }
  
  .social-link {
    padding: 12px 24px;
    font-size: 0.85rem;
    width: 180px;
    max-width: 90%;
  }
  
  .project-minimal{
    padding:24px 20px;
    border-radius: 16px;
  }
  
  .skill-simple{
    padding:20px 16px;
    min-height: 90px;
  }
  
  .expertise-item{
    padding:24px 18px;
  }
  
  .contact-form{
    gap:18px;
    padding: 0 8px;
  }
  
  .contact-form input, .contact-form textarea{
    padding:16px 18px;
    font-size:1rem;
    border-radius: 12px;
  }
  
  .contact-form textarea {
    min-height: 120px;
  }
  
  .contact-form button {
    padding: 16px 32px;
    font-size: 0.95rem;
    font-weight: 700;
  }
}
@media (max-width:480px){
  .hero{
    padding:70px 0 50px;
    min-height:80vh;
  }
  
  .headline{
    font-size:2.2rem;
    line-height: 1.1;
    margin-bottom:16px;
  }
  
  .subhead{
    font-size:1rem;
    margin-bottom:18px;
    padding: 0 5px;
    line-height: 1.4;
  }
  
  .roles {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  
  .hero-cta .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
    width: 160px;
  }
  
  .social-link {
    padding: 10px 16px;
    font-size: 0.8rem;
    width: 150px;
  }
  
  .section{
    padding:50px 0;
  }
  
  .section h2{
    font-size:1.9rem;
    margin-bottom:20px;
    line-height: 1.2;
  }
  
  .lead{
    font-size:0.95rem;
    margin-bottom:28px;
    line-height: 1.5;
    padding: 0 8px;
  }
  
  .resume-actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .resume-actions .btn{
    padding:14px 32px;
    font-size:0.9rem;
    width: 200px;
    max-width: 90%;
    justify-content: center;
  }
  
  .project-links{
    flex-direction:column;
    gap: 8px;
    margin-top: 16px;
  }
  
  .project-link{
    flex:1 1 100%;
    padding: 10px 20px;
    font-size: 0.85rem;
    justify-content: center;
  }
  
  .expertise-grid{
    gap:14px;
  }
  
  .expertise-item {
    padding: 20px 16px;
  }
  
  .expertise-item h4{
    font-size:1rem;
    margin-bottom: 8px;
  }
  
  .expertise-item p{
    font-size:0.85rem;
    line-height: 1.4;
  }
  
  .skills-simple{
    gap:10px;
  }
  
  .contact-form {
    padding: 0 4px;
  }
  
  .contact-form input, 
  .contact-form textarea {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .form-actions .btn {
    width: 100%;
    padding: 14px 24px;
  }
  
  .footer-social {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-link {
    width: 44px; 
    height: 44px;
    font-size: 1rem;
  }
  
  .footer-info h3 {
    font-size: 1.3rem;
  }
  
  .footer-info p {
    font-size: 0.85rem;
  }
}
/* Buttons */
.btn{
  display:inline-block;
  padding:14px 32px;
  border-radius:25px;
  font-family: 'Inter', sans-serif;
  font-weight:600;
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:all 0.3s ease;
  font-size:1rem;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.3s ease;
  z-index: -1;
}
.btn.primary{
  background: var(--gradient-2);
  color: var(--bg);
  border: 2px solid transparent;
  box-shadow: var(--shadow-glow);
}
.btn.primary::before {
  background: var(--gradient-3);
}
.btn.primary:hover{
  transform:translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 212, 170, 0.4);
  color: white;
}
.btn.primary:hover::before {
  left: 0;
}
.btn.outline{
  background:rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border:2px solid var(--accent);
  color:var(--accent);
}
.btn.outline::before {
  background: var(--gradient-2);
}
.btn.outline:hover{
  transform:translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: var(--bg);
  border-color: var(--accent);
}
.btn.outline:hover::before {
  left: 0;
}

/* Sections */
.section{
  padding:100px 0;
  text-align: center;
}
.section h2{
  font-family: 'Inter', sans-serif;
  font-size: 2.25rem;
  background: var(--gradient-2);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  margin:0 0 32px;
  text-align:center;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 212, 170, 0.2);
}
.lead{
  color:var(--text);
  font-size:1.15rem;
  text-align:center;
  margin:0 auto 48px;
  max-width:650px;
  line-height: 1.7;
}

@media(max-width:768px){
  .section{padding:60px 0}
  .section h2{font-size:2rem}
  .btn{padding:10px 20px;font-size:0.9rem}
}

/* Minimal Skills Section */
.skills-filter-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.skill-filters {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.08), rgba(156, 136, 255, 0.08));
  border-radius: 50px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(100, 255, 218, 0.2);
  box-shadow: 
    0 8px 32px rgba(100, 255, 218, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  justify-content: center;
}

.skill-filter-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}

.skill-filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(100, 255, 218, 0.2), rgba(156, 136, 255, 0.2));
  transition: left 0.4s ease;
  border-radius: 30px;
}

.skill-filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #64ffda, #9c88ff);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.skill-filter-btn:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.skill-filter-btn:hover::before {
  left: 0;
}

.skill-filter-btn.active {
  color: var(--text-bright);
  background: linear-gradient(45deg, rgba(100, 255, 218, 0.15), rgba(156, 136, 255, 0.15));
  box-shadow: 
    0 4px 20px rgba(100, 255, 218, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skills-simple{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1000px;
}

.skill-simple{
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.05), rgba(156, 136, 255, 0.05));
  border: 2px solid transparent;
  background-clip: padding-box;
  padding: 32px 20px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  min-height: 120px;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 32px rgba(100, 255, 218, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.skill-simple::before{
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    #64ffda, #9c88ff, #64ffda, #9c88ff);
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  animation: gradientShift 4s ease infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-simple::after{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: -1;
}

.skill-simple.animate{
  animation: fadeInUp 0.3s ease forwards;
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.skill-simple:hover{
  transform: translateY(-12px) rotateY(5deg) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(100, 255, 218, 0.15),
    0 15px 30px rgba(156, 136, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skill-simple:hover::before{
  opacity: 1;
}

.skill-simple:hover::after{
  width: 120px;
  height: 120px;
}

.skill-simple:hover .skill-name{
  color: var(--text-bright);
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

/* Enhanced staggered entrance with floating animation */
.skill-simple:nth-child(1) { 
  animation-delay: 0.05s; 
  animation: fadeInUp 0.6s ease-out forwards, float 6s ease-in-out infinite;
}
.skill-simple:nth-child(2) { 
  animation-delay: 0.1s; 
  animation: fadeInUp 0.6s ease-out forwards, float 6s ease-in-out infinite 1s;
}
.skill-simple:nth-child(3) { 
  animation-delay: 0.15s; 
  animation: fadeInUp 0.6s ease-out forwards, float 6s ease-in-out infinite 2s;
}
.skill-simple:nth-child(4) { 
  animation-delay: 0.2s; 
  animation: fadeInUp 0.6s ease-out forwards, float 6s ease-in-out infinite 3s;
}
.skill-simple:nth-child(5) { 
  animation-delay: 0.25s; 
  animation: fadeInUp 0.6s ease-out forwards, float 6s ease-in-out infinite 4s;
}
.skill-simple:nth-child(6) { 
  animation-delay: 0.3s; 
  animation: fadeInUp 0.6s ease-out forwards, float 6s ease-in-out infinite 5s;
}
.skill-simple:nth-child(7) { 
  animation-delay: 0.35s; 
  animation: fadeInUp 0.6s ease-out forwards, float 6s ease-in-out infinite 6s;
}
.skill-simple:nth-child(8) { 
  animation-delay: 0.4s; 
  animation: fadeInUp 0.6s ease-out forwards, float 6s ease-in-out infinite 1s;
}

.skill-name{
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
  text-align: center;
  transition: color 0.2s ease;
  margin: 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}

.skill-category {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0;
  text-align: center;
  font-weight: 400;
  margin: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.skill-simple:hover .skill-category{
  opacity: 0.8;
}

/* Minimal breath animation */
.skill-simple.animate {
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.02);
    opacity: 0.9;
  }
}

/* Eye-Catching Light Theme Skills */
body.light-theme .skills-simple {
  background: none;
}

body.light-theme .skill-simple {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(155, 89, 182, 0.08));
  box-shadow: 
    0 8px 32px rgba(52, 152, 219, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.light-theme .skill-simple::before {
  background: linear-gradient(45deg, #3498db, #9b59b6, #3498db, #9b59b6);
}

body.light-theme .skill-simple::after {
  background: radial-gradient(circle, rgba(52, 152, 219, 0.3) 0%, transparent 70%);
}

body.light-theme .skill-simple:hover {
  box-shadow: 
    0 25px 50px rgba(52, 152, 219, 0.2),
    0 15px 30px rgba(155, 89, 182, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.light-theme .skill-name {
  color: #2c3e50;
}

body.light-theme .skill-category {
  color: #7f8c8d;
}

body.light-theme .skill-simple:hover .skill-name {
  color: #2c3e50;
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

body.light-theme .skill-filters {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.12), rgba(155, 89, 182, 0.12));
  border-color: rgba(52, 152, 219, 0.3);
  box-shadow: 
    0 8px 32px rgba(52, 152, 219, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.light-theme .skill-filter-btn {
  color: rgba(44, 62, 80, 0.7);
}

body.light-theme .skill-filter-btn::before {
  background: linear-gradient(45deg, rgba(52, 152, 219, 0.3), rgba(155, 89, 182, 0.3));
}

body.light-theme .skill-filter-btn::after {
  background: linear-gradient(45deg, #3498db, #9b59b6);
}

body.light-theme .skill-filter-btn:hover {
  color: rgba(44, 62, 80, 1);
}

body.light-theme .skill-filter-btn.active {
  color: #2c3e50;
  background: linear-gradient(45deg, rgba(52, 152, 219, 0.2), rgba(155, 89, 182, 0.2));
  box-shadow: 
    0 4px 20px rgba(52, 152, 219, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@media(max-width:768px){
  .skills-simple{
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
  .skill-simple{
    padding: 24px 16px;
    min-height: 100px;
    border-radius: 16px;
  }
  .skill-name {
    font-size: 0.95rem;
  }
  .skill-category {
    font-size: 0.7rem;
  }
  .skill-filters {
    padding: 10px 16px;
    gap: 8px;
  }
  .skill-filter-btn {
    font-size: 0.85rem;
    padding: 10px 18px;
  }
}

@media(max-width:600px){
  .skills-simple{
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
  }
  .skill-simple{
    padding: 20px 14px;
    min-height: 90px;
    border-radius: 14px;
  }
  .skill-filters {
    gap: 6px;
    padding: 8px 12px;
  }
  .skill-filter-btn {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}

@media(max-width:480px){
  .skills-simple{
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
  }
  .skill-simple{
    padding: 18px 12px;
    min-height: 80px;
    border-radius: 12px;
  }
  .skill-name {
    font-size: 0.85rem;
  }
  .skill-category {
    font-size: 0.65rem;
  }
  .skill-filter-btn {
    font-size: 0.75rem;
    padding: 8px 14px;
  }
}
/* Minimal Projects */
.projects-minimal{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
  max-width:1000px;
  margin:0 auto;
}

.project-minimal{
  background: linear-gradient(135deg, 
    rgba(100, 255, 218, 0.05) 0%, 
    rgba(78, 205, 196, 0.04) 50%, 
    rgba(138, 43, 226, 0.03) 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  padding: 28px;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 32px rgba(0, 212, 170, 0.08),
    0 4px 16px rgba(78, 205, 196, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.project-minimal::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    #00d4aa 0%, 
    #4ecdc4 25%, 
    #45b7d1 50%, 
    #8A2BE2 75%, 
    #00d4aa 100%);
  background-size: 400% 400%;
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: gradientShift 4s ease infinite;
}

.project-minimal:hover{
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 212, 170, 0.2),
    0 15px 30px rgba(78, 205, 196, 0.15),
    0 10px 20px rgba(138, 43, 226, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-minimal:hover::before {
  opacity: 1;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.project-minimal h3{
  margin: 0 0 12px;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.project-tag{
  display: inline-block;
  background: var(--gradient-3);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  align-self: flex-start;
}

.project-minimal p{
  color: var(--text);
  margin: 0 0 20px;
  line-height: 1.6;
  font-size: 1rem;
  text-align: justify;
  flex-grow: 1;
}

.tech-minimal{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  justify-content: flex-start;
}

.tech-minimal span{
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 212, 170, 0.3);
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
  align-items: center;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.project-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.3s ease;
  z-index: -1;
}

.github-link {
  background: rgba(255, 255, 255, 0.05);
  color: #e6e6e6;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.github-link::before {
  background: linear-gradient(135deg, #333, #555);
}

.github-link:hover {
  color: white;
  border-color: #333;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
}

.github-link:hover::before {
  left: 0;
}

.demo-link {
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent);
  border-color: var(--accent);
  backdrop-filter: blur(10px);
}

.demo-link::before {
  background: var(--gradient-2);
}

.demo-link:hover {
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.demo-link:hover::before {
  left: 0;
}

.project-link i {
  font-size: 1rem;
}

.project-link:active {
  transform: translateY(-1px);
}

@media(max-width:768px){
  .projects-minimal{
    grid-template-columns:1fr;
    gap:20px;
  }
  .project-minimal{
    padding:20px;
  }
  .project-links {
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
  }
  .project-link {
    font-size: 0.8rem;
    padding: 8px 14px;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  .project-link i {
    font-size: 0.9rem;
  }
}

/* Modern Box-Shaped About Section */
.about-content {
  max-width: 1200px;
  margin: 0 auto 60px;
  text-align: center;
  position: relative;
}

/* About Intro Box */
.about-intro-box {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.08), rgba(156, 136, 255, 0.08));
  border: 2px solid rgba(100, 255, 218, 0.25);
  border-radius: 28px;
  padding: 48px 40px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 15px 50px rgba(100, 255, 218, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.about-intro-box::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, 
    rgba(100, 255, 218, 0.4), 
    rgba(156, 136, 255, 0.4), 
    rgba(100, 255, 218, 0.4), 
    rgba(156, 136, 255, 0.4));
  background-size: 400% 400%;
  border-radius: 30px;
  z-index: -1;
  animation: gradientRotate 8s ease infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-intro-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.08), 
    transparent);
  transition: left 0.8s ease;
}

.about-intro-box:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(100, 255, 218, 0.4);
  box-shadow: 
    0 30px 80px rgba(100, 255, 218, 0.15),
    0 20px 40px rgba(156, 136, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.about-intro-box:hover::before {
  opacity: 1;
}

.about-intro-box:hover::after {
  left: 100%;
}

.intro-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.2), rgba(156, 136, 255, 0.2));
  border: 3px solid rgba(100, 255, 218, 0.4);
  border-radius: 25px;
  position: relative;
  overflow: hidden;
}

.intro-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(100, 255, 218, 0.15), rgba(156, 136, 255, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-intro-box:hover .intro-icon::before {
  opacity: 1;
}

.intro-icon i {
  font-size: 2.8rem;
  background: linear-gradient(135deg, #64ffda, #9c88ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 1;
  position: relative;
}

.intro-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.intro-content h3 {
  font-size: 2.4rem;
  background: linear-gradient(135deg, #64ffda, #9c88ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(100, 255, 218, 0.2);
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 750px;
  margin: 0 auto;
}

.intro-lead {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.intro-lead .highlight {
  background: linear-gradient(135deg, #64ffda, #9c88ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  position: relative;
}

.intro-lead .highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #64ffda, #9c88ff);
  opacity: 0.6;
  border-radius: 1px;
}

.intro-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.intro-description strong {
  color: var(--text-bright);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(156, 136, 255, 0.1));
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(100, 255, 218, 0.2);
  font-size: 1.05em;
}

.intro-mission {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
  font-style: italic;
  position: relative;
  padding-left: 24px;
  border-left: 3px solid rgba(100, 255, 218, 0.3);
  background: rgba(100, 255, 218, 0.03);
  padding: 16px 20px 16px 24px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.intro-mission::before {
  content: '"';
  position: absolute;
  left: 8px;
  top: 12px;
  font-size: 1.8rem;
  color: var(--accent);
  font-family: serif;
  opacity: 0.6;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
}

.intro-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.intro-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(100, 255, 218, 0.2), rgba(156, 136, 255, 0.2));
  transition: left 0.3s ease;
}

.intro-tag:hover {
  border-color: rgba(100, 255, 218, 0.5);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.2);
}

.intro-tag:hover::before {
  left: 0;
}

.intro-tag i {
  font-size: 1rem;
  color: var(--accent);
  z-index: 1;
  position: relative;
}

.intro-tag span {
  z-index: 1;
  position: relative;
}

.collaboration-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.collaboration-cta p {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.3s ease;
  z-index: -1;
}

.cta-btn.primary {
  background: linear-gradient(135deg, #64ffda, #9c88ff);
  color: var(--bg);
  border: 2px solid transparent;
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.3);
}

.cta-btn.primary::before {
  background: linear-gradient(135deg, #9c88ff, #64ffda);
}

.cta-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(100, 255, 218, 0.4);
  color: white;
}

.cta-btn.secondary {
  background: rgba(156, 136, 255, 0.1);
  color: var(--accent);
  border: 2px solid rgba(156, 136, 255, 0.4);
}

.cta-btn.secondary::before {
  background: linear-gradient(135deg, rgba(156, 136, 255, 0.3), rgba(100, 255, 218, 0.3));
}

.cta-btn.secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(156, 136, 255, 0.3);
  color: var(--text-bright);
  border-color: rgba(156, 136, 255, 0.6);
}

.cta-btn:hover::before {
  left: 0;
}

.cta-btn i {
  font-size: 1rem;
}

@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.about-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.about-box {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.05), rgba(156, 136, 255, 0.05));
  border: 2px solid rgba(100, 255, 218, 0.2);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(15px);
  box-shadow: 
    0 12px 40px rgba(100, 255, 218, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 320px;
}

.about-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(100, 255, 218, 0.3), 
    transparent, 
    rgba(156, 136, 255, 0.3), 
    transparent);
  background-size: 400% 400%;
  border-radius: 26px;
  z-index: -1;
  animation: borderGlow 6s ease infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.05), 
    transparent);
  transition: left 0.6s ease;
}

.about-box:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(100, 255, 218, 0.4);
  box-shadow: 
    0 25px 60px rgba(100, 255, 218, 0.15),
    0 15px 35px rgba(156, 136, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.about-box:hover::before {
  opacity: 1;
}

.about-box:hover::after {
  left: 100%;
}

.box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.15), rgba(156, 136, 255, 0.15));
  border: 2px solid rgba(100, 255, 218, 0.3);
  border-radius: 20px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.box-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(100, 255, 218, 0.1), rgba(156, 136, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-box:hover .box-icon::before {
  opacity: 1;
}

.box-icon i {
  font-size: 2rem;
  background: linear-gradient(135deg, #64ffda, #9c88ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 1;
  position: relative;
}

.box-content {
  flex: 1;
}

.box-content h3 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #64ffda, #9c88ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.box-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Journey Highlights */
.journey-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(100, 255, 218, 0.08);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(100, 255, 218, 0.12);
  border-color: rgba(100, 255, 218, 0.3);
  transform: translateX(8px);
}

.highlight-item i {
  font-size: 1.1rem;
  color: var(--accent);
  min-width: 20px;
}

.highlight-item span {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* Values List */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(156, 136, 255, 0.08);
  border: 1px solid rgba(156, 136, 255, 0.2);
  border-radius: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.value-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(135deg, #9c88ff, #64ffda);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.value-item:hover {
  background: rgba(156, 136, 255, 0.12);
  border-color: rgba(156, 136, 255, 0.3);
  transform: translateX(8px);
}

.value-item:hover::before {
  transform: scaleY(1);
}

.value-item i {
  font-size: 1.3rem;
  background: linear-gradient(135deg, #9c88ff, #64ffda);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 24px;
}

.value-item span {
  font-size: 1rem;
  color: var(--text-bright);
  font-weight: 600;
}

/* Box-specific colors for better distinction */
.journey-box {
  border-color: rgba(100, 255, 218, 0.3);
}

.journey-box:hover {
  border-color: rgba(100, 255, 218, 0.5);
  box-shadow: 
    0 25px 60px rgba(100, 255, 218, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.expertise-box {
  border-color: rgba(69, 183, 209, 0.3);
}

.expertise-box:hover {
  border-color: rgba(69, 183, 209, 0.5);
  box-shadow: 
    0 25px 60px rgba(69, 183, 209, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.values-box {
  border-color: rgba(156, 136, 255, 0.3);
}

.values-box:hover {
  border-color: rgba(156, 136, 255, 0.5);
  box-shadow: 
    0 25px 60px rgba(156, 136, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Light theme styles for new about boxes */
body.light-theme .about-box {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(155, 89, 182, 0.08));
  border-color: rgba(52, 152, 219, 0.3);
  box-shadow: 
    0 12px 40px rgba(52, 152, 219, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.light-theme .about-box:hover {
  border-color: rgba(52, 152, 219, 0.5);
  box-shadow: 
    0 25px 60px rgba(52, 152, 219, 0.2),
    0 15px 35px rgba(155, 89, 182, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.light-theme .box-icon {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(155, 89, 182, 0.15));
  border-color: rgba(52, 152, 219, 0.4);
}

body.light-theme .box-icon i {
  background: linear-gradient(135deg, #3498db, #9b59b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .box-content h3 {
  background: linear-gradient(135deg, #3498db, #9b59b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .box-content p {
  color: #2c3e50;
}

body.light-theme .highlight-item {
  background: rgba(52, 152, 219, 0.1);
  border-color: rgba(52, 152, 219, 0.3);
}

body.light-theme .highlight-item:hover {
  background: rgba(52, 152, 219, 0.15);
  border-color: rgba(52, 152, 219, 0.4);
}

body.light-theme .highlight-item i {
  color: #3498db;
}

body.light-theme .highlight-item span {
  color: #2c3e50;
}

body.light-theme .value-item {
  background: rgba(155, 89, 182, 0.1);
  border-color: rgba(155, 89, 182, 0.3);
}

body.light-theme .value-item:hover {
  background: rgba(155, 89, 182, 0.15);
  border-color: rgba(155, 89, 182, 0.4);
}

body.light-theme .value-item::before {
  background: linear-gradient(135deg, #9b59b6, #3498db);
}

body.light-theme .value-item i {
  background: linear-gradient(135deg, #9b59b6, #3498db);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .value-item span {
  color: #2c3e50;
}

/* Light theme styles for intro box */
body.light-theme .about-intro-box {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
  border-color: rgba(52, 152, 219, 0.4);
  box-shadow: 
    0 15px 50px rgba(52, 152, 219, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.light-theme .about-intro-box:hover {
  border-color: rgba(52, 152, 219, 0.6);
  box-shadow: 
    0 30px 80px rgba(52, 152, 219, 0.25),
    0 20px 40px rgba(155, 89, 182, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.light-theme .intro-icon {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(155, 89, 182, 0.2));
  border-color: rgba(52, 152, 219, 0.5);
}

body.light-theme .intro-icon i {
  background: linear-gradient(135deg, #3498db, #9b59b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .intro-content h3 {
  background: linear-gradient(135deg, #3498db, #9b59b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .intro-lead {
  color: #1a2433;
}

body.light-theme .intro-lead .highlight {
  background: linear-gradient(135deg, #3498db, #9b59b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .intro-lead .highlight::after {
  background: linear-gradient(135deg, #3498db, #9b59b6);
}

body.light-theme .intro-description {
  color: #2c3e50;
}

body.light-theme .intro-description strong {
  color: #1a2433;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.12), rgba(155, 89, 182, 0.12));
  border-color: rgba(52, 152, 219, 0.3);
}

body.light-theme .intro-mission {
  color: #556176;
  border-left-color: rgba(52, 152, 219, 0.4);
  background: rgba(52, 152, 219, 0.05);
}

body.light-theme .intro-mission::before {
  color: #3498db;
}

body.light-theme .intro-tag {
  background: rgba(52, 152, 219, 0.12);
  border-color: rgba(52, 152, 219, 0.4);
  color: #2c3e50;
}

body.light-theme .intro-tag:hover {
  border-color: rgba(52, 152, 219, 0.6);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

body.light-theme .intro-tag i {
  color: #3498db;
}

body.light-theme .collaboration-cta p {
  color: #3498db;
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

body.light-theme .cta-btn.primary {
  background: linear-gradient(135deg, #3498db, #9b59b6);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

body.light-theme .cta-btn.primary:hover {
  box-shadow: 0 12px 35px rgba(52, 152, 219, 0.5);
}

body.light-theme .cta-btn.secondary {
  background: rgba(155, 89, 182, 0.12);
  color: #9b59b6;
  border-color: rgba(155, 89, 182, 0.5);
}

body.light-theme .cta-btn.secondary:hover {
  box-shadow: 0 8px 25px rgba(155, 89, 182, 0.4);
  color: #2c3e50;
  border-color: rgba(155, 89, 182, 0.7);
}

/* Responsive Design for About Boxes */
@media(max-width: 768px) {
  .about-intro-box {
    padding: 40px 28px;
    gap: 28px;
    margin-bottom: 40px;
    border-radius: 24px;
  }
  
  .intro-icon {
    width: 75px;
    height: 75px;
    border-radius: 20px;
  }
  
  .intro-icon i {
    font-size: 2.4rem;
  }
  
  .intro-content h3 {
    font-size: 2.1rem;
  }
  
  .intro-text {
    gap: 18px;
  }
  
  .intro-lead {
    font-size: 1.25rem;
  }
  
  .intro-description {
    font-size: 1.1rem;
  }
  
  .intro-mission {
    font-size: 1rem;
    padding: 14px 18px 14px 20px;
  }
  
  .intro-mission::before {
    font-size: 1.6rem;
    top: 10px;
  }
  
  .intro-tags {
    gap: 12px;
  }
  
  .intro-tag {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .collaboration-cta p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    gap: 12px;
  }
  
  .cta-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .about-boxes {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .about-box {
    padding: 32px 24px;
    min-height: auto;
  }
  
  .box-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }
  
  .box-icon i {
    font-size: 1.8rem;
  }
  
  .box-content h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }
  
  .box-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .journey-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .highlight-item {
    padding: 10px 14px;
  }
  
  .highlight-item span {
    font-size: 0.85rem;
  }
  
  .value-item {
    padding: 14px 16px;
  }
  
  .value-item span {
    font-size: 0.95rem;
  }
  
  .expertise-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }
  
  .expertise-item {
    padding: 20px 12px;
  }
  
  .expertise-item i {
    font-size: 1.8rem;
    margin-bottom: 14px;
  }
  
  .expertise-item h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .expertise-item p {
    font-size: 0.8rem;
  }
}

@media(max-width: 600px) {
  .about-intro-box {
    padding: 32px 20px;
    gap: 24px;
    border-radius: 20px;
  }
  
  .intro-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
  }
  
  .intro-icon i {
    font-size: 2rem;
  }
  
  .intro-content h3 {
    font-size: 1.9rem;
  }
  
  .intro-text {
    gap: 16px;
  }
  
  .intro-lead {
    font-size: 1.15rem;
  }
  
  .intro-description {
    font-size: 1.05rem;
  }
  
  .intro-mission {
    font-size: 0.95rem;
    padding: 12px 16px 12px 18px;
  }
  
  .intro-mission::before {
    font-size: 1.4rem;
    top: 8px;
  }
  
  .intro-tags {
    gap: 10px;
  }
  
  .intro-tag {
    padding: 8px 14px;
    font-size: 0.85rem;
    gap: 6px;
  }
  
  .intro-tag i {
    font-size: 0.9rem;
  }
  
  .cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .about-box {
    padding: 28px 20px;
  }
  
  .box-icon {
    width: 55px;
    height: 55px;
  }
  
  .box-icon i {
    font-size: 1.6rem;
  }
  
  .box-content h3 {
    font-size: 1.4rem;
  }
  
  .box-content p {
    font-size: 0.95rem;
  }
  
  .journey-highlights {
    gap: 10px;
  }
  
  .highlight-item {
    padding: 8px 12px;
    gap: 10px;
  }
  
  .highlight-item i {
    font-size: 1rem;
  }
  
  .highlight-item span {
    font-size: 0.8rem;
  }
  
  .value-item {
    padding: 12px 14px;
    gap: 12px;
  }
  
  .value-item i {
    font-size: 1.1rem;
  }
  
  .value-item span {
    font-size: 0.9rem;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media(max-width: 480px) {
  .about-intro-box {
    padding: 28px 16px;
    gap: 20px;
    border-radius: 18px;
  }
  
  .intro-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }
  
  .intro-icon i {
    font-size: 1.8rem;
  }
  
  .intro-content h3 {
    font-size: 1.7rem;
  }
  
  .intro-text {
    gap: 14px;
  }
  
  .intro-lead {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .intro-description {
    font-size: 1rem;
  }
  
  .intro-description strong {
    padding: 1px 4px;
    font-size: 1em;
  }
  
  .intro-mission {
    font-size: 0.9rem;
    padding: 12px 14px 12px 16px;
  }
  
  .intro-mission::before {
    font-size: 1.3rem;
    left: 6px;
    top: 8px;
  }
  
  .intro-tags {
    flex-direction: column;
    gap: 8px;
  }
  
  .intro-tag {
    padding: 8px 12px;
    font-size: 0.8rem;
    align-self: center;
    max-width: 200px;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
    justify-content: center;
    width: 100%;
    max-width: 200px;
  }
  
  .about-box {
    padding: 24px 16px;
    border-radius: 20px;
  }
  
  .box-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }
  
  .box-icon i {
    font-size: 1.4rem;
  }
  
  .box-content h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
  }
  
  .box-content p {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  
  .highlight-item,
  .value-item {
    border-radius: 10px;
  }
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.expertise-item {
  background: rgba(69, 183, 209, 0.05);
  border: 1px solid rgba(69, 183, 209, 0.2);
  padding: 24px 16px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.expertise-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-4), var(--accent-3));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.expertise-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-4);
  background: rgba(69, 183, 209, 0.08);
}

.expertise-item:hover::before {
  transform: scaleX(1);
}

.expertise-item i {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent-4), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  display: block;
}

.expertise-item h4 {
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 12px;
  font-weight: 600;
  text-align: center;
}

.expertise-item p {
  color: var(--text);
  line-height: 1.5;
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

.about-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.about-card{
  background: var(--card);
  border: 2px solid rgba(78, 205, 196, 0.2);
  padding: 28px;
  border-radius: 16px;
  color: var(--text);
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-3);
  box-shadow: 0 15px 35px rgba(78, 205, 196, 0.3);
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card strong {
  color: var(--text-bright);
  font-weight: 700;
}

.about-card #contact-email {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
  margin-bottom: 8px;
  display: block;
}

.about-card #contact-email:hover {
  color: var(--accent-3);
}

.about-card #copy-email {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 15px;
  margin-top: 8px;
}

/* Resume Section */
.resume-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.resume-actions .btn {
  padding: 16px 32px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resume-actions .btn i {
  font-size: 1rem;
}

/* Contact form */
.contact-form{
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  text-align: left;
}
.contact-form input,
.contact-form textarea{
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid rgba(69, 183, 209, 0.3);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-4);
  box-shadow: 0 0 0 3px rgba(69, 183, 209, 0.2);
  outline: none;
  transform: translateY(-2px);
}
.contact-form button {
  background: var(--gradient-2);
  color: var(--bg);
  border: none;
  padding: 16px 32px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-glow);
}
.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 212, 170, 0.4);
}

.form-actions{
  display:flex;
  gap:12px;
  justify-content:center;
}
.form-status{
  color:var(--accent);
  text-align:center;
  margin-top:16px;
}

/* Footer */
.site-footer{
  padding: 50px 0 30px;
  background: linear-gradient(135deg, var(--card) 0%, rgba(26, 31, 58, 0.9) 100%);
  border-top: 1px solid rgba(0, 212, 170, 0.2);
  backdrop-filter: blur(15px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.footer-info h3 {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-info p {
  color: var(--text);
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

.footer-email {
  margin-top: 15px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 25px;
  transition: all 0.3s ease;
  background: rgba(0, 212, 170, 0.05);
}

.email-link:hover {
  background: rgba(0, 212, 170, 0.1);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.2);
}

.email-link i {
  font-size: 1rem;
}

.footer-social {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  color: var(--text);
  text-decoration: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.footer-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.footer-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
}

.footer-link:hover::before {
  opacity: 1;
}

.footer-link i {
  font-size: 1.2rem;
  z-index: 1;
}

.footer-bottom {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--text);
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 40px 0 25px;
  }
  
  .footer-content {
    gap: 25px;
  }
  
  .footer-social {
    gap: 15px;
  }
  
  .footer-link {
    width: 40px;
    height: 40px;
  }
  
  .footer-link i {
    font-size: 1.1rem;
  }
}

/* Animations */
.fade-up{
  opacity:0;
  transform:translateY(20px);
  transition:all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.fade-up.animate{
  opacity:1;
  transform:translateY(0);
}

/* Enhanced Mobile Navigation */
@media(max-width:768px){
  #nav-toggle{
    display:block;
    z-index: 1001;
  }
  
  .nav{
    display:none;
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background: linear-gradient(145deg, rgba(10,14,39,0.98), rgba(26,31,58,0.96));
    flex-direction:column;
    padding:80px 32px 40px;
    justify-content:center;
    align-items:center;
    backdrop-filter: blur(20px);
    z-index: 1000;
    gap:20px;
    animation: slideInNav 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav.show{
    display:flex;
  }
  
  .nav a{
    padding:18px 32px;
    border:2px solid rgba(0,212,170,0.2);
    border-radius:15px;
    background:rgba(0,212,170,0.05);
    backdrop-filter: blur(10px);
    font-size:1.1rem;
    font-weight:600;
    width:200px;
    text-align:center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    opacity: 0;
    animation: slideInNavItem 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  
  .nav a:nth-child(1) { animation-delay: 0.1s; }
  .nav a:nth-child(2) { animation-delay: 0.15s; }
  .nav a:nth-child(3) { animation-delay: 0.2s; }
  .nav a:nth-child(4) { animation-delay: 0.25s; }
  .nav a:nth-child(5) { animation-delay: 0.3s; }
  .nav a:nth-child(6) { animation-delay: 0.35s; }
  
  .nav a:hover{
    background:rgba(0,212,170,0.15);
    border-color:var(--accent);
    transform:scale(1.05) translateY(0);
    box-shadow: 0 10px 30px rgba(0,212,170,0.3);
  }
  
  .nav a.active{
    background: linear-gradient(135deg, rgba(0,212,170,0.2), rgba(156,136,255,0.2));
    border-color:var(--accent);
    box-shadow: 0 8px 25px rgba(0,212,170,0.4);
  }
  
  body.no-scroll{overflow:hidden}
  
  #nav-toggle[aria-expanded="true"]{
    background:rgba(0,212,170,0.2);
    border-color:var(--accent);
    transform: rotate(90deg);
  }
  
  @keyframes slideInNav {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes slideInNavItem {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Utility / Minor spacing fixes */
.about-story p, .about-values p{margin-top:0}
.expertise-grid{margin-top:24px}
.project-minimal h3{line-height:1.25}
.project-minimal p{margin-top:0}
.contact-form textarea{resize:vertical;min-height:140px}

/* Improve tap targets on mobile */
@media (max-width:768px){
  .nav a{font-size:1rem;padding:14px 0}
  .footer-link{width:48px;height:48px}
}

/* Mobile Touch Enhancements */
@media (hover: none) and (pointer: coarse) {
  /* Touch device specific styles */
  .btn, .social-link, .project-link, .skill-filter-btn, .nav a {
    min-height: 44px;
    min-width: 44px;
  }
  
  .skill-simple:hover,
  .project-minimal:hover,
  .about-box:hover {
    transform: none;
  }
  
  .skill-simple:active,
  .project-minimal:active,
  .about-box:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .btn:active, 
  .social-link:active, 
  .project-link:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
}

/* Enhanced Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 60px 0 40px;
    min-height: 100vh;
  }
  
  .headline {
    font-size: 2.2rem;
  }
  
  .subhead {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: row;
    gap: 16px;
  }
  
  .social {
    flex-direction: row;
    gap: 12px;
  }
  
  .section {
    padding: 40px 0;
  }
}

/* Very Small Mobile Devices */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  
  .hero {
    padding: 60px 0 40px;
  }
  
  .headline {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  
  .subhead {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }
  
  .roles {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .hero-cta .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
    width: 140px;
  }
  
  .social-link {
    padding: 8px 12px;
    font-size: 0.75rem;
    width: 120px;
  }
  
  .section h2 {
    font-size: 1.7rem;
  }
  
  .lead {
    font-size: 0.9rem;
    padding: 0 4px;
  }
  
  .about-intro-box {
    padding: 20px 12px;
    gap: 16px;
  }
  
  .intro-icon {
    width: 50px;
    height: 50px;
  }
  
  .intro-icon i {
    font-size: 1.5rem;
  }
  
  .intro-content h3 {
    font-size: 1.5rem;
  }
  
  .intro-tags {
    flex-direction: column;
    gap: 6px;
  }
  
  .intro-tag {
    padding: 6px 10px;
    font-size: 0.75rem;
    max-width: 160px;
  }
  
  .cta-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    width: 120px;
  }
}

/* Accessibility focus outlines */
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Prevent animation jank on very small screens */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}
}

/* Enhanced Interactive Features */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg), var(--card));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
}

.loading-content {
  text-align: center;
  color: var(--text);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.mobile-loading .loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-2);
  z-index: 1000;
  transition: width 0.25s ease;
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.5);
}

.nav a.clicked {
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

/* Mobile loading animation */
.mobile-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.mobile-loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Mobile scroll indicator */
.mobile-scroll-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  animation: bounce 2s infinite;
  z-index: 100;
  font-size: 24px;
  display: none;
}

@media (max-width: 768px) {
  .mobile-scroll-indicator {
    display: block;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text: #ffffff;
    --bg: #000000;
    --accent: #00ffff;
  }
}

/* Print styles */
@media print {
  * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  
  .header, .nav, .mobile-nav {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
    margin-bottom: 2rem;
  }
}
