:root {
    --primary-color: #00ff8c;
    --secondary-color: #0a0a0a;
    --text-color: #e6e6e6;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --accent-color: #ff0066;
    --gradient-start: #121212;
    --gradient-end: #2a2a2a;
}

/* Global Styles */
body {
    font-family: 'Rajdhani', sans-serif;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

header {
    background-color: #2a2a2a;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin: 0;
    color: #00ff00;
}

nav {
    margin: 20px 0;
}

nav a {
    color: #00ff00;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

.main-content {
    padding: 20px;
    text-align: center;
}

.main-content h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.main-content p {
    font-size: 1.2em;
    line-height: 1.5;
}

footer {
    background-color: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0;
    font-size: 0.9em;
    color: #888888;
}

.button {
    background-color: #00ff00;
    color: #1e1e1e;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.button:hover {
    background-color: #00cc00;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 255, 140, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
}

.hacker-text {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: #00ff8c;
    letter-spacing: 3px;
    animation: glitch 1s infinite alternate;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 0 0 rgba(255, 0, 0, 0.5), -2px 0 0 rgba(0, 255, 0, 0.5);
    }
    20% {
        text-shadow: 2px 0 0 rgba(255, 0, 0, 0.5), -2px 0 0 rgba(0, 255, 0, 0.5);
    }
    40% {
        text-shadow: 2px 0 0 rgba(255, 0, 102, 0.5), -2px 0 0 rgba(0, 255, 0, 0.5);
    }
    60% {
        text-shadow: 2px 0 0 rgba(255, 0, 0, 0.5), -2px 0 0 rgba(0, 255, 140, 0.5);
    }
    80% {
        text-shadow: 2px 0 0 rgba(255, 0, 0, 0.5), -2px 0 0 rgba(0, 255, 0, 0.5);
    }
    100% {
        text-shadow: 2px 0 0 rgba(255, 0, 102, 0.5), -2px 0 0 rgba(0, 255, 140, 0.5);
    }
}

/* Navbar */
.navbar {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-shield {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

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

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

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    background-color: var(--secondary-color);
}

.terminal {
    max-width: 700px;
    margin: 0 auto;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

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

.terminal-buttons {
    display: flex;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-button.red {
    background-color: #ff5f56;
}

.terminal-button.yellow {
    background-color: #ffbd2e;
}

.terminal-button.green {
    background-color: #27c93f;
}

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
    color: #999;
    font-family: 'Courier New', monospace;
}

.terminal-content {
    padding: 30px;
    font-family: 'Courier New', monospace;
    color: #ddd;
    font-size: 1.2rem;
    min-height: 200px;
}

.terminal-prompt {
    color: var(--primary-color);
    margin-right: 10px;
}

.typed-cursor {
    color: var(--primary-color);
}

/* About Section */
.hacker-badge {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    padding: 20px;
    animation: rotate 10s linear infinite;
}

.hacker-badge-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 3s infinite;
}

.hacker-badge-inner i {
    font-size: 8rem;
    color: var(--primary-color);
}

.skills-container {
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 15px;
}

.progress {
    height: 10px;
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* Services Section */
.service-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 140, 0.1), rgba(255, 0, 102, 0.1));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2);
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tech-tags span {
    background-color: rgba(0, 255, 140, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Counter Section */
.bg-gradient {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

.counter-box {
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.counter-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

/* Contact Section */
.contact-info {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 25px;
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 255, 140, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.input-group-text {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid #3a3a3a;
}

.form-control {
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid #3a3a3a;
    color: var(--text-color);
}

.form-control:focus {
    background-color: rgba(30, 30, 30, 0.8);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 140, 0.25);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: rgba(10, 10, 10, 0.95);
        padding: 15px;
        border-radius: 10px;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    #hero {
        padding: 100px 0;
    }
    
    .hacker-badge {
        width: 200px;
        height: 200px;
    }
    
    .hacker-badge-inner i {
        font-size: 5rem;
    }
    
    .counter-box {
        margin-bottom: 20px;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .terminal {
        width: 90%;
    }
    
    .terminal-content {
        padding: 15px;
        font-size: 1rem;
    }
}