:root {
  --bg-color: #0B1121;
  --bg-rgb: 11, 17, 33;
  --primary-color: #151C2E;
  --text-color: #8892B0;
  --accent-color: #00FFB2;
  --accent-rgb: 0, 255, 178;
  --secondary-accent: #4F46E5;
  --secondary-accent-rgb: 79, 70, 229;
  --btn-bg: #00FFB2;
  --btn-text: #0B1121;
  --header-bg: rgba(11, 17, 33, 0.95);
  --card-bg: rgba(21, 28, 46, 0.7);
  --heading-color: #E2E8F0;
  --highlight-color: #00FFB2;
  --border-radius: 16px;
  --neon-shadow: 0 0 15px rgba(0, 255, 178, 0.3);
  --card-border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Variables for Light Theme */
body.light-mode {
  --bg-color: #f6f8ff;
  --bg-rgb: 246, 248, 255;
  --primary-color: #ffffff;
  --text-color: #4a5568;
  --accent-color: #007ACC;
  --accent-rgb: 0, 122, 204;
  --btn-bg: #00b4d8;
  --btn-text: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.95);
  --card-bg: rgba(255, 255, 255, 0.9);
  --heading-color: #2d3748;
  --highlight-color: #00b4d8;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.spinner {
  border: 4px solid var(--card-bg);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Easter Canvas */
#easterCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allow clicks to pass through by default */
  z-index: 1;
  opacity: 0.7;
}

/* Add a class for when we want to capture clicks */
#easterCanvas.clickable {
  pointer-events: auto;
}

/* Navigation */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(11, 17, 33, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 178, 0.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  z-index: 1000;
  transition: background 0.3s ease;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.logo a {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--accent-color);
}
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-color);
  margin-left: 1rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger .bar {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  transition: background 0.3s ease;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    flex-direction: column;
    background: var(--primary-color);
    width: 200px;
    padding: 1rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
}

/* Hero Section Styles */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-color);
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(var(--accent-rgb), 0.1) 0%,
        rgba(var(--bg-rgb), 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.typing-container {
    margin-bottom: 2rem;
}

.typing-container h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 5px;
    left: 0;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.typing-text {
    font-size: 2rem;
    color: var(--accent-color);
    min-height: 2.5rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--accent-color);
    color: var(--bg-color);
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 1rem;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.arrow-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.arrow-scroll span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    transform: rotate(45deg);
    animation: arrowDown 1.5s infinite;
    opacity: 0;
}

.arrow-scroll span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow-scroll span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes arrowDown {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* Updated Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.chevrons {
    padding: 1rem 0;
    margin: 0 auto;
    width: 40px;
    height: 40px;
    position: relative;
}

.chevrondown {
    position: absolute;
    width: 28px;
    height: 8px;
    opacity: 0;
    transform: scale3d(0.5, 0.5, 0.5);
    animation: move 3s ease-out infinite;
}

.chevrondown:first-child {
    animation: move 3s ease-out 1s infinite;
}

.chevrondown:nth-child(2) {
    animation: move 3s ease-out 2s infinite;
}

.chevrondown:before,
.chevrondown:after {
    content: ' ';
    position: absolute;
    top: 0;
    height: 100%;
    width: 51%;
    background: var(--accent-color);
}

.chevrondown:before {
    left: 0;
    transform: skew(0deg, 30deg);
}

.chevrondown:after {
    right: 0;
    transform: skew(0deg, -30deg);
}

@keyframes move {
    25% {
        opacity: 1;
        transform: translateY(10px) scale3d(1, 1, 1);
    }
    75% {
        opacity: 1;
        transform: translateY(30px) scale3d(1, 1, 1);
    }
    100% {
        opacity: 0;
        transform: translateY(50px) scale3d(0.5, 0.5, 0.5);
    }
}

/* Sections */
.section {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--heading-color); /* Fallback color */
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    display: block; /* Change from inline-block to block */
}

