:root {
    --deep-space: #0A0A0F;
    --neon-blue: #00F3FF;
    --cyber-purple: #7D4FFF;
    --void: #000000;
    --stardust: #FFFFFF1A;
    --accent: #FF4D4D;
    --granted: #00a000;
    --denied: #880202;
    --text: rgba(255, 255, 255, 0.9);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--deep-space);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 4px;
}

/* Cyberpunk Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--stardust);
    z-index: 1000;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--cyber-purple));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: var(--transition);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Holographic Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 90%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--cyber-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 3rem;
}

.cyber-button {
    padding: 1.5rem 3rem;
    border: 2px solid var(--neon-blue);
    background: var(--deep-space);
    color: var(--neon-blue);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 243, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.cyber-button:hover::before {
    left: 100%;
}
.cyber-button-granted {
    padding: 1.5rem 3rem;
    border: 2px solid var(--granted);
    background: var(--deep-space);
    color: var(--granted);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.cyber-button-granted::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 243, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.cyber-button-granted:hover::before {
    left: 100%;
}
.cyber-button-denied {
    padding: 1.5rem 3rem;
    border: 2px solid var(--denied);
    background: var(--deep-space);
    color: var(--denied);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.cyber-button-denied::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 243, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.cyber-button-denied:hover::before {
    left: 100%;
}

/* Neon Project Cards */
.projects-section {
    padding: 8rem 5%;
}

.projects-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--void);
    border-radius: 20px;
    padding: 0.5rem;
    border: 1px solid var(--stardust);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}


.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -50%;
    width: 200%;
    height: 600%;
    background: linear-gradient(
        45deg,
        transparent,
        var(--neon-blue),
        transparent
    );
    animation: cyberGlow 4s linear infinite;
}

@keyframes cyberGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.project-card-inner {
    position: relative;
    background: var(--deep-space);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
}

.project-tags {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: start;
    justify-items: center;
}
.project-tags > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.project-tags img {
    width: 60px;
    height: 60px;
}
.project-tags p {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    text-align: center;
}
.project-tgs-name {   
    display: none;
}

.project-tag {
    background: var(--void);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    border: 1px solid var(--stardust);
}

/* Skills Matrix */
.skills-section {
    padding: 6rem 5%;
    background: linear-gradient(1deg, var(--void), var(--deep-space));
    text-align: center;
}

.skills-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.skill-card {
    padding: 2rem;
    border: 1px solid var(--stardust);
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-card h3 {
    margin: 0 0 1rem 0;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card > p {
    margin: 0 0 1.5rem 0;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--neon-blue);
    transform: scaleX(0);
    transition: var(--transition);
}

.skill-card:hover::before {
    transform: scaleX(1);
}
.skill-card img {
    margin: 25px;
    display: flex;
    justify-self: center;
    align-items: center;
    flex-direction: column;
}
.details {
    display: flex;
    justify-self: center;
    align-items: stretch;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.details > img {
    flex-shrink: 0;
}

.details > a {
    margin-top: auto;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
    width: 100%;
    min-height: 130px;
    align-items: flex-start;
}
.tech-tags span {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
}
/* Contact Section */
.contact-section {
    padding: 8rem 5% 0 5%;
    background: linear-gradient(var(--void));
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-input {
    width: 100%;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: var(--void);
    border: 1px solid var(--stardust);
    color: var(--text);
    border-radius: 10px;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--neon-blue);
    outline: none;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .skill-card img {
        margin: 25px;
        display: flex;
        justify-self: center;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.4s ease-out, slideOut 0.4s ease-out 4.6s forwards;
    box-shadow: 0 8px 32px rgba(0, 243, 255, 0.3);
    border: 2px solid;
    backdrop-filter: blur(10px);
}

.toast.success {
    background: linear-gradient(135deg, rgba(0, 160, 0, 0.2), rgba(0, 200, 0, 0.1));
    border-color: #00FF00;
    color: #00FF00;
}

.toast.error {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.2), rgba(255, 100, 100, 0.1));
    border-color: #FF4D4D;
    color: #FF4D4D;
}

.toast::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.toast.success::before {
    background: #00FF00;
    box-shadow: 0 0 10px #00FF00;
}

.toast.error::before {
    background: #FF4D4D;
    box-shadow: 0 0 10px #FF4D4D;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s ease-out;
}

.lightbox-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--neon-blue);
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--cyber-purple);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.skill-card img {
    cursor: pointer;
    transition: var(--transition);
}

.skill-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .skill-card img {
        margin: 25px;
        display: flex;
        justify-self: center;
    }
}
@media (max-width: 480px){
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-tags {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 1rem;
        align-items: center;
    }
    .project-tgs-name {
        display: none;
    }
    .skill-card img {
        margin: 25px;
        display: flex;
        justify-self: center;
    }
}
