/* ========== ROOT VARIABLES ========== */
:root {
    --primary: #00ff88;
    --secondary: #0066ff;
    --accent: #ff0066;
    --dark: #0a0a0f;
    --dark2: #0f0f1a;
    --dark3: #1a1a2e;
    --card: #16213e;
    --card2: #1a1a35;
    --text: #e0e0e0;
    --text-dim: #888;
    --border: #00ff8830;
    --glow: 0 0 20px #00ff8840;
    --font-mono: 'Share Tech Mono', monospace;
    --font-main: 'Rajdhani', sans-serif;
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== PARTICLES ========== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: var(--glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5% 50px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
    text-shadow: var(--glow);
}

.typing-container {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    min-height: 40px;
}

.cursor {
    animation: blink 0.7s infinite;
    color: var(--primary);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-bio {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 500px;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ========== HERO QUOTE ========== */
.hero-quote {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding: 12px 15px;
    margin-bottom: 30px;
    background: #00ff8808;
    border-radius: 0 5px 5px 0;
    max-width: 500px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    box-shadow: var(--glow);
    display: block;
    word-wrap: break-word;
    word-break: normal;
    white-space: normal;
}

/* ========== HERO BUTTONS ========== */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow);
}

/* ========== HERO STATS ========== */
.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ========== CYBER CIRCLE ========== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cyber-circle {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: rotate 10s linear infinite;
}

.ring1 {
    width: 350px;
    height: 350px;
    opacity: 0.3;
    border-style: dashed;
}

.ring2 {
    width: 270px;
    height: 270px;
    opacity: 0.5;
    animation-direction: reverse;
    animation-duration: 7s;
}

.ring3 {
    width: 190px;
    height: 190px;
    opacity: 0.7;
    animation-duration: 5s;
    border-color: var(--secondary);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.circle-center {
    width: 120px;
    height: 120px;
    background: var(--card);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--primary);
    box-shadow: var(--glow);
    z-index: 2;
}

.circle-center i {
    font-size: 3rem;
    color: var(--primary);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* ========== SECTION HEADER ========== */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.9rem;
    opacity: 0.7;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ========== ABOUT ========== */
.about { background: var(--dark2); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

/* ✅ FIXED IMAGE STYLES */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.image-frame {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ✅ FIXED IMAGE PLACEHOLDER */
.image-placeholder {
    width: 220px;
    height: 280px;
    background: var(--card);
    border: 2px solid var(--primary);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: var(--glow);
    box-sizing: border-box;
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
}

/* ✅ FIXED SCAN LINE - top to bottom */
.image-placeholder::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        transparent
    );
    animation: scan 2.5s linear infinite;
    opacity: 0.8;
}

@keyframes scan {
    0%   { top: 0%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.image-placeholder i {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.9;
    max-width: 100%;
}

.image-placeholder span {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 1.2rem;
    text-align: center;
}

/* ✅ ID CARD STYLES */
.id-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 5px;
}

.id-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

.id-name {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
}

.id-role {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text);
    letter-spacing: 1px;
}

.id-company {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--secondary);
    letter-spacing: 1px;
}

.id-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #28c840;
    letter-spacing: 1px;
    margin-top: 5px;
    background: #28c84015;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #28c84030;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #28c840;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ========== TERMINAL ========== */
.about-text {
    width: 100%;
    overflow: hidden;
    min-width: 0;
}

.terminal-box {
    background: #0d0d1a;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--glow);
    width: 100%;
    box-sizing: border-box;
}

.terminal-header {
    background: var(--card);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-left: 10px;
}

.terminal-body {
    padding: 20px 25px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 2;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.cmd { color: var(--primary); }

.output {
    color: var(--text-dim);
    padding-left: 15px;
    word-wrap: break-word;
    word-break: break-word;
}

.output.success { color: #28c840; }

.output.quote-highlight {
    color: var(--primary);
    padding-left: 15px;
    font-style: italic;
    opacity: 0.9;
}

/* ========== SKILLS ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
    border-color: var(--primary);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: var(--dark3);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.skill-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.skill-bar {
    background: var(--dark3);
    border-radius: 5px;
    height: 6px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(
        90deg, var(--primary), var(--secondary)
    );
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease;
}

/* ========== PROJECTS ========== */
.projects { background: var(--dark2); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s;
}

.project-card.featured {
    grid-column: span 2;
    background: var(--card2);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
    border-color: var(--primary);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.project-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.project-link:hover { color: var(--primary); }

.project-tag {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.project-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    background: var(--dark3);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    border: 1px solid var(--border);
}

/* ========== BLOG ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
    border-color: var(--primary);
}

.blog-image {
    height: 150px;
    background: var(--dark3);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.blog-image i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.5;
}

.blog-content { padding: 20px; }

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.blog-category {
    background: var(--primary);
    color: var(--dark);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.blog-date {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-read-more {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.blog-read-more:hover { gap: 10px; }

/* ========== CONTACT ========== */
.contact { background: var(--dark2); }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
    word-break: break-all;
}

.contact-item a:hover { color: var(--primary); }

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.social-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

/* ========== FORM ========== */
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    color: var(--primary);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 12px 15px;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px #00ff8820;
}

.form-group textarea { resize: vertical; }

/* ========== FORM STATUS ========== */
.form-status {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #0d2e1a;
    border: 1px solid #28c840;
    color: #28c840;
}

.form-status.error {
    display: block;
    background: #2e0d0d;
    border: 1px solid #ff5f57;
    color: #ff5f57;
}

.form-status.loading {
    display: block;
    background: #0d1a2e;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content p {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 2;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-links a:hover { color: var(--primary); }
.footer-content i.fa-heart { color: var(--accent); }

/* ========== RESPONSIVE 1024px ========== */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== RESPONSIVE 768px ========== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-visual { margin-top: 40px; }
    .cyber-circle { width: 250px; height: 250px; }
    .ring1 { width: 250px; height: 250px; }
    .ring2 { width: 190px; height: 190px; }
    .ring3 { width: 130px; height: 130px; }

    /* ✅ HERO QUOTE MOBILE */
    .hero-quote {
        font-size: 0.85rem;
        max-width: 100%;
        padding: 10px 12px;
        letter-spacing: 0.3px;
        line-height: 1.7;
        margin-bottom: 25px;
        text-align: left;
    }

    /* ✅ ABOUT MOBILE FIX */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        overflow: hidden;
    }

    .about-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about-text {
        width: 100%;
        overflow: hidden;
        min-width: 0;
    }

    .image-placeholder {
        width: 200px;
        height: 300px;
    }

    .image-placeholder i {
        font-size: 4rem;
    }

    .terminal-body {
        padding: 15px;
        font-size: 0.8rem;
    }

    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card.featured { grid-column: span 1; }
    .blog-grid { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--dark2);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    .hero-stats { justify-content: center; }
    .hero-buttons { justify-content: center; }
}

/* ========== RESPONSIVE 480px ========== */
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .typing-container { font-size: 1.1rem; }

    /* ✅ HERO QUOTE SMALL MOBILE */
    .hero-quote {
        font-size: 0.78rem;
        max-width: 100%;
        padding: 8px 10px;
        letter-spacing: 0.2px;
        line-height: 1.6;
    }

    .image-placeholder {
        width: 180px;
        height: 270px;
    }

    .image-placeholder i {
        font-size: 3.5rem;
    }

    .terminal-body {
        padding: 12px;
        font-size: 0.75rem;
    }

    .cyber-circle { width: 200px; height: 200px; }
    .ring1 { width: 200px; height: 200px; }
    .ring2 { width: 150px; height: 150px; }
    .ring3 { width: 100px; height: 100px; }

    .hero-stats { gap: 20px; }
    .stat-number { font-size: 1.2rem; }
    .section-header h2 { font-size: 2rem; }
    .contact-form { padding: 20px; }
    .footer-content p { font-size: 0.8rem; }
}