/* Add gradient effect as a border instead of text */
.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
    border-radius: 2px;
}

/* Add a subtle glow effect */
.section h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    filter: blur(8px);
    background: var(--accent-color);
    opacity: 0.5;
}

/* About Section */
.about-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.about-img img {
  width: 300px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  animation: float 6s ease-in-out infinite;
}
.about-text p {
  margin-bottom: 1rem;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  opacity: 1 !important;
  transform: none !important;
}
.skill-card {
  background: var(--primary-color);
  border-radius: var(--border-radius);
  border: var(--card-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.5s ease-out forwards;
}
.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--neon-shadow);
  border-color: var(--accent-color);
}
.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card i {
  color: var(--accent-color);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.skill-card:hover i {
  transform: scale(1.2) rotate(360deg);
}
.skill-level {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 1rem;
  overflow: hidden;
}
.progress {
  height: 100%;
  background: var(--accent-color);
  border-radius: 3px;
  transform-origin: left;
  animation: progressBar 1.5s ease-out forwards;
}
@keyframes progressBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--primary-color);
  border-radius: var(--border-radius);
  border: var(--card-border);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.5s ease-out forwards;
  padding: 8px;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--neon-shadow);
  border-color: var(--accent-color);
}
.project-card img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.project-card:hover img {
  transform: scale(1.1) rotate(2deg);
}
.project-info {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 90%;
  border-radius: 8px;
}

/* Project Cards Enhancement */
.project-tags {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.tag {
  background: var(--accent-color);
  color: var(--bg-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.3s ease-out;
}
.modal-content {
  background: var(--primary-color);
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}
.modal-content h3 {
    color: var(--heading-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-color);
}

.modal-body {
  margin-top: 1.5rem;
}

.modal-body img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.project-details h4 {
  color: var(--accent-color);
  margin: 1.5rem 0 0.5rem;
}

.project-details ul {
  list-style-position: inside;
  margin-bottom: 1rem;
}

.tech-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.tech-item {
  background: rgba(187, 134, 252, 0.1);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.9rem;
  border: 1px solid var(--accent-color);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--accent-color);
}
.timeline-item {
  margin-bottom: 2rem;
  position: relative;
  animation: slideIn 0.5s ease-out forwards;
  margin-left: 2rem;
  padding: 1rem;
  background: var(--primary-color);
  border: var(--card-border);
  border-radius: var(--border-radius);
  opacity: 1;
  transform: translateY(0);
}
.timeline-item h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 20px var(--accent-color);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(187, 134, 252, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(187, 134, 252, 0); }
  100% { box-shadow: 0 0 0 0 rgba(187, 134, 252, 0); }
}

/* Contact Form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: auto;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  background: var(--card-bg);
  color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent-color);
}
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-color);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
}

.input-wrapper input,
.input-wrapper textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 178, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-color: var(--accent-color);
  box-shadow: var(--neon-shadow);
  transform: translateY(-2px);
}

/* Social Links & Footer */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: var(--btn-bg);
}
footer {
  background: var(--primary-color);
  color: var(--text-color);
  text-align: center;
  padding: 1rem 0;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.social-links a:hover {
  transform: translateY(-5px);
  background: var(--accent-color);
  color: var(--bg-color);
}

/* Animations */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Animações Avançadas */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateX(-50px); 
  }
  to { 
    opacity: 1;
    transform: translateX(0); 
  }
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes progressBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-accent);
}

/* Responsividade melhorada */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .about-img img {
    width: 200px;
    margin-bottom: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Section Enhancement */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: var(--card-border);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-header {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-header h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: var(--card-border);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(10px);
    border-color: var(--accent-color);
    box-shadow: var(--neon-shadow);
}

.card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 50%;
    color: var(--bg-color);
    font-size: 1.2rem;
}

