:root {
    --bg-color: #050505;
    --surface-color: #111111;
    --surface-light: #1a1a1a;
    --primary-color: #a855f7; /* Vibrant Purple from reference */
    --primary-hover: #9333ea;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --border-color: #262626;
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    cursor: crosshair;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    animation: orbFloat linear infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168,85,247,0.18) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    top: 50%;
    right: -8%;
    animation-duration: 22s;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, transparent 70%);
    bottom: 15%;
    left: 30%;
    animation-duration: 26s;
    animation-delay: -13s;
}

@keyframes orbFloat {
    0%   { opacity: 0;    transform: translateY(0px) scale(1); }
    10%  { opacity: 1; }
    50%  { transform: translateY(-40px) scale(1.08); }
    90%  { opacity: 1; }
    100% { opacity: 0;    transform: translateY(0px) scale(1); }
}

/* Background Overlay (grid texture) */
.bg-overlay {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110vw;
    height: 110vh;
    background-image: url('wavy_grid.png');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

a, button, input, textarea {
    cursor: crosshair;
}

.cursor-hover .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(168, 85, 247, 0.1);
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-icon:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
    border-radius: 8px;
    padding: 0.9rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color);
    font-family: 'Inter', cursive; /* To give a slightly stylized look if needed */
}

.logo span {
    color: var(--text-primary);
}

.dev-code {
    display: inline-block;
    color: var(--primary-color) !important;
    margin-left: 0.5rem;
    font-family: monospace;
    font-weight: 700;
    opacity: 0.8;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.95);
        text-shadow: 0 0 5px rgba(168, 85, 247, 0.2);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
        text-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Main Layout */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5% 4rem;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

section:last-child {
    border-bottom: none;
}

/* Hero stagger slide-in from left */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-animate {
    opacity: 0;
    animation: slideInLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate:nth-child(1) { animation-delay: 0.1s; }
.hero-animate:nth-child(2) { animation-delay: 0.3s; }
.hero-animate:nth-child(3) { animation-delay: 0.5s; }
.hero-animate:nth-child(4) { animation-delay: 0.7s; }
.hero-animate:nth-child(5) { animation-delay: 0.9s; }

/* Typewriter blinking cursor */
.type-cursor {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 300;
    margin-left: 2px;
    animation: typeBlink 0.75s step-end infinite;
    opacity: 1;
    transition: opacity 0.4s ease;
}

@keyframes typeBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(168, 85, 247, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(168, 85, 247, 0.2);
    margin-bottom: 2rem;
}

.availability-pill .dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.hero h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ============================================
   BENTO GRID — About + Skills + Experience
   ============================================ */
.bento-section {
    padding: 4rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

/* About card: spans full width on top */
.bento-about {
    grid-column: 1 / -1;
}

/* Skills: left column bottom */
.bento-skills {
    grid-column: 1 / 2;
}

/* Experience: right column bottom */
.bento-experience {
    grid-column: 2 / 3;
}

.bento-card {
    background-color: #0d0d0d;
    border: 1px solid #1f1f1f;
    border-radius: 14px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.bento-card:hover {
    border-color: #333;
    transform: translateY(-2px);
}

.bento-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #1f1f1f;
}

/* About card content */
.bento-about p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.bento-about p:last-child {
    margin-bottom: 0;
}

/* Skills: 3 columns inside the card */
.bento-skills-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-skill-col h4 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

.bento-skill-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.bento-skill-col ul li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 0.85rem;
    position: relative;
}

.bento-skill-col ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #333;
}

/* Experience list inside card */
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.exp-badge {
    flex-shrink: 0;
    background-color: rgba(168, 85, 247, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    min-width: 48px;
    margin-top: 2px;
}

.exp-detail h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.exp-detail span {
    display: block;
    font-size: 0.78rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.exp-detail p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects Section */
.projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-4px);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background-color: var(--surface-light);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
}

.contact-info-wrapper p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.services-list {
    margin-bottom: 2rem;
}

.services-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.socials-container h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-about,
    .bento-skills,
    .bento-experience {
        grid-column: 1 / -1;
    }

    .bento-skills-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .bento-skills-columns {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}
