/* Base styles and variables */
:root {
    --background: hsl(240, 33%, 98%);
    --foreground: hsl(240, 10%, 3.9%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(240, 10%, 3.9%);
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(240, 10%, 3.9%);
    --primary: hsl(263, 84%, 74%);
    --primary-foreground: hsl(0, 0%, 98%);
    --secondary: hsl(240, 5%, 96%);
    --secondary-foreground: hsl(240, 6%, 10%);
    --muted: hsl(240, 5%, 96%);
    --muted-foreground: hsl(240, 4%, 46%);
    --accent: hsl(302, 100%, 60%);
    --accent-foreground: hsl(0, 0%, 98%);
    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(0, 0%, 98%);
    --border: hsl(240, 6%, 90%);
    --input: hsl(240, 6%, 90%);
    --ring: hsl(240, 10%, 3.9%);
    --radius: 0.75rem;
    
    --portfolio-purple: #9b87f5;
    --portfolio-dark: #1A1F2C;
    --portfolio-light: #F1F0FB;
    --portfolio-accent: #D946EF;
    --portfolio-gray: #8E9196;
  }
  
  .dark {
    --background: hsl(240, 10%, 4%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(240, 10%, 4%);
    --card-foreground: hsl(0, 0%, 98%);
    --popover: hsl(240, 10%, 4%);
    --popover-foreground: hsl(0, 0%, 98%);
    --primary: hsl(263, 84%, 74%);
    --primary-foreground: hsl(0, 0%, 98%);
    --secondary: hsl(240, 4%, 16%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(240, 4%, 16%);
    --muted-foreground: hsl(240, 5%, 65%);
    --accent: hsl(302, 100%, 60%);
    --accent-foreground: hsl(0, 0%, 98%);
    --destructive: hsl(0, 63%, 31%);
    --destructive-foreground: hsl(0, 0%, 98%);
    --border: hsl(240, 4%, 16%);
    --input: hsl(240, 4%, 16%);
    --ring: hsl(240, 5%, 65%);
  }
  
  /* Reset and base styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  ul {
    list-style: none;
  }
  
  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .tag {
    display: inline-block;
    background-color: var(--portfolio-purple);
    background-color: rgba(155, 135, 245, 0.1);
    color: var(--portfolio-purple);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
  }
  
  .section-description {
    font-size: 1.2rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-size: 1rem;
  }
  
  .btn-primary {
    background: linear-gradient(to right, var(--portfolio-purple), var(--portfolio-accent));
    color: white;
  }
  
  .btn-primary:hover {
    opacity: 0.9;
  }
  
  .btn-secondary {
    background-color: transparent;
    border: 1px solid var(--portfolio-purple);
    color: var(--portfolio-purple);
  }
  
  .btn-secondary:hover {
    background-color: rgba(155, 135, 245, 0.1);
  }
  
  /* Header */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
  }
  
  .header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .dark .header.scrolled {
    background-color: rgba(26, 31, 44, 0.9);
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--portfolio-purple), var(--portfolio-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
  
  .nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--portfolio-purple);
    transition: width 0.3s ease;
  }
  
  .nav-link:hover {
    color: var(--portfolio-purple);
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
  }
  
  .mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .mobile-nav-link {
    padding: 0.5rem 0;
    font-weight: 500;
  }
  
  .mobile-btn {
    margin-top: 1rem;
  }
  
  /* Hero Section */
  .hero {
    min-height: 100vh;
    padding: 100px 0 50px;
    display: flex;
    align-items: center;
  }
  
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  
  .hero-text {
    animation: fadeIn 1s ease-out;
  }
  
  .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
  }
  
  .hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
    color: var(--muted-foreground);
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .social-links p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  
  .social-links a {
    color: var(--muted-foreground);
    transition: color 0.3s;
  }
  
  .social-links a:hover {
    color: var(--portfolio-purple);
  }
  
  .hero-visual {
    position: relative;
    height: 480px;
    animation: fadeIn 1s ease-out 0.3s both;
  }
  
  .scene-3d {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    position: relative;
  }
  
  .glow-effect {
    position: absolute;
    width: 60%;
    height: 60%;
    background-color: rgba(217, 70, 239, 0.2);
    border-radius: 50%;
    filter: blur(50px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite alternate;
  }
  
  .floating-element {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .ui-element {
    top: 10%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(to bottom right, var(--portfolio-purple), var(--portfolio-accent));
    border-radius: 15px;
    font-size: 24px;
    transform: rotate(10deg);
    animation: float 6s ease-in-out infinite;
  }
  
  .ux-element {
    bottom: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(to bottom right, var(--portfolio-accent), var(--portfolio-purple));
    border-radius: 50%;
    font-size: 24px;
    animation: float 6s ease-in-out 2s infinite;
  }
  
  /* Projects Section */
  .projects {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--background), var(--portfolio-light), var(--background));
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .project-card {
    background-color: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
  }
  
  .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .project-card:hover .project-image img {
    transform: scale(1.05);
  }
  
  .tag-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .project-description {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    font-size: 0.875rem;
  }
  
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .tag {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
  }
  
  .project-link {
    color: var(--portfolio-purple);
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s;
  }
  
  .project-link:hover {
    color: var(--portfolio-accent);
  }
  
  .project-link svg {
    margin-left: 0.5rem;
    transition: transform 0.3s;
  }
  
  .project-link:hover svg {
    transform: translateX(3px);
  }
  
  .text-center {
    text-align: center;
  }
  
  /* About Section */
  .about {
    padding: 100px 0;
  }
  
  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
  
  .about-text p {
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
  }
  
  .stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .stat {
    text-align: center;
  }
  
  .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--portfolio-purple);
    margin-bottom: 0.25rem;
  }
  
  .stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
  }
  
  .skills-card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  
  .skills-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }
  
  .skills-list {
    margin-bottom: 2rem;
  }
  
  .skill-item {
    margin-bottom: 1.5rem;
  }
  
  .skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }
  
  .skill-name {
    font-weight: 500;
  }
  
  .skill-percentage {
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  
  .skill-bar-bg {
    height: 8px;
    background-color: rgba(241, 240, 251, 0.5);
    border-radius: 999px;
    overflow: hidden;
  }
  
  .skill-bar {
    height: 100%;
    background: linear-gradient(to right, var(--portfolio-purple), var(--portfolio-accent));
    border-radius: 999px;
    width: 0;
    transition: width 1.5s ease-in-out;
  }
  
  .design-tools h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }
  
  .tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .tool-tag {
    background-color: var(--portfolio-light);
    color: var(--foreground);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
  }
  
  /* Contact Section */
  .contact {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--background), var(--portfolio-light), var(--background));
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
  }
  
  .contact-form-wrapper, .contact-info-wrapper {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  
  .contact-form-wrapper h3, .contact-info-wrapper h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-group label {
    font-weight: 500;
    font-size: 0.875rem;
  }
  
  .form-group input, .form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
  }
  
  .form-group input:focus, .form-group textarea:focus {
    border-color: var(--portfolio-purple);
  }
  
  .form-group textarea {
    resize: none;
    min-height: 150px;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .info-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(155, 135, 245, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--portfolio-purple);
    flex-shrink: 0;
  }
  
  .info-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
  }
  
  .info-text {
    color: var(--muted-foreground);
  }
  
  .connect-section h3 {
    margin-bottom: 1rem;
  }
  
  .social-icons {
    display: flex;
    gap: 1rem;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(155, 135, 245, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--portfolio-purple);
    transition: background-color 0.3s, color 0.3s;
  }
  
  .social-icon:hover {
    background-color: var(--portfolio-purple);
    color: white;
  }
  
  /* Footer */
  .footer {
    padding: 4rem 0 2rem;
    background-color: var(--portfolio-dark);
    color: white;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
  }
  
  .footer-logo p {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
  }
  
  .footer .social-links {
    display: flex;
    gap: 1rem;
  }
  
  .footer .social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: background-color 0.3s ease;
  }
  
  .footer .social-link:hover {
    background-color: var(--portfolio-purple);
  }
  
  .footer-links h3, .footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-links ul li, .footer-contact ul li {
    margin-bottom: 0.75rem;
  }
  
  .footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
  }
  
  .footer-links ul li a:hover {
    color: var(--portfolio-purple);
  }
  
  .footer-contact ul li span {
    color: var(--portfolio-purple);
    margin-right: 0.5rem;
  }
  
  .footer-contact ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
  }
  
  .footer-contact ul li a:hover {
    color: var(--portfolio-purple);
  }
  
  .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
  }
  
  /* Reveal animations */
  .reveal {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Custom cursor */
  .cursor-hidden {
    cursor: none;
  }
  
  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--portfolio-accent);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
    opacity: 0;
  }
  
  .custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--portfolio-accent);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: transform 0.4s ease, width 0.2s ease, height 0.2s ease;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes float {
    0% {
      transform: translateY(0px) rotate(10deg);
    }
    50% {
      transform: translateY(-20px) rotate(5deg);
    }
    100% {
      transform: translateY(0px) rotate(10deg);
    }
  }
  
  @keyframes pulse {
    0% {
      opacity: 0.6;
      transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
      opacity: 0.8;
      transform: translate(-50%, -50%) scale(1.1);
    }
  }
  
  /* Scrollbar styling */
  ::-webkit-scrollbar {
    width: 6px;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: rgba(155, 135, 245, 0.5);
    border-radius: 999px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--portfolio-purple);
  }
  
  /* Media Queries */
  @media (max-width: 992px) {
    .hero-title {
      font-size: 2.5rem;
    }
    
    .about-content, 
    .footer-content {
      grid-template-columns: 1fr;
      gap: 3rem;
    }
    
    .stats {
      justify-content: space-between;
    }
  }
  
  @media (max-width: 768px) {
    .hero-content {
      grid-template-columns: 1fr;
    }
    
    .hero-visual {
      order: -1;
      height: 300px;
    }
    
    .hero-text {
      text-align: center;
    }
    
    .hero-description, .stats {
      margin-left: auto;
      margin-right: auto;
    }
    
    .hero-buttons, .social-links {
      justify-content: center;
    }
    
    .nav-list {
      display: none;
    }
    
    .mobile-menu-btn {
      display: block;
    }
    
    .mobile-menu {
      display: block;
    }
    
    .contact-grid {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 576px) {
    .hero-title {
      font-size: 2rem;
    }
    
    .hero-buttons {
      flex-direction: column;
      width: 100%;
      max-width: 300px;
    }
    
    .btn {
      width: 100%;
    }
    
    .form-row {
      grid-template-columns: 1fr;
    }
    
    .projects-grid {
      grid-template-columns: 1fr;
    }
  }
  