.card-content h3 {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.card-content a,
.card-content p {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-content a:hover {
    color: var(--accent-color);
}

.social-links h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: var(--card-border);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: var(--neon-shadow);
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: var(--card-border);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    pointer-events: none;
}

.input-wrapper textarea + i {
    top: 1.5rem;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--accent-color);
    box-shadow: var(--neon-shadow);
    transform: translateY(-2px);
}

@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 1rem;
    }
}

/* Blog Section Enhancement */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    border: var(--card-border);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-shadow);
    border-color: var(--accent-color);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--btn-text);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.blog-tags {
    margin-bottom: 1.5rem;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.blog-btn:hover {
    background: var(--accent-color);
    color: var(--btn-text);
}

.blog-btn i {
    transition: transform 0.3s ease;
}

.blog-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Improvements */
@media (max-width: 768px) {
  /* Global adjustments */
  .section {
    padding: 3rem 1rem;
  }

  .container {
    width: 95%;
    padding: 1rem 0;
  }

  /* Header/Navigation */
  .nav-container {
    padding: 0.8rem 1rem;
  }

  .nav-links {
    background: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 0 0 15px 15px;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  /* Hero Section */
  #hero {
    height: 100vh;
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  /* About Section */
  .about-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-img img {
    width: 180px;
    margin-bottom: 1rem;
  }

  .about-text {
    text-align: left;
    padding: 0 1rem;
  }

  /* Skills Section */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0 0.5rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

  /* Projects Section */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .project-card {
    margin: 0;
  }

  .project-info {
    padding: 1.2rem;
  }

  /* Timeline Section */
  .timeline {
    padding-left: 20px;
  }

  .timeline-item {
    margin-left: 1.5rem;
    padding: 1rem;
  }

  .timeline-item::before {
    left: -2rem;
    width: 15px;
    height: 15px;
  }

  /* Blog Section */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .blog-card {
    margin: 0;
  }

  .blog-image img {
    height: 180px;
  }

  /* Contact Section */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-card {
    padding: 1.2rem;
  }

  .input-wrapper input,
  .input-wrapper textarea {
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
  }

  .submit-btn {
    padding: 0.8rem;
  }

  /* Modal Adjustments */
  .modal-content {
    width: 95%;
    padding: 1.5rem;
    margin: 1rem;
  }

  /* Footer */
  footer {
    padding: 1.5rem 1rem;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .social-links a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 380px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .project-tags,
  .blog-tags {
    gap: 0.3rem;
  }

  .tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .contact-card i {
    font-size: 1.5rem;
  }

  .contact-card h3 {
    font-size: 1rem;
  }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    height: auto;
    min-height: 100vh;
    padding: 6rem 1rem 3rem;
  }

  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-img img {
    width: 150px;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
  #hero {
    height: -webkit-fill-available;
  }
}

/* Mobile First Approach */
@media (max-width: 768px) {
  /* Navigation fixes */
  .nav-container {
    padding: 0.8rem;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--primary-color);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  /* Hero section fixes */
  .hero-content h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  /* Skills section fixes */
  .skills-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .skill-card {
    margin-bottom: 1rem;
  }

  /* Projects section fixes */
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .project-card {
    margin-bottom: 2rem;
  }

  .project-info {
    position: relative;
    height: auto;
    padding: 1rem;
  }

  /* Blog section fixes */
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .blog-card {
    margin-bottom: 2rem;
  }

  /* Contact section fixes */
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .input-wrapper input,
  .input-wrapper textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Small devices (phones) */
@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .about-content {
    padding: 0;
  }

  .about-img img {
    width: 150px;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item {
    margin-left: 1rem;
  }

  .contact-card {
    padding: 1rem;
  }

  .social-links a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

/* Fix for iOS notch */
@supports (padding-top: env(safe-area-inset-top)) {
  header {
    padding-top: env(safe-area-inset-top);
  }
  
  .nav-links {
    padding-top: calc(env(safe-area-inset-top) + 60px);
  }
}

/* Add this to your existing CSS */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Add these styles to your existing CSS */

/* Form Validation Styles */
.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.input-wrapper.error input,
.input-wrapper.error textarea {
    border-color: #ff4444;
}

.input-wrapper input.valid,
.input-wrapper textarea.valid {
    border-color: #4CAF50;
}

.input-wrapper input.invalid,
.input-wrapper textarea.invalid {
    border-color: #ff4444;
}

.error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.8rem;
    color: #ff4444;
}

/* Enhanced Notification Styles */
.notification {
    position: fixed;
    bottom: -100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(0);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
    transform: translateY(-120px);
    opacity: 1;
}

.notification.success {
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

.notification.error {
    background: linear-gradient(45deg, #ff4444, #cc0000);
}

/* Submit Button Loading State */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn .fa-spinner {
    margin-right: 8px;
}

/* Form Focus States */
.input-wrapper input:focus,
.input-wrapper textarea:focus {
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
    outline: none;
}

/* Form Placeholder Animation */
.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    transition: opacity 0.3s ease;
}

.input-wrapper input:focus::placeholder,
.input-wrapper textarea:focus::placeholder {
    opacity: 0.5;
}

/* 3D Card Effect */
.skill-card, .project-card, .blog-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.skill-card:hover, .project-card:hover, .blog-card:hover {
    transform: translateY(-10px) rotateX(10deg) rotateY(10deg);
}

/* Floating Animation for About Image */
.about-img img {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px); }
}

/* Particle Effect */
#vanta-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Project card titles */
.project-info h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Blog card titles */
.blog-content h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Skill card titles */
.skill-card h3 {
    color: var(--heading-color);
    font-size: 1.25rem;
    margin: 1rem 0;
    font-weight: 600;
}

/* Timeline item titles */
.timeline-item h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Contact card titles */
.contact-card h3 {
    color: var(--heading-color);
    font-size: 1.25rem;
    margin: 0.5rem 0;
    font-weight: 600;
}

/* Modal titles */
.modal-content h3 {
    color: var(--heading-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Enhanced Submit Button Styles */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent));
    border: none;
    border-radius: var(--border-radius);
    color: var(--bg-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-shadow);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px) rotate(15deg);
}

