:root {
    --primary-color: #00f3ff;
    --secondary-color: #bc13fe;
    --bg-color: #050505;
    --bg-secondary: #0a0a0a;
    --text-main: #e0e0e0;
    --text-dim: #888;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Share Tech Mono', monospace;
    --transition: all 0.3s ease;
}

.purple-icon {
    filter: invert(16%) sepia(98%) saturate(7486%) hue-rotate(280deg) brightness(102%) contrast(107%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Background Grid Effect */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    pointer-events: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #050505 90%);
    z-index: -1;
    pointer-events: none;
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-main);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(13px, 9999px, 81px, 0);
    }
    20% {
        clip: rect(98px, 9999px, 126px, 0);
    }
    40% {
        clip: rect(4px, 9999px, 56px, 0);
    }
    60% {
        clip: rect(52px, 9999px, 19px, 0);
    }
    80% {
        clip: rect(32px, 9999px, 108px, 0);
    }
    100% {
        clip: rect(122px, 9999px, 12px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 11px, 0);
    }
    20% {
        clip: rect(24px, 9999px, 86px, 0);
    }
    40% {
        clip: rect(99px, 9999px, 16px, 0);
    }
    60% {
        clip: rect(2px, 9999px, 59px, 0);
    }
    80% {
        clip: rect(52px, 9999px, 38px, 0);
    }
    100% {
        clip: rect(88px, 9999px, 112px, 0);
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-size: 0.9rem;
    color: var(--text-main);
    position: relative;
    transition: var(--transition);
}

.nav-item span {
    color: var(--primary-color);
    margin-right: 5px;
}

.nav-item:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.glitch-text-sm {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
}

.role-text {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-dim);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.btn-outline:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: inset 0 0 0 2px #fff, 0 0 10px var(--primary-color);
    color: #fff;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Image & Lines */
.hero-image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.3));
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    border: 2px solid rgba(0, 243, 255, 0.5);
}

/* Decorative Lines / Corners */
.corner-borders {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 2px solid transparent;
    pointer-events: none;
}

.corner-borders::before,
.corner-borders::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.corner-borders::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-borders::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.hero-image-wrapper:hover .corner-borders::before {
    top: -5px;
    left: -5px;
    width: 50px;
    height: 50px;
}

.hero-image-wrapper:hover .corner-borders::after {
    bottom: -5px;
    right: -5px;
    width: 50px;
    height: 50px;
}

/* Scan Line Animation */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    animation: scan 4s infinite linear;
    opacity: 0.6;
    pointer-events: none;
    z-index: 10;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* About Card */
.about-card {
    background: var(--bg-secondary);
    border: 1px solid var(--primary-color);
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 10px 10px 0 rgba(0, 243, 255, 0.1);
}

.card-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.card-body p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}

.skill-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.skill-card h3 {
    margin-bottom: 15px;
    font-family: var(--font-body);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #333;
    position: relative;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid #333;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.3);
}

.project-image {
    height: 200px;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.placeholder-img {
    font-size: 2rem;
    color: #333;
    font-weight: bold;
    z-index: 1;
}

.overlay-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 65%, var(--primary-color) 65%, var(--secondary-color));
    opacity: 0.1;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: #fff;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.tags span {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-right: 5px;
}

.btn-small {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #fff;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
}

.btn-small:hover {
    color: var(--primary-color);
}

/* Contact Form */
.cyber-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 50px;
}

.socials {
    margin-top: 20px;
}

.socials a {
    font-size: 1.5rem;
    margin: 0 10px;
    color: var(--text-dim);
    transition: var(--transition);
}

.socials a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        padding: 20px;
        text-align: center;
        gap: 15px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .skill-card {
        padding: 15px;
    }
}