:root {
    --primary-dark: #0a0a12;
    --secondary-dark: #121220;
    --terminal-bg: #0d1b1e;
    --neon-green: #0fff50;
    --neon-blue: #0ff;
    --neon-red: #ff0a78;
    --neon-purple: #9d00ff;
    --text-light: #e0e0ff;
    --text-gray: #a0a0c0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--primary-dark);
    color: var(--text-light);
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(15, 255, 80, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 10, 120, 0.03) 0%, transparent 30%);
    z-index: -1;
    pointer-events: none;
}

/* Terminal-style cursor effect */
.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--neon-green);
    animation: blink 1s infinite;
    margin-left: 4px;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Header & Navigation */
header {
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(15, 255, 80, 0.1);
    padding: 15px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(15, 255, 80, 0.3);
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    transition: all 0.4s ease;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    color: var(--neon-green);
}

/* Hero Section */
#hero {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 150px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-gray);
    max-width: 600px;
}

.terminal-box {
    background: var(--terminal-bg);
    border-radius: 10px;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(15, 255, 80, 0.1);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.terminal-dots {
    display: flex;
    margin-right: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot-red { background: var(--neon-red); }
.dot-yellow { background: #ffcc00; }
.dot-green { background: var(--neon-green); }

.terminal-title {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.terminal-content {
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-green);
    line-height: 1.8;
}

.terminal-content .command {
    color: var(--neon-blue);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-box {
    background: rgba(18, 18, 32, 0.7);
    border: 1px solid rgba(15, 255, 80, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 5px 15px rgba(15, 255, 80, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--neon-green);
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styling */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    display: inline-block;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--neon-green);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.cert-card {
    background: rgba(18, 18, 32, 0.7);
    border: 1px solid rgba(15, 255, 80, 0.1);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.cert-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
}

.cert-card h4 {
    color: var(--neon-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cert-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: var(--text-gray);
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--neon-green);
    border-radius: 4px;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(18, 18, 32, 0.7);
    border: 1px solid rgba(15, 255, 80, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 30px rgba(157, 0, 255, 0.2);
}

.project-img {
    height: 400px;
    background: var(--secondary-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 255, 80, 0.1), rgba(0, 255, 255, 0.1));
    opacity: 0.5;
    z-index: 1;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--neon-green);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
}

.project-tag {
    background: rgba(15, 255, 80, 0.1);
    color: var(--neon-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.tool-card {
    background: rgba(18, 18, 32, 0.7);
    border: 1px solid rgba(15, 255, 80, 0.1);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-red);
    box-shadow: 0 10px 30px rgba(255, 10, 120, 0.2);
}

.tool-icon {
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin-bottom: 20px;
}

.tool-card h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tool-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-right: 15px;
    min-width: 30px;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.contact-text p, .contact-text a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--neon-blue);
}

.contact-form {
    background: rgba(18, 18, 32, 0.7);
    border: 1px solid rgba(15, 255, 80, 0.1);
    border-radius: 10px;
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 10, 18, 0.5);
    border: 1px solid rgba(15, 255, 80, 0.1);
    border-radius: 6px;
    color: var(--text-light);
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(15, 255, 80, 0.2);
}

.btn {
    background: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 12px 30px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(15, 255, 80, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: rgba(15, 255, 80, 0.1);
    box-shadow: 0 0 15px rgba(15, 255, 80, 0.3);
}

/* Footer */
footer {
    background: rgba(10, 10, 18, 0.9);
    border-top: 1px solid rgba(15, 255, 80, 0.1);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 255, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: var(--neon-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--neon-green);
    color: var(--primary-dark);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Matrix Background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.2;
    pointer-events: none;
}

/* Glitch effect */
.glitch {
    position: relative;
    display: inline-block;
}

.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(--neon-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-blue);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    85% { clip: rect(54px, 9999px, 84px, 0); }
    90% { clip: rect(45px, 9999px, 47px, 0); }
    95% { clip: rect(37px, 9999px, 73px, 0); }
    100% { clip: rect(73px, 9999px, 3px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    15% { clip: rect(75px, 9999px, 5px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    25% { clip: rect(14px, 9999px, 79px, 0); }
    30% { clip: rect(1px, 9999px, 66px, 0); }
    35% { clip: rect(86px, 9999px, 30px, 0); }
    40% { clip: rect(23px, 9999px, 98px, 0); }
    45% { clip: rect(85px, 9999px, 72px, 0); }
    50% { clip: rect(71px, 9999px, 75px, 0); }
    55% { clip: rect(2px, 9999px, 48px, 0); }
    60% { clip: rect(30px, 9999px, 16px, 0); }
    65% { clip: rect(59px, 9999px, 50px, 0); }
    70% { clip: rect(41px, 9999px, 62px, 0); }
    75% { clip: rect(2px, 9999px, 82px, 0); }
    80% { clip: rect(47px, 9999px, 73px, 0); }
    85% { clip: rect(3px, 9999px, 27px, 0); }
    90% { clip: rect(26px, 9999px, 55px, 0); }
    95% { clip: rect(42px, 9999px, 97px, 0); }
    100% { clip: rect(38px, 9999px, 49px, 0); }
}

/* ========== Mobile Responsiveness ========== */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid,
    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 50px;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }
    
    .stats-grid {
        max-width: 600px;
        margin: 50px auto 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 18, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
        z-index: 1000;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-grid {
        gap: 30px;
    }
    
    .cert-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-img {
        height: 300px;
    }
    
    .contact-container {
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    .social-link:first-child {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    #hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-box {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2::after {
        width: 60px;
        height: 2px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .project-img {
        height: 250px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .terminal-box {
        padding: 20px;
    }
    
    .terminal-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .project-img {
        height: 200px;
    }
    
    .cert-card,
    .tool-card {
        padding: 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}