/* Loading state */
.submit-btn.loading {
    background: var(--primary-color);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    cursor: wait;
}

.submit-btn.loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success state */
.submit-btn.success {
    background: #4CAF50;
    color: white;
}

.submit-btn.success i {
    transform: scale(1.2);
}

/* Error state */
.submit-btn.error {
    background: #f44336;
    color: white;
}

/* Add these at the end of your file */

/* Interest Section Styles */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.interest-card {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    border: var(--card-border);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(var(--accent-rgb), 0.1) 0%,
        transparent 70%
    );
    transition: all 0.6s ease;
}

.interest-card:hover::before {
    top: -50%;
    left: -50%;
}

.interest-card i {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.interest-card:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-color);
}

.interest-card h3 {
    color: var(--heading-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
}

.interest-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-shadow);
    border-color: var(--accent-color);
}

/* Enhanced Timeline Items */
.timeline-item {
    position: relative;
    padding: 1.5rem;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    margin-left: 2rem;
    border: var(--card-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-color);
    box-shadow: var(--neon-shadow);
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--accent-color);
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-color);
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    animation: pulse 2s infinite;
}

/* Glowing animation for timeline dots */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

/* Enhanced About Section */
.about-content {
    gap: 3rem;
    align-items: center;
}

.about-img img {
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
    transition: all 0.5s ease;
    max-width: 300px;
    width: 100%;
}

.about-img img:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.5);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-text p strong {
    color: var(--accent-color);
}

/* Resume Button Enhancement */
.about-text .btn {
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.about-text .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.5s ease;
}

.about-text .btn:hover::before {
    left: 100%;
}

/* Add to the end of your file */

.experience-details {
    margin-top: 1rem;
    margin-left: 1.5rem;
    list-style-type: disc;
}

.experience-details li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.timeline-item:hover .experience-details li {
    color: var(--heading-color);
}
