/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

p {
    color: #b0b0b0;
}

.tagline {
    color: #b0b0b0;
}

.about-text p {
    color: #e0e0e0;
}

.contact-info p {
    color: #e0e0e0;
}

.project-info p {
    color: #b0b0b0;
}

.project-info h3 {
    color: #ffffff;
}

.skill-name {
    color: #e0e0e0;
}

.filter-btn {
    border-color: #00d4ff;
    color: #00d4ff;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #00d4ff;
    color: #0a0a0a;
}

footer p {
    color: #666;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00d4ff;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.highlight {
    color: #00d4ff;
}

.tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #b0b0b0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    color: #00d4ff;
    transition: all 0.3s ease;
    display: inline-block;
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    text-align: center;
    min-width: 150px;
}

.cta-button.primary {
    background-color: #00d4ff;
    color: #0a0a0a;
}

.cta-button.outline {
    background-color: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.cta-button.outline:hover {
    background-color: #00d4ff;
    color: #0a0a0a;
}

.hero-image {
    flex: 1;
    text-align: center;
    margin-top: 2rem;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* About Section */
.about {
    padding: 120px 0;
    background-color: #0f0f0f;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(0, 212, 255, 0.02) 50%, transparent 51%);
    background-size: 300px 300px, 400px 400px, 20px 20px;
    animation: subtleShift 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes subtleShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.about h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    background-color: #1a1a2e;
    color: #00d4ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #00d4ff;
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    background-color: #00d4ff;
    color: #0a0a0a;
}

/* Portfolio Section */
.portfolio {
    padding: 120px 0;
    background-color: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 212, 255, 0.01) 10px,
            rgba(0, 212, 255, 0.01) 20px
        );
    background-size: 250px 250px, 350px 350px, 30px 30px;
    animation: gridFlow 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gridFlow {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%;
        transform: translateZ(0);
    }
    50% {
        background-position: 100% 100%, -50% -50%, 50px 50px;
    }
}

.portfolio h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #00d4ff;
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
}

.laptop-mockup {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 10px;
    padding: 15px 15px 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.laptop-mockup::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    right: 30%;
    height: 3px;
    background: #333;
    border-radius: 50% 50% 0 0;
}

.project-image {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top center;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.project-card:hover .project-image {
    height: 300px;
    overflow-y: auto;
}

.project-card:hover .project-image img {
    height: auto;
    object-fit: contain;
    transform: scale(1.05);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
    color: #00d4ff;
}

.project-info p {
    margin-bottom: 1rem;
    color: #b0b0b0;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-info p {
    color: #e0e0e0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background-color: #00d4ff;
    color: #0a0a0a;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-card:hover .project-tech span {
    background-color: #ffffff;
    color: #0a0a0a;
    transform: scale(1.05);
}

.project-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.project-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: margin-left 0.3s ease;
}

.project-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.project-link:hover::after {
    margin-left: 1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #0f0f0f;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 40% 30%, rgba(0, 212, 255, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.02) 0%, transparent 50%),
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            rgba(0, 212, 255, 0.01) 0deg,
            transparent 90deg
        );
    background-size: 400px 400px, 300px 300px, 100px 100px;
    animation: contactPulse 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes contactPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05) rotate(2deg);
        opacity: 0.5;
    }
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 12px;
    background-color: #333333;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
}

.submit-button {
    padding: 12px 30px;
    background-color: #00d4ff;
    color: #0a0a0a;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: #00b4e6;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding: 2rem 0;
    text-align: center;
    color: #666;
}

