/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #ff0000;
    --secondary-red: #cc0000;
    --dark-red: #8b0000;
    --light-red: #ff3333;
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-white: #ffffff;
    --text-gray: #999999;
    --text-light-gray: #cccccc;
    --border-red: rgba(255, 0, 0, 0.3);
    --shadow-red: rgba(255, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-red);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    box-shadow: 0 0 10px var(--shadow-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-red), transparent);
    top: 10%;
    left: -10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--dark-red), transparent);
    bottom: 10%;
    right: -10%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(60px, -60px); }
    66% { transform: translate(-40px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-image-container {
    margin-bottom: 40px;
}

.hero-image-wrapper {
    display: inline-block;
    position: relative;
}

.hero-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--primary-red);
    box-shadow: 
        0 0 40px var(--shadow-red),
        0 0 80px rgba(255, 0, 0, 0.3);
    animation: logoGlow 3s ease-in-out infinite alternate;
    object-fit: cover;
}

@keyframes logoGlow {
    0% { 
        box-shadow: 0 0 40px var(--shadow-red), 0 0 80px rgba(255, 0, 0, 0.3);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 60px rgba(255, 0, 0, 0.8), 0 0 120px rgba(255, 0, 0, 0.5);
        transform: scale(1.02);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.glitch {
    position: relative;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red), var(--primary-red));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-gray);
    margin-bottom: 30px;
    font-weight: 300;
}

.typing-text {
    color: var(--text-light-gray);
    border-right: 2px solid var(--primary-red);
    padding-right: 8px;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-description p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--bg-black);
    border: 2px solid var(--primary-red);
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--secondary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-red);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: rgba(255, 0, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

/* HERO bottom: icons + scroll */
.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;              /* space between icons and SCROLL DOWN */
    margin-top: 10px;
}

/* icons row */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;  /* Remove any bottom margin */
}


/* individual icons */
.social-links a {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    background: rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
    background: rgba(255, 0, 0, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-red);
}

.htb-badge {
    font-weight: 900;
    font-size: 0.9rem;
}

/* SCROLL DOWN directly under icons */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--primary-red);
    animation: bounce 2s infinite;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 20px;  /* Space between icons and scroll text */
}


/* vertical bounce only */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.highlight {
    color: var(--primary-red);
    font-weight: 600;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid var(--border-red);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid var(--border-red);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
}

.skill-category:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

.skill-category h3 {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-red);
    color: var(--text-light-gray);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-badge:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* ============================================
   CERTIFICATIONS PAGE
   ============================================ */
.certifications-section {
    padding: 80px 0;
}

.cert-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cert-meta {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cert-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cert-status.verified {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.cert-status.active {
    background: rgba(255, 165, 0, 0.1);
    color: #ffa500;
    border: 1px solid #ffa500;
}


/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-dark);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid var(--border-red);
    border-radius: 12px;
    color: var(--text-light-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.contact-method:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateX(10px);
}


/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-hero {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-black) 100%);
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.projects-filter {
    padding: 40px 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-red);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--border-red);
    color: var(--text-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-red);
    color: var(--bg-black);
    border-color: var(--primary-red);
}

.projects-section {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-red);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.3);
    border-color: var(--primary-red);
}

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.project-category {
    background: var(--primary-red);
    color: var(--bg-black);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 15px;
    font-weight: 700;
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--border-red);
    color: var(--text-gray);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.severity {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.severity.critical {
    background: rgba(255, 0, 0, 0.2);
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
}

.severity.high {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid #ffa500;
}

.severity.medium {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    border: 1px solid #ffff00;
}

.project-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.project-link:hover {
    gap: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-red);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.footer-tech {
    font-size: 0.9rem;
    color: var(--primary-red);
}



/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
        border-top: 1px solid var(--border-red);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        flex-direction: column;
    }

    .filter-tab {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }

    .social-links a {
        width: 45px;
        height: 45px;
    }
}

/* =================================================
   LATEST BLOGS SECTION (MAIN SITE)
   ================================================= */
.blog-section {
  padding: 4rem 0;
  background: #050505;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.blog-card {
  background: #151515;
  border: 1px solid #252525;
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.blog-card:hover {
  border-color: #dc143c;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.25);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.blog-category {
  background: #8b0000;
  color: #fff;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

.blog-date-time {
  color: #00ff88;
}

.blog-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.blog-title a {
  color: #f5f5f5;
  text-decoration: none;
}

.blog-title a:hover {
  color: #dc143c;
}

.blog-excerpt {
  color: #aaaaaa;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.blog-readmore {
  font-size: 0.9rem;
  color: #dc143c;
  text-decoration: none;
  font-weight: 600;
}

.blog-readmore:hover {
  text-decoration: underline;
}

.blog-footer {
  margin-top: 2rem;
  text-align: center;
}

.blog-empty {
  color: #888;
  text-align: center;
}
