/* Global Styles & Variables */
:root {
    --primary-color: #00ffa3;
    /* Emerald Green (System Online) */
    --secondary-color: #0a0f1c;
    /* Midnight Blue */
    --accent-color: #64ffda;
    /* Light Cyan Accent */
    --text-color: #a8b2d1;
    --heading-color: #e6f1ff;
    --bg-color: #02040a;
    --card-bg: rgba(10, 25, 47, 0.7);
    --font-main: 'Rajdhani', sans-serif;
    --glow: 0 0 10px rgba(0, 255, 163, 0.5);
    --border: 1px solid rgba(0, 255, 163, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    background-image:
        linear-gradient(rgba(0, 255, 163, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 163, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    /* Hexagon */
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 5px var(--primary-color);
}

.cursor-outline {
    width: 50px;
    height: 50px;
    border: 1px solid var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    /* Hexagon */
    z-index: 9998;
    pointer-events: none;
    transition: all 0.1s ease-out;
    opacity: 0.5;
}

body:has(a:hover) .cursor-outline,
body:has(button:hover) .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 255, 163, 0.1);
    opacity: 1;
}

/* Particle Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    border-left: 1px solid rgba(0, 255, 163, 0.1);
    margin-left: 2rem;
}

.section::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 11px;
    height: 11px;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
    padding-left: 2rem;
}

.section-title::before {
    content: '//';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: var(--transition);
}

.btn:hover {
    background: rgba(0, 255, 163, 0.1);
    text-shadow: 0 0 8px var(--primary-color);
    transform: translateY(-2px);
}

.btn.primary {
    background: rgba(0, 255, 163, 0.1);
}

.btn.primary:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* Header */
header {
    background: rgba(2, 4, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 163, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links li a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a::before {
    content: '[';
    margin-right: 5px;
    opacity: 0;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a::after {
    content: ']';
    margin-left: 5px;
    opacity: 0;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::before,
.nav-links li a:hover::after {
    opacity: 1;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-text h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--heading-color);
    text-transform: uppercase;
}

.hero-text .role {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: monospace;
    margin-bottom: 2rem;
    display: block;
}

.hero-text .role::before {
    content: '> ';
}

.hero-text .role::after {
    content: '_';
    animation: blink 1s infinite;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-wrapper {
    width: 350px;
    height: 350px;
    position: relative;
    padding: 10px;
    background: transparent;
}

.img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: spin 10s linear infinite;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);

}

/* Cards (Education, Skills, Projects) */
.education-card,
.skill-category,
.project-card,
.career-objective {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 163, 0.1);
    padding: 2rem;
    position: relative;
    clip-path: polygon(0 0,
            100% 0,
            100% calc(100% - 20px),
            calc(100% - 20px) 100%,
            0 100%);
    transition: var(--transition);
}

.education-card:hover,
.skill-category:hover,
.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px rgba(0, 255, 163, 0.1);
}

/* Corner Accents */
.education-card::before,
.skill-category::before,
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
}

.education-card h3,
.skill-category h3,
.project-header h3 {
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-card h3 i,
.skill-category h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tag {
    display: inline-block;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    background: rgba(0, 255, 163, 0.05);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 163, 0.2);
    padding-bottom: 1rem;
}

.project-body h4 {
    color: var(--accent-color);
    text-transform: uppercase;
    margin: 1.5rem 0 0.5rem;
    font-size: 1rem;
}

.tech-stack {
    margin-top: 2rem;
}

.tech {
    color: var(--text-color);
    font-family: monospace;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    margin-right: 5px;
}

/* Contact */
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item a {
    font-size: 1.5rem;
    color: var(--heading-color);
}

.contact-item a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        height: calc(100vh - 80px);
        width: 100%;
        background: var(--bg-color);
        border-left: 2px solid var(--primary-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .section {
        margin-left: 0;
        border-left: none;
        padding: 4rem 1rem;
    }

    .section::before {
        display: none;
    }
}