:root {
    --bg-color: #050510;
    --text-color: #ffffff;
    --primary-color: #00f3ff;
    --secondary-color: #b620e0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, left 0.1s ease-out, top 0.1s ease-out;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1000;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title span {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--card-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.15), 0 5px 15px rgba(182, 32, 224, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 0 15px rgba(182, 32, 224, 0.4);
}

.btn-primary:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

.btn-primary:hover:after {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.8), 0 0 40px rgba(182, 32, 224, 0.4);
    transform: translateY(-3px) scale(1.05);
}

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

.btn-secondary:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6), inset 0 0 10px rgba(0, 243, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.glow-btn {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--secondary-color);
    }
    to {
        box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--secondary-color), 0 0 40px var(--primary-color);
    }
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar.sticky {
    padding: 15px 0;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-link:hover::before, .nav-link.active::before {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.greeting {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.name {
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.role {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.typing-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary-color);
    animation: blink 1s infinite;
}

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

.tagline {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-img-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: var(--primary-color);
    border: 2px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.glow-effect {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.3;
    z-index: 1;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.2; }
    100% { transform: scale(1.1); opacity: 0.5; }
}

.about-text {
    flex: 2;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-text p {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Skills Section */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-badge:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.2);
}


/* Projects Section */
.projects-empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.placeholder-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

.projects-empty p {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.6;
}

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

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.placeholder-img {
    font-size: 60px;
    color: var(--secondary-color);
    opacity: 0.7;
    transition: var(--transition);
}

.project-card:hover .placeholder-img {
    transform: scale(1.1);
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0,243,255,0.5);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-content p {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-tech span {
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
    border: 1px solid rgba(0,243,255,0.2);
}

.project-links {
    display: flex;
    gap: 15px;
}

.tilt-card {
    transform-style: preserve-3d;
}

/* Resume Section */
.resume-container {
    text-align: center;
    background: linear-gradient(135deg, rgba(182, 32, 224, 0.1), rgba(0, 243, 255, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.resume-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: rotate 10s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.resume-container h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.resume-container p {
    color: #ccc;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-info p {
    color: #bbb;
    margin-bottom: 30px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.info-item:hover i {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--secondary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #888;
    pointer-events: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:not(:placeholder-shown) {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0,243,255,0.2);
}

.input-group input:focus ~ label,
.input-group textarea:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-color);
    padding: 0 5px;
    color: var(--primary-color);
}

.w-100 {
    width: 100%;
}

/* Footer */
.footer {
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(5,5,16,0.9);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: #888;
}

/* Back To Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 0 15px var(--primary-color);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--secondary-color);
    box-shadow: 0 0 20px var(--secondary-color);
}

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

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .name { font-size: 3.5rem; }
    .about-content { flex-direction: column; text-align: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
    .hamburger { display: block; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(5,5,16,0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
        gap: 20px;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active { left: 0; }
    .name { font-size: 2.8rem; }
    .role { font-size: 1.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; gap: 15px; }
    .footer-content { flex-direction: column; text-align: center; }
}