/* Responsive Design */

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    /* Theme toggle button for tablet */
    .theme-toggle {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .theme-toggle::before {
        font-size: 1.3rem;
    }

    /* Contact items for tablet */
    .contact-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .contact-icon {
        font-size: 1.3rem;
    }

    /* Skill bars for tablet */
    .skill-name {
        font-size: 0.85rem;
    }

    .skill-progress {
        height: 7px;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    /* Theme toggle button for mobile */
    .theme-toggle {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .theme-toggle::before {
        font-size: 1.2rem;
    }

    /* Contact items for mobile */
    .contact-item {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .contact-icon {
        font-size: 1.2rem;
        min-width: 20px;
    }

    /* Skill bars for mobile */
    .skill-name {
        font-size: 0.8rem;
    }

    .skill-progress {
        height: 6px;
    }

    /* Loading screen for mobile */
    .loader {
        width: 60px;
        height: 60px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-image img {
        width: 150px;
        height: 150px;
    }

    /* Theme toggle button for small mobile */
    .theme-toggle {
        width: 45px;
        height: 45px;
        bottom: 10px;
        right: 10px;
    }

    .theme-toggle::before {
        font-size: 1rem;
    }

    /* Contact items for small mobile */
    .contact-item {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .contact-icon {
        font-size: 1.1rem;
        min-width: 18px;
    }

    /* Skill bars for small mobile */
    .skill-name {
        font-size: 0.75rem;
    }

    .skill-progress {
        height: 5px;
    }

    /* Loading screen for small mobile */
    .loader {
        width: 50px;
        height: 50px;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
    border: 4px solid #1a1a2e;
    border-top: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Interactive Skills Visualization */
.skill-bar {
    margin-bottom: 1rem;
}

.skill-bar:last-child {
    margin-bottom: 0;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.skill-name span:last-child {
    color: #00d4ff;
}

.skill-progress {
    width: 100%;
    height: 8px;
    background-color: #1a1a2e;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-radius: 4px;
    width: 0%;
    animation: fillSkill 2s ease-out forwards;
}

@keyframes fillSkill {
    to {
        width: var(--skill-level);
    }
}

/* Enhanced Contact Section */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #1a1a2e;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background-color: #2a2a4e;
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
    color: #00d4ff;
    min-width: 24px;
}

/* Dark/Light Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #00d4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.theme-toggle::before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4,17 10,11 4,5'/%3E%3Cline x1='12' y1='19' x2='20' y2='19'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    display: block;
    width: 24px;
    height: 24px;
}

body.hacker-mode .theme-toggle::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
}

/* Hacker/Green Theme Styles */
body.hacker-mode {
    background-color: #0a0a0a;
    color: #00ff41;
}

body.hacker-mode header {
    background-color: rgba(10, 10, 10, 0.95);
}

body.hacker-mode .logo {
    color: #00ff41;
}

body.hacker-mode .nav-links a {
    color: #00ff41;
}

body.hacker-mode .nav-links a:hover {
    color: #ffffff;
}

body.hacker-mode .hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

body.hacker-mode .hero h1 {
    color: #00ff41;
}

body.hacker-mode .tagline {
    color: #00aa33;
}

body.hacker-mode .hero::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 65, 0.1) 0%, transparent 50%);
}

body.hacker-mode .about {
    background-color: #0f0f0f;
}

body.hacker-mode .portfolio {
    background-color: #0a0a0a;
}

body.hacker-mode .contact {
    background-color: #0f0f0f;
}

body.hacker-mode footer {
    background-color: #0a0a0a;
    color: #666666;
}

body.hacker-mode .project-card {
    background-color: #1a1a1a;
    border: 1px solid #00ff41;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.2);
}

body.hacker-mode .project-info h3 {
    color: #00ff41;
}

body.hacker-mode .project-info p {
    color: #cccccc;
}

body.hacker-mode .contact-item {
    background-color: #1a1a1a;
    border: 1px solid #00ff41;
}

body.hacker-mode .form-group input,
body.hacker-mode .form-group textarea {
    background-color: #1a1a1a;
    color: #00ff41;
    border-color: #00ff41;
    border-width: 1px;
}

body.hacker-mode .hero h1 {
    color: #00ff41;
}

body.hacker-mode .about h2,
body.hacker-mode .portfolio h2,
body.hacker-mode .contact h2 {
    color: #00ff41;
}

body.hacker-mode .project-info h3 {
    color: #00ff41;
}

body.hacker-mode .project-info p {
    color: #cccccc;
}

body.hacker-mode .about-text p {
    color: #00aa33;
}

body.hacker-mode .contact-info p {
    color: #00aa33;
}

body.hacker-mode .tagline {
    color: #00aa33;
}

body.hacker-mode .skill-name {
    color: #00ff41;
}

body.hacker-mode .skill-name span:last-child {
    color: #ffffff;
}

body.hacker-mode footer {
    color: #666666;
}

/* Override all blue elements to green in hacker mode */
body.hacker-mode .highlight {
    color: #00ff41;
}

body.hacker-mode .social-icon {
    color: #00ff41;
}

body.hacker-mode .social-icon:hover {
    color: #ffffff;
}

body.hacker-mode .cta-button.primary {
    background-color: #00ff41;
    color: #0a0a0a;
}

body.hacker-mode .cta-button.outline {
    background-color: transparent;
    color: #00ff41;
    border: 2px solid #00ff41;
}

body.hacker-mode .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.4);
}

body.hacker-mode .cta-button.outline:hover {
    background-color: #00ff41;
    color: #0a0a0a;
}

body.hacker-mode .hero-image img {
    border: 4px solid #00ff41;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

body.hacker-mode .project-card:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.2);
}

body.hacker-mode .project-card:hover .project-info h3 {
    color: #ffffff;
}

body.hacker-mode .project-card:hover .project-info p {
    color: #e0e0e0;
}

body.hacker-mode .project-tech span {
    background-color: #00ff41;
    color: #0a0a0a;
}

body.hacker-mode .project-card:hover .project-tech span {
    background-color: #ffffff;
    color: #0a0a0a;
    transform: scale(1.05);
}

body.hacker-mode .project-link {
    color: #00ff41;
}

body.hacker-mode .project-link:hover {
    color: #ffffff;
}

body.hacker-mode .form-group input,
body.hacker-mode .form-group textarea {
    border: 2px solid #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

body.hacker-mode .form-group input:focus,
body.hacker-mode .form-group textarea:focus {
    outline: none;
    border-color: #00ff41;
}

body.hacker-mode .submit-button {
    background-color: #00ff41;
    color: #0a0a0a;
}

body.hacker-mode .submit-button:hover {
    background-color: #00cc33;
    transform: translateY(-2px);
}

body.hacker-mode .skill-name span:last-child {
    color: #00ff41;
}

body.hacker-mode .skill-fill {
    background: linear-gradient(90deg, #00ff41, #00cc33);
}

body.hacker-mode .contact-icon {
    color: #00ff41;
}

body.hacker-mode .theme-toggle {
    background-color: #00ff41;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
}

body.hacker-mode .theme-toggle:hover {
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.4);
}

body.hacker-mode .cursor {
    background-color: #00ff41;
}

body.hacker-mode .close-modal {
    background-color: #00ff41;
}

body.hacker-mode .close-modal:hover {
    background-color: #00cc33;
}

body.hacker-mode #name-text {
    color: #00ff41;
}

body.hacker-mode #particle-canvas {
    /* Particles will be styled in the JavaScript for hacker mode */
}

