:root {
    --bg-color: #050505;
    --bg-secondary: #111;
    --primary-color: #00ff41;
    /* Matrix Green */
    --primary-glow: rgba(0, 255, 65, 0.5);
    --secondary-color: #008f11;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --terminal-bg: #0c0c0c;
    --glass-bg: rgba(17, 17, 17, 0.7);
    --glass-border: rgba(0, 255, 65, 0.2);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-mono);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    text-shadow: 0 0 8px var(--primary-glow);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    box-shadow: inset 0 0 20px 0 var(--primary-glow);
    text-shadow: 0 0 5px #000;
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--bg-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: inset 0 0 20px 0 var(--primary-glow);
    text-shadow: 0 0 5px #000;
}

.cta-container {
    display: flex;
    gap: 20px;
}

section {
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.cmd-prompt {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.greeting {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.glitch {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 10px;
}

.typing-text {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    height: 40px;
}

.cursor {
    animation: blink 1s infinite;
    background-color: var(--primary-color);
    width: 10px;
    display: inline-block;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }
}

.summary {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px var(--primary-glow);
    animation: glow 2s infinite alternate;
}



@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    font-size: 1.2rem;
}

.about-text strong {
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.skill {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
    width: 0;
    transition: width 1.5s ease-out;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
}

.tool-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    cursor: default;
}

.tool-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.tool-item span {
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--primary-glow);
    border-color: var(--primary-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    width: 100%;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.card-front {
    background: var(--glass-bg);
}

.project-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card-back {
    transform: rotateY(180deg);
    background: rgba(0, 255, 65, 0.05);
    align-items: flex-start;
    text-align: left;
}

.cert-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-content {
    background: var(--glass-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.timeline-content:hover {
    border-color: var(--primary-color);
}

.education-list {
    margin-top: 15px;
    margin-left: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact {
    text-align: center;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 12px;
}

.contact-item {
    font-size: 1.2rem;
    display: flex;
    gap: 15px;
    align-items: center;
    font-family: var(--font-mono);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 2rem;
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #333;
    background: var(--bg-secondary);
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .cta-container {
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile Photo */
.profile-photo img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00ff41;
    box-shadow: 0 0 30px #00ff41;
}

@keyframes glow {
    from {
        box-shadow: 0 0 15px #00ff41;
    }

    to {
        box-shadow: 0 0 45px #00ff41;
    }
}
