
/* Base Styles */
:root {
    /* Colors */
    --primary-blue: #3b82f6;
    --dark-blue: #1e40af;
    --light-gray: #f3f4f6;
    --dark-gray: #4b5563;
    --white: #ffffff;
    --accent-purple: #8b5cf6;
    --dark-bg: #1f2937;
    --text-dark: #111827;
    --text-light: #f9fafb;
    --error: #ef4444;
  
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
  
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
  
    /* Transitions */
    --transition-normal: 0.3s ease;
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
  }
  
  /* Light Mode (Default) */
  .light-mode {
    --bg-primary: var(--white);
    --bg-secondary: var(--light-gray);
    --text-primary: var(--text-dark);
    --text-secondary: var(--dark-gray);
    --card-bg: var(--white);
    --card-border: rgba(0, 0, 0, 0.1);
  }
  
  /* Dark Mode */
  .dark-mode {
    --bg-primary: var(--dark-bg);
    --bg-secondary: #111827;
    --text-primary: var(--text-light);
    --text-secondary: #9ca3af;
    --card-bg: #2d3748;
    --card-border: rgba(255, 255, 255, 0.1);
  }
  
  /* Reset & Global Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    scroll-behavior: smooth;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
  }
  
  p {
    margin-bottom: var(--spacing-md);
  }
  
  a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all var(--transition-normal);
  }
  
  a:hover {
    color: var(--dark-blue);
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  ul {
    list-style-type: none;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .hidden {
    display: none !important;
  }
  
  /* Typography */
  h1 {
    font-size: 3rem;
    font-weight: 700;
  }
  
  h2 {
    font-size: 2.5rem;
    font-weight: 600;
  }
  
  h3 {
    font-size: 1.5rem;
    font-weight: 500;
  }
  
  .highlight {
    color: var(--primary-blue);
  }
  
  /* 3D Text Effect */
  .text-3d {
    text-shadow: 0 1px 0 #ccc, 
                0 2px 0 #c9c9c9,
                0 3px 0 #bbb,
                0 4px 0 #b9b9b9,
                0 5px 0 #aaa,
                0 6px 1px rgba(0,0,0,.1),
                0 0 5px rgba(0,0,0,.1),
                0 1px 3px rgba(0,0,0,.3),
                0 3px 5px rgba(0,0,0,.2),
                0 5px 10px rgba(0,0,0,.25),
                0 10px 10px rgba(0,0,0,.2),
                0 20px 20px rgba(0,0,0,.15);
  }
  
  .dark-mode .text-3d {
    text-shadow: 0 1px 0 #666, 
                0 2px 0 #585858,
                0 3px 0 #444,
                0 4px 0 #333,
                0 5px 0 #222,
                0 6px 1px rgba(0,0,0,.3),
                0 0 5px rgba(0,0,0,.3),
                0 1px 3px rgba(0,0,0,.5),
                0 3px 5px rgba(0,0,0,.4),
                0 5px 10px rgba(0,0,0,.45),
                0 10px 10px rgba(0,0,0,.4),
                0 20px 20px rgba(0,0,0,.35);
  }
  
  /* Buttons */
  .btn-primary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .btn-primary::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: all 0.5s;
    z-index: -1;
  }
  
  .btn-primary:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(59, 130, 246, 0.4);
  }
  
  .btn-primary:hover::before {
    left: 100%;
  }
  
  .btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-blue);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--primary-blue);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .btn-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-blue);
    transition: all 0.3s;
    z-index: -2;
  }
  
  .btn-secondary:hover {
    color: var(--white);
  }
  
  .btn-secondary:hover::after {
    height: 100%;
  }
  
  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
  }
  
  /* Section Title */
  .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    width: 100%;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-purple));
    border-radius: 999px;
    animation: gradient-shift 3s infinite alternate;
  }
  
  @keyframes gradient-shift {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 100% 50%;
    }
  }
  
  /* Header & Navigation */
  #header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
  }
  
  #header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-md);
  }
  
  .logo a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    position: relative;
  }
  
  .logo a::before {
    content: '<';
    color: var(--accent-purple);
    margin-right: 3px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
  }
  
  .logo a::after {
    content: '/>';
    color: var(--accent-purple);
    margin-left: 3px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
  }
  
  .logo a:hover::before, 
  .logo a:hover::after {
    opacity: 1;
    transform: translateX(0);
  }
  
  nav {
    display: flex;
    align-items: center;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
  }
  
  .nav-links li {
    margin-left: var(--spacing-lg);
  }
  
  .nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width var(--transition-normal);
  }
  
  .nav-links a:hover::after {
    width: 100%;
  }
  
  /* Theme Toggle */
  #theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    margin-left: var(--spacing-lg);
    padding: var(--spacing-xs);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
  }
  
  #theme-toggle:hover {
    background-color: var(--bg-secondary);
    transform: rotate(15deg);
  }
  
  .light-mode #theme-toggle .fa-sun,
  .dark-mode #theme-toggle .fa-moon {
    display: none;
  }
  
  /* 3D Toggle Animation */
  #theme-toggle i {
    transition: all 0.5s;
  }
  
  #theme-toggle:active i {
    transform: scale(0.8) rotate(45deg);
  }
  
  /* Mobile Menu */
  .mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: var(--spacing-lg);
    z-index: 1001;
  }
  
  .mobile-menu-button .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
  }
  
  .mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    padding: var(--spacing-lg) 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    z-index: 999;
    transform: translateY(-100%);
  }
  
  .mobile-menu.active {
    transform: translateY(0);
  }
  
  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .mobile-menu li {
    margin: var(--spacing-sm) 0;
  }
  
  .mobile-menu a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.25rem;
    padding: var(--spacing-sm) 0;
    display: block;
  }
  
  /* Hero Section */
  #hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 70px;
    position: relative;
    background: linear-gradient(210deg, #61ff81 0%, #70aeff 82%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: var(--white);
  }
  
  @keyframes gradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  /* Floating Particles */
  .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: float 15s infinite;
    pointer-events: none;
  }
  
  @keyframes float {
    0% {
      transform: translateY(0) rotate(0deg);
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
    100% {
      transform: translateY(-1000%) rotate(720deg);
      opacity: 0;
    }
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    animation: scaleIn 1s var(--transition-bounce) forwards;
    opacity: 0;
    transform: scale(0.9);
  }
  
  @keyframes scaleIn {
    0% {
      opacity: 0;
      transform: scale(0.9);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  .hero-content h1 .highlight {
    color: var(--white);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
  }
  
  .hero-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.3s;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease forwards 0.6s;
  }
  
  .cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.9s;
  }
  
  .cta-buttons .btn-primary {
    background-color: var(--white);
    color: var(--primary-blue);
  }
  
  .cta-buttons .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-blue);
  }
  
  .cta-buttons .btn-secondary {
    border-color: var(--white);
    color: var(--white);
  }
  
  .cta-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Scroll Indicator */
  .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
  }
  
  .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
  }
  
  .wheel {
    width: 6px;
    height: 6px;
    background-color: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
  }
  
  @keyframes scroll {
    0% {
      opacity: 1;
      top: 10px;
    }
    100% {
      opacity: 0;
      top: 30px;
    }
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0) translateX(-50%);
    }
    40% {
      transform: translateY(-10px) translateX(-50%);
    }
    60% {
      transform: translateY(-5px) translateX(-50%);
    }
  }
  
  /* About Section */
  .about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    align-items: center;
  }
  
  .about-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
  
  .about-image:hover {
    transform: perspective(1000px) rotateY(5deg);
  }
  
  .about-image img {
    transition: transform 0.5s;
  }
  
  .about-image:hover img {
    transform: scale(1.05);
  }
  
  .about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-blue) 0%, transparent 100%);
    opacity: 0.3;
    z-index: 1;
    transition: opacity var(--transition-normal);
  }
  
  .about-image:hover::before {
    opacity: 0.5;
  }
  
  .about-text p {
    margin-bottom: var(--spacing-md);
  }
  
  /* Skills */
  .skills {
    margin-top: var(--spacing-lg);
  }
  
  .skills h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
  }
  
  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }
  
  .skill-badge {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    position: relative;
  }
  
  .skill-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background-color: var(--accent-purple);
    z-index: -1;
    border-radius: 999px;
    transform: translateZ(-1px);
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .skill-badge:hover {
    transform: translateY(-3px) translateZ(0);
    color: var(--white);
  }
  
  .skill-badge:hover::before {
    opacity: 1;
  }
  
  /* Projects Section */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
  }
  
  .project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    border: 1px solid var(--card-border);
    transform-style: preserve-3d;
    perspective: 1000px;
  }
  
  .project-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
  
  .project-img {
    height: 200px;
    overflow: hidden;
    position: relative;
  }
  
  .project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
    transition: opacity 0.3s;
    opacity: 0;
  }
  
  .project-card:hover .project-img::after {
    opacity: 1;
  }
  
  .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .project-card:hover .project-img img {
    transform: scale(1.1);
  }
  
  .project-info {
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
  }
  
  .project-info h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
    position: relative;
    display: inline-block;
  }
  
  .project-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-blue), var(--accent-purple));
    transition: width 0.3s ease;
  }
  
  .project-card:hover .project-info h3::after {
    width: 100%;
  }
  
  .project-info p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
  }
  
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
  }
  
  .project-tags span {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s;
  }
  
  .project-card:hover .project-tags span {
    transform: translateY(-3px);
    background-color: var(--primary-blue);
    color: var(--white);
  }
  
  .project-links {
    display: flex;
    gap: var(--spacing-md);
  }
  
  .project-links a {
    position: relative;
    overflow: hidden;
  }
  
  .project-links a::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: all 0.5s;
  }
  
  .project-links a:hover::before {
    left: 100%;
  }
  
  /* Services Section */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
  }
  
  .service-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
  }
  
  .service-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), var(--accent-purple));
    opacity: 0.1;
    transition: all 0.5s;
    z-index: 0;
  }
  
  .service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
  
  .service-card:hover::before {
    top: 0;
  }
  
  .service-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
    transition: all 0.5s;
    display: inline-block;
  }
  
  .service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
  }
  
  .service-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: -1;
    transition: all 0.3s;
  }
  
  .service-card:hover .service-icon::after {
    transform: translate(-50%, -50%) scale(1);
  }
  
  .service-card h3 {
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
  }
  
  .service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
  }
  
  /* 3D Icon Animation */
  .icon-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s;
  }
  
  .service-card:hover .icon-3d {
    transform: rotateY(180deg);
  }
  
  /* Contact Section */
  .contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.1rem;
    transition: all 0.3s;
  }
  
  .contact-item:hover {
    transform: translateX(5px);
  }
  
  .contact-item i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    transition: all 0.3s;
  }
  
  .contact-item:hover i {
    transform: scale(1.2);
    color: var(--accent-purple);
  }
  
  .social-links {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-md);
  }
  
  .social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
  }
  
  .social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: all 0.5s;
  }
  
  .social-links a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.5);
  }
  
  .social-links a:hover::before {
    transform: translateX(100%);
  }
  
  /* Contact Form */
  .contact-form {
    background-color: var(--card-bg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--card-border);
    transition: all 0.3s;
    transform: translateY(0);
  }
  
  .contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  
  .form-group {
    margin-bottom: var(--spacing-md);
  }
  
  .form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    transition: all 0.3s;
  }
  
  .input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--card-border);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-normal);
  }
  
  .input-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
  }
  
  .form-group:focus-within label {
    color: var(--primary-blue);
    transform: translateY(-3px);
  }
  
  .error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: block;
  }
  
  /* Footer */
  #footer {
    background-color: var(--bg-secondary);
    padding-top: var(--spacing-xl);
    position: relative;
    overflow: hidden;
  }
  
  #footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--bg-secondary);
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0% 100%);
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--card-border);
    position: relative;
    z-index: 1;
  }
  
  .footer-logo a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-block;
  }
  
  .footer-logo a:hover {
    transform: scale(1.05);
  }
  
  .footer-logo p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: var(--spacing-xs);
  }
  
  .footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
  }
  
  .footer-links h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s;
  }
  
  .footer-links:hover h3::after {
    width: 100%;
  }
  
  .footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    display: inline-block;
  }
  
  .footer-links a::before {
    content: '→';
    opacity: 0;
    margin-right: 5px;
    transform: translateX(-10px);
    display: inline-block;
    transition: all 0.3s;
  }
  
  .footer-links a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
  }
  
  .footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
  }
  
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    position: relative;
    z-index: 1;
  }
  
  .footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
  }
  
  .back-to-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
  }
  
  .back-to-top i {
    transition: all 0.3s;
  }
  
  .back-to-top:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .back-to-top:hover i {
    animation: arrowUp 1s infinite;
  }
  
  @keyframes arrowUp {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
  }
  
  /* Animations */
  .fade-in {
    animation: fadeIn 0.5s ease-out forwards;
  }
  
  .slide-in-bottom {
    animation: slideInBottom 0.5s ease-out forwards;
  }
  
  .slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
  }
  
  .slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
  }
  
  .zoom-in {
    animation: zoomIn 0.5s ease-out forwards;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes slideInBottom {
    from {
      transform: translateY(50px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes slideInLeft {
    from {
      transform: translateX(-50px);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes slideInRight {
    from {
      transform: translateX(50px);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes zoomIn {
    from {
      transform: scale(0.5);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* 3D Card Flip Effect */
  .flip-card {
    perspective: 1000px;
    height: 300px;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
  }
  
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
  }
  
  .flip-card-front {
    background-color: var(--card-bg);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
    border: 1px solid var(--card-border);
  }
  
  .flip-card-back {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    color: var(--white);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
  }
  
  /* Floating Animation */
  .floating {
    animation: floating 3s ease-in-out infinite;
  }
  
  @keyframes floating {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
    100% {
      transform: translateY(0);
    }
  }
  
  /* Animated Background */
  .animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
    pointer-events: none;
  }
  
  /* Responsive */
  @media (max-width: 992px) {
    h1 {
      font-size: 2.5rem;
    }
    
    h2 {
      font-size: 2rem;
    }
    
    .hero-content h1 {
      font-size: 2.75rem;
    }
    
    .hero-content h2 {
      font-size: 1.75rem;
    }
  }
  
  @media (max-width: 768px) {
    .nav-links {
      display: none;
    }
    
    .mobile-menu-button {
      display: flex;
    }
    
    .projects-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .cta-buttons {
      flex-direction: column;
      gap: var(--spacing-md);
      width: 100%;
      max-width: 300px;
      margin-left: auto;
      margin-right: auto;
    }
    
    .cta-buttons a {
      width: 100%;
    }
    
    .footer-content {
      flex-direction: column;
    }
  
    .skill-badge {
      transform: none !important;
    }
  
    .skill-badge:hover {
      transform: translateY(-3px) !important;
    }
  }
  
  @media (max-width: 576px) {
    h1 {
      font-size: 2rem;
    }
    
    h2 {
      font-size: 1.75rem;
    }
    
    .hero-content h1 {
      font-size: 2rem;
    }
    
    .hero-content h2 {
      font-size: 1.5rem;
    }
    
    .contact-content {
      grid-template-columns: 1fr;
    }
    
    .section {
      padding: var(--spacing-lg) 0;
    }
    
    .projects-grid, .services-grid {
      gap: var(--spacing-md);
    }
    
    .project-card {
      margin-bottom: var(--spacing-md);
    }
  
    .service-card:hover {
      transform: translateY(-5px);
    }
  }
  
  /* Hide scrollbar but keep functionality */
  body::-webkit-scrollbar {
    width: 8px;
  }
  
  body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
  }
  
  body::-webkit-scrollbar-thumb {
    background-color: var(--primary-blue);
    border-radius: 20px;
  }
  