/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #0a192f;
    color: #ccd6f6;
    font-family: 'Fira Code', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    color: #64ffda;
    text-decoration: none;
}
a:hover {
    color: #7ecfff;
}
h1, h2, h3 {
    color: #e6f1ff;
}
section {
    padding: 4rem 2rem;
    max-width: 80%;
    margin: 0 auto;
}

/* Header */
header {
    background-color: transparent;
    padding: 2rem;
    text-align: center;
}
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    font-size: 0.9rem;
    gap: 2rem;
    margin-bottom: 2rem;
}
nav ul li a {
    color: #8892b0;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s;
}
nav ul li a:hover {
    color: #64ffda;
}

/* Hero */
.header-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #64ffda;
}
.header-content h2 {
    font-size: 2.8rem;
    color: #e6f1ff;
}
.header-content p {
    font-size: 1.2rem;
    color: #8892b0;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Skills & Projects */
.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.skill-item, .project-item {
    background-color: #112240;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}
.skill-item:hover, .project-item:hover {
    transform: translateY(-5px);
}

/* Footer Socials */
footer {
    text-align: center;
    padding: 3rem 1rem 1rem;
    color: #8892b0;
}
.social-icons {
    margin-top: 1rem;
}
.social-icons a {
    margin: 0 60px;
    font-size: 1.3rem;
    color: #8892b0;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: #64ffda;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spotlight-cursor {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    will-change: transform;
    opacity: 0.8;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.05) 10%,
      rgba(255, 255, 255, 0.04) 20%,
      rgba(255, 255, 255, 0.03) 35%,
      rgba(255, 255, 255, 0.02) 50%,
      rgba(255, 255, 255, 0.01) 70%,
      rgba(255, 255, 255, 0.005) 85%,
      rgba(255, 255, 255, 0.002) 95%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 3.3s ease, opacity 3.3s ease;
}

/* Optional: Add a subtle effect when hovering over elements */
.hoverable {
    transition: transform 0.3s ease;
}

.hoverable:hover .spotlight-cursor {
    background-color: rgba(255, 255, 255, 0.3); /* Slightly brighter on hover */
    opacity: 1; /* Make it more visible */
}

@media (max-width: 768px) {
  .skills-grid, .projects-grid {
    grid-template-columns: 1fr;
  }
}