/* Override binary and code symbols to green in hacker mode */
body.hacker-mode .binary-digit {
    color: rgba(0, 255, 65, 0.4);
}

body.hacker-mode .code-symbol {
    color: rgba(0, 255, 65, 0.3);
}

/* Hacker mode background designs */
body.hacker-mode .about::before {
    background:
        radial-gradient(circle at 25% 25%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(0, 255, 65, 0.02) 50%, transparent 51%);
}

body.hacker-mode .portfolio::before {
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 255, 65, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 255, 65, 0.01) 10px,
            rgba(0, 255, 65, 0.01) 20px
        );
}

body.hacker-mode .contact::before {
    background:
        radial-gradient(circle at 40% 30%, rgba(0, 255, 65, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 65, 0.02) 0%, transparent 50%),
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            rgba(0, 255, 65, 0.01) 0deg,
            transparent 90deg
        );
}

/* Light Mode Header Scroll Effect */
body.light-mode header {
    background-color: rgba(255, 255, 255, 0.95);
}

body.light-mode .nav-links a {
    color: #333333;
}

body.light-mode .nav-links a:hover {
    color: #00d4ff;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-width: 500px;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 4px solid #00d4ff;
}

.close-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background-color: #00d4ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.close-modal:hover {
    background-color: #0099cc;
    transform: scale(1.1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Code Symbols Animation */
.code-symbol {
    position: absolute;
    color: rgba(0, 212, 255, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    animation: codeFloat 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.code-symbol:nth-child(1) { content: '{'; top: 15%; left: 5%; animation-delay: 0s; }
.code-symbol:nth-child(2) { content: '}'; top: 25%; right: 8%; animation-delay: 3s; }
.code-symbol:nth-child(3) { content: '</>'; bottom: 25%; left: 12%; animation-delay: 6s; }
.code-symbol:nth-child(4) { content: '||'; top: 35%; right: 15%; animation-delay: 9s; }
.code-symbol:nth-child(5) { content: '=>'; bottom: 35%; left: 25%; animation-delay: 12s; }
.code-symbol:nth-child(6) { content: '&&'; top: 45%; right: 20%; animation-delay: 15s; }
.code-symbol:nth-child(7) { content: '[]'; bottom: 45%; left: 30%; animation-delay: 18s; }

@keyframes codeFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Binary Rain Animation */
.binary-digit {
    position: absolute;
    color: rgba(0, 212, 255, 0.4);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    animation: binaryFall 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.binary-digit:nth-child(8) { left: 5%; animation-delay: 0s; }
.binary-digit:nth-child(9) { left: 10%; animation-delay: 0.5s; }
.binary-digit:nth-child(10) { left: 15%; animation-delay: 1s; }
.binary-digit:nth-child(11) { left: 20%; animation-delay: 1.5s; }
.binary-digit:nth-child(12) { left: 25%; animation-delay: 2s; }
.binary-digit:nth-child(13) { left: 30%; animation-delay: 2.5s; }
.binary-digit:nth-child(14) { left: 35%; animation-delay: 3s; }
.binary-digit:nth-child(15) { left: 40%; animation-delay: 3.5s; }
.binary-digit:nth-child(16) { left: 45%; animation-delay: 4s; }
.binary-digit:nth-child(17) { left: 50%; animation-delay: 4.5s; }
.binary-digit:nth-child(18) { left: 55%; animation-delay: 5s; }
.binary-digit:nth-child(19) { left: 60%; animation-delay: 5.5s; }
.binary-digit:nth-child(20) { left: 65%; animation-delay: 6s; }
.binary-digit:nth-child(21) { left: 70%; animation-delay: 6.5s; }
.binary-digit:nth-child(22) { left: 75%; animation-delay: 7s; }
.binary-digit:nth-child(23) { left: 80%; animation-delay: 7.5s; }
.binary-digit:nth-child(24) { left: 85%; animation-delay: 8s; }
.binary-digit:nth-child(25) { left: 90%; animation-delay: 8.5s; }
.binary-digit:nth-child(26) { left: 95%; animation-delay: 9s; }
.binary-digit:nth-child(27) { left: 97%; animation-delay: 9.5s; }

@keyframes binaryFall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Name Typewriter Animation */
.name-container {
    position: relative;
}

#name-display {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
}

#name-text {
    color: #00d4ff;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #00d4ff;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Make profile image clickable */
#profile-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#profile-image:hover {
    transform: scale(1.05);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax {
    transform: translateY(0);
    transition: transform 0.3s ease;
}
