/* Base Styles */
:root {
    --primary-color: #11f3e5;
    --secondary-color: #b40ee0;
    --bg-color: #0a0a0a;
    --bg-secondary: #121212;
    --text-color: #f5f5f5;
    --text-secondary: #aaa;
    --border-color: #333;
    --card-bg: rgba(30, 30, 30, 0.7);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    background: rgba(17, 243, 229, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s, width 0.2s, height 0.2s;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo a {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.glitch-wrapper {
    margin-bottom: 30px;
}

.glitch {
    font-size: 80px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
    color: var(--text-color);
    letter-spacing: 3px;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(52px, 9999px, 119px, 0);
    }
    20% {
        clip: rect(33px, 9999px, 144px, 0);
    }
    40% {
        clip: rect(27px, 9999px, 61px, 0);
    }
    60% {
        clip: rect(19px, 9999px, 48px, 0);
    }
    80% {
        clip: rect(103px, 9999px, 53px, 0);
    }
    100% {
        clip: rect(74px, 9999px, 120px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(10px, 9999px, 69px, 0);
    }
    20% {
        clip: rect(9px, 9999px, 33px, 0);
    }
    40% {
        clip: rect(76px, 9999px, 115px, 0);
    }
    60% {
        clip: rect(80px, 9999px, 7px, 0);
    }
    80% {
        clip: rect(2px, 9999px, 89px, 0);
    }
    100% {
        clip: rect(14px, 9999px, 34px, 0);
    }
}

.hero-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.hero-text p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    z-index: 1;
}

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

.primary-btn:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(17, 243, 229, 0.4);
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    transform: scale(1.1);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.primary-btn:hover::before {
    transform: scale(1);
    opacity: 1;
}

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

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

/* Section Title */
.section-title {
    font-size: 40px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.5s ease;
}

.section-title:hover::after {
    width: 120px;
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
}

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

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* Terminal Effect */
.terminal {
    background: #1e1e1e;
    border-radius: 6px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 40px;
    width: 100%;
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: #323232;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: 15px;
    font-size: 14px;
    color: #ddd;
}

.terminal-content {
    padding: 20px;
    line-height: 1.5;
}

.terminal-prompt {
    color: #0f0;
    font-weight: bold;
}

.terminal-typed {
    color: #f1f1f1;
}

.terminal-text-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: var(--primary-color);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

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

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.skill-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease;
}

/* Interests Section */
.interests-section {
    background: var(--bg-secondary);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.interest-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    transition: transform 0.5s ease;
}

.interest-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.interest-card:hover::before {
    transform: scale(10);
    opacity: 0.05;
}

.interest-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.interest-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.interest-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    position: relative;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    margin-bottom: 40px;
}

.contact-text p {
    font-size: 16px;
    color: var(--text-secondary);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-link i {
    font-size: 40px;
    color: var(--primary-color);
}

.contact-link span {
    font-size: 16px;
    font-weight: 500;
}

.contact-link:hover {
    transform: translateY(-10px);
    color: var(--primary-color);
}

/* Footer Styles */
.footer {
    background: #050505;
    padding: 40px 0;
    text-align: center;
}

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

.footer-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

/* Media Queries */
@media (max-width: 992px) {
    .glitch {
        font-size: 60px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .navbar.scrolled {
        padding: 10px 20px;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.5s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin-left: 0;
    }
    
    .nav-link {
        font-size: 20px;
    }
    
    .glitch {
        font-size: 40px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .skills-container, 
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 32px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 20px;
    }
}
