:root {
    --primary: #6c5ce7;
    --secondary: #00cec9;
    --dark: #0f172a;
    --light: #f8fafc;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    font-family: "Inconsolata", monospace;
    font-style: normal;
    /* cursor: none; */
}

.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.4);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-follower::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(108, 92, 231, 0.3);
    top: -10px;
    left: -10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    70% { transform: scale(1.3); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.7; }
}

.tech-icon {
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.project-card {
    transition: all 0.3s ease;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg);
}

.project-card-front, .project-card-back {
    backface-visibility: hidden;
}

.project-card-back {
    transform: rotateY(180deg);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #6c5ce7;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* New styles for hover effects */
a, button, .project-card, .tech-icon, .nav-link {
    cursor: none;
}

a:hover ~ .cursor-follower,
button:hover ~ .cursor-follower,
.project-card:hover ~ .cursor-follower,
.tech-icon:hover ~ .cursor-follower {
    width: 30px;
    height: 30px;
    background: rgba(236, 112, 99, 0.6);
}

.profile-pic:hover ~ .cursor-follower {
    width: 50px;
    height: 50px;
    background: rgba(46, 204, 113, 0.6);
}

.solid-text {
    color: #6c5ce7;
}

.btn-primary {
    background-color: #6c5ce7;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5a4bcf;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.btn-secondary {
    background-color: rgba(108, 92, 231, 0.1);
    color: white;
    border: 1px solid rgba(108, 92, 231, 0.5);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(108, 92, 231, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

/* Enhanced Sticky Cursor Animation */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out;
}

.cursor-circle {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(108, 92, 231, 0.6);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s, border-width 0.3s;
    will-change: transform;
}

/* Expanded on hover */
.cursor-hover .cursor-circle {
    transform: translate(-50%, -50%) scale(1.4);
    border-color: rgba(99, 236, 236, 0.6);
    border-width: 3px;
}

@media (max-width: 768px) {
  .custom-cursor,
  .cursor-circle {
    display: none !important;
  }
  a, button, .project-card, .tech-icon, .nav-link {
    cursor: pointer !important;
  }
}

/* Mailto form section styles */
.mailto-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.mailto-form input,
.mailto-form textarea {
  width: 100%;
  max-width: 100%;
}

.mailto-form button {
  width: 100%;
  max-width: 100%;
}