/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 120px;
    height: 120px;
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Base Styles and CSS Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --bg-color: #fff;
    --section-bg: #f8f9fa;
    --card-bg: #fff;
    --border-color: #e1e1e1;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --icon-size: 2rem;
    --icon-color: #3498db;
    --touch-target-min: 44px;
    --header-height: 80px;
}

/* Safe area for notched devices */
@supports(padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ecf0f1;
        --secondary-color: #3498db;
        --text-color: #f8f9fa;
        --bg-color: #1a1a1a;
        --section-bg: #2c2c2c;
        --card-bg: #333;
        --border-color: #444;
        --shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
        --icon-color: #3498db;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

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

/* Improve touch interactions */
@media (hover: none) and (pointer: coarse) {
    a, button, .clickable {
        -webkit-tap-highlight-color: rgba(52, 152, 219, 0.2);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    animation: fadeIn 0.8s ease-out;
}

.logo-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    animation: logoEntrance 1s ease-out;
}

.logo-svg:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes logoEntrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.logo-svg .wing-svg {
    animation: wingFlutter 2s infinite ease-in-out;
    transform-origin: center;
}

@keyframes wingFlutter {
    0%, 100% {
        opacity: 0.9;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.logo-text {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.logo:hover .logo-text {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    position: relative;
    min-height: var(--touch-target-min);
}

@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover {
        color: var(--secondary-color);
        background-color: var(--section-bg);
        transform: translateY(-2px);
    }
}

@media (hover: none) and (pointer: coarse) {
    .nav-links a:active {
        color: var(--secondary-color);
        background-color: var(--section-bg);
        transform: scale(0.98);
    }
}

.nav-links a.active-nav {
    color: var(--secondary-color);
    background-color: var(--section-bg);
}

.nav-links a.active-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.nav-links a i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-links a:hover i {
    transform: scale(1.2) rotate(5deg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--section-bg) 0%, var(--bg-color) 100%);
    position: relative;
    overflow: hidden;
}

.pegasus-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.pegasus-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30rem;
    color: var(--icon-color);
    animation: pegasusFly 20s infinite ease-in-out;
}

.pegasus-wings {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.wing-left, .wing-right {
    position: absolute;
    font-size: 15rem;
    color: var(--icon-color);
}

.wing-left {
    left: -10rem;
    transform: rotate(-30deg);
    animation: wingFlap 3s infinite ease-in-out;
}

.wing-right {
    right: -10rem;
    transform: rotate(30deg);
    animation: wingFlap 3s infinite ease-in-out reverse;
}

@keyframes pegasusFly {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        transform: translate(-45%, -55%) scale(1.05);
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
    }
    75% {
        transform: translate(-55%, -45%) scale(0.95);
    }
}

@keyframes wingFlap {
    0%, 100% {
        transform: rotate(-30deg) translateY(0);
    }
    50% {
        transform: rotate(-20deg) translateY(-20px);
    }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.profile-icon {
    font-size: 5rem;
    color: var(--icon-color);
    margin-bottom: 2rem;
    animation: pulse 2s infinite, scaleIn 0.8s ease-out;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--card-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: badgeFloat 3s infinite ease-in-out;
}

.badge:nth-child(1) { animation-delay: 0s; }
.badge:nth-child(2) { animation-delay: 0.5s; }
.badge:nth-child(3) { animation-delay: 1s; }
.badge:nth-child(4) { animation-delay: 1.5s; }

.badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.badge i {
    color: var(--secondary-color);
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

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

.hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    animation: fadeInUp 1.2s ease-out;
    line-height: 1.2;
}

.credentials {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
    animation: fadeInUp 1.4s ease-out;
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--secondary-color);
    animation: fadeInUp 1.6s ease-out;
    line-height: 1.4;
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    animation: fadeIn 0.8s ease-out;
    scroll-margin-top: 80px;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    display: inline-block;
    width: 100%;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #2980b9);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.3s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

/* About Section */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-text {
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.certifications {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.certifications h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.cert-badge {
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: certFloat 3s infinite ease-in-out;
}

.cert-badge:nth-child(odd) {
    animation-delay: 0.5s;
}

.cert-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

@keyframes certFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.skill-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.skill-category h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h4 i {
    font-size: var(--icon-size);
    color: var(--icon-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.skill-category li i {
    color: var(--icon-color);
}

/* Portfolio Section */
.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-category {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: scaleIn 0.6s ease-out;
}

.portfolio-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.3);
}

.portfolio-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-category h3 i {
    font-size: var(--icon-size);
    color: var(--icon-color);
    transition: transform 0.3s ease;
}

.portfolio-category:hover h3 i {
    transform: rotate(360deg) scale(1.2);
}

.portfolio-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateX(5px);
}

.portfolio-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.portfolio-item i {
    font-size: 2.5rem;
    color: var(--icon-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.portfolio-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--secondary-color);
}

/* Blog Section */
.blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-post {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.blog-post i {
    font-size: 2.5rem;
    color: var(--icon-color);
    margin-bottom: 1rem;
}

.blog-post h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Author Bio */
.author-bio {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
    animation: fadeInUp 0.6s ease-out;
}

.author-bio h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.author-name {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.author-description {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Contact Info */
.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.7s ease-out;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-intro {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.contact-details {
    display: grid;
    gap: 1rem;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: var(--section-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #fff;
    background: var(--secondary-color);
    transform: translateX(5px);
}

.contact-item a i {
    font-size: 1.2rem;
}

/* Social Media */
.social-media {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease-out;
}

.social-media h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--section-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: scaleIn 0.5s ease-out;
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }
.social-link:nth-child(4) { animation-delay: 0.4s; }

.social-link i {
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.social-link span {
    font-size: 1rem;
    font-weight: 600;
}

.social-link:hover {
    color: #fff;
    background: var(--secondary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.social-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid #e74c3c;
    animation: fadeInUp 0.9s ease-out;
}

.support-section h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.support-section h3 i {
    animation: heartBeat 1.5s infinite;
}

.support-intro {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.support-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.support-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1rem;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.support-link i {
    font-size: 2rem;
    color: #e74c3c;
    transition: all 0.3s ease;
}

.support-link:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.support-link:hover i {
    color: #fff;
    transform: scale(1.2) rotate(10deg);
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(0.9);
    }
}

/* Cybersecurity Section */
.cybersecurity {
    background-color: var(--section-bg);
}

.cyber-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.cyber-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cyber-category {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease-out forwards;
    opacity: 0;
}

.cyber-category:nth-child(1) { animation-delay: 0.1s; }
.cyber-category:nth-child(2) { animation-delay: 0.2s; }
.cyber-category:nth-child(3) { animation-delay: 0.3s; }
.cyber-category:nth-child(4) { animation-delay: 0.4s; }
.cyber-category:nth-child(5) { animation-delay: 0.5s; }
.cyber-category:nth-child(6) { animation-delay: 0.6s; }
.cyber-category:nth-child(7) { animation-delay: 0.7s; }
.cyber-category:nth-child(8) { animation-delay: 0.8s; }

.cyber-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

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

.cyber-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.cyber-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.cyber-category ul {
    list-style: none;
}

.cyber-category li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.cyber-category li:hover {
    background-color: var(--section-bg);
    border-radius: 5px;
    padding-left: 1rem;
}

.cyber-category li i {
    color: #27ae60;
    font-size: 0.9rem;
}

.cyber-tools {
    max-width: 1200px;
    margin: 3rem auto 0;
    text-align: center;
}

.cyber-tools h3 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tool-badge {
    padding: 0.7rem 1.5rem;
    background-color: var(--card-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    color: var(--text-color);
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: toolPulse 2s infinite ease-in-out;
}

.tool-badge:nth-child(odd) {
    animation-delay: 0.5s;
}

.tool-badge:hover {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

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

/* GitHub Section */
.github-section {
    background-color: var(--bg-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.section-subtitle a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.section-subtitle a:hover {
    text-decoration: underline;
}

.github-grid {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.repo-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease-out forwards;
}

.repo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
    border-color: var(--secondary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.repo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.repo-header i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.repo-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.repo-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.repo-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.repo-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-color);
}

.repo-stats i {
    color: var(--secondary-color);
}

.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.repo-link:hover {
    background: linear-gradient(135deg, #2980b9, var(--secondary-color));
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.github-stats {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.stat-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-color);
    font-weight: 600;
}

/* Experience Section */
.experience-section {
    background-color: var(--bg-color);
    padding: 5rem 2rem;
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.experience-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s ease-out;
    opacity: 1;
}

.experience-card:nth-child(1) { animation-delay: 0.1s; }
.experience-card:nth-child(2) { animation-delay: 0.2s; }
.experience-card:nth-child(3) { animation-delay: 0.3s; }
.experience-card:nth-child(4) { animation-delay: 0.4s; }
.experience-card:nth-child(5) { animation-delay: 0.5s; }
.experience-card:nth-child(6) { animation-delay: 0.6s; }

.experience-card:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.3);
    border-left-width: 8px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.company-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.location {
    color: var(--text-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location i {
    color: var(--secondary-color);
}

.period {
    text-align: right;
}

.badge-period {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.achievements {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    color: var(--text-color);
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    line-height: 1.6;
}

.achievements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Education Section */
.education-section {
    background-color: var(--section-bg);
    padding: 5rem 2rem;
}

.education-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.education-category {
    margin-bottom: 3rem;
}

.education-category > h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.education-category > h3 i {
    color: var(--secondary-color);
}

.education-cards,
.cert-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-card,
.cert-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    animation: scaleIn 0.6s ease-out;
}

.education-card:nth-child(1) { animation-delay: 0.1s; }
.education-card:nth-child(2) { animation-delay: 0.2s; }
.education-card:nth-child(3) { animation-delay: 0.3s; }

.cert-card:nth-child(1) { animation-delay: 0.1s; }
.cert-card:nth-child(2) { animation-delay: 0.2s; }
.cert-card:nth-child(3) { animation-delay: 0.3s; }
.cert-card:nth-child(4) { animation-delay: 0.4s; }

.education-card:hover,
.cert-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.3);
}

.edu-icon,
.cert-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.education-card:hover .edu-icon,
.cert-card:hover .cert-icon {
    transform: rotateY(360deg);
}

.education-card h4,
.cert-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.institution,
.cert-issuer {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.year,
.cert-year {
    color: var(--secondary-color);
    font-weight: 600;
}

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

.training-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.training-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.training-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.training-card h4 i {
    color: var(--secondary-color);
}

.training-card p {
    color: var(--text-color);
    font-size: 0.9rem;
}

.language-skills {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.language-skills h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.languages {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.lang-badge {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.lang-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.technical-skills {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.skill-group {
    margin-bottom: 2rem;
}

.skill-group h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-group h4 i {
    color: var(--secondary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-tag.expert {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.skill-tag.medium {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hacker-alias {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.hacker-alias i {
    color: #e74c3c;
    margin-right: 0.5rem;
}

/* Organizations Section */
.organizations-section {
    background-color: var(--bg-color);
    padding: 5rem 2rem;
}

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

.org-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
    animation: fadeInUp 0.6s ease-out;
}

.org-card:nth-child(1) { animation-delay: 0.1s; }
.org-card:nth-child(2) { animation-delay: 0.2s; }
.org-card:nth-child(3) { animation-delay: 0.3s; }
.org-card:nth-child(4) { animation-delay: 0.4s; }

.org-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.3);
    border-top-width: 6px;
}

.org-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.org-card:hover .org-icon {
    transform: scale(1.2) rotateY(360deg);
}

.org-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.org-role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.org-period {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.org-responsibilities {
    list-style: none;
    padding-left: 0;
}

.org-responsibilities li {
    color: var(--text-color);
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    position: relative;
    line-height: 1.5;
    font-size: 0.95rem;
}

.org-responsibilities li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.business-skills {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.business-skills h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.business-skills h3 i {
    color: var(--secondary-color);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
    border-radius: 12px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
}

.skill-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.skill-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.skill-item p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Research Section */
.research-section {
    background-color: var(--section-bg);
}

.research-stats {
    max-width: 900px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: scaleIn 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-5px) rotate(2deg) scale(1.05);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.stat-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover i {
    transform: scale(1.3) rotate(360deg);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-color);
    font-weight: 600;
}

.scholar-profile {
    max-width: 900px;
    margin: 0 auto 3rem;
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary-color);
}

.scholar-profile h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scholar-profile h3 i {
    color: var(--secondary-color);
}

.scholar-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
    border-radius: 8px;
}

.scholar-info p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.scholar-info p:first-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.research-interests {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(52, 152, 219, 0.2);
}

.research-interests i {
    color: var(--secondary-color);
}

.citation-stats {
    margin-top: 1.5rem;
}

.citation-stats h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.citation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.citation-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.citation-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.citation-item .label {
    color: var(--text-color);
    font-weight: 600;
}

.citation-item .value {
    color: var(--secondary-color);
    font-weight: 700;
}

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

.publication-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.publication-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
    border-left-width: 8px;
}

.pub-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.publication-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.pub-authors {
    color: var(--text-color);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.pub-journal {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pub-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pub-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pub-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.citations {
    color: var(--text-color);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.citations i {
    color: var(--secondary-color);
}

.scholar-link {
    text-align: center;
}

.scholar-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.scholar-button:hover {
    background: linear-gradient(135deg, #2980b9, var(--secondary-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.scholar-button i {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--section-bg);
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        text-align: left;
        gap: 1.5rem;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

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

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .profile-icon {
        font-size: 4rem;
    }

    .pegasus-icon {
        font-size: 15rem;
    }

    .wing-left, .wing-right {
        font-size: 8rem;
    }

    .wing-left {
        left: -5rem;
    }

    .wing-right {
        right: -5rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

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

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

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

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

    .tools-grid {
        gap: 0.5rem;
    }

    .tool-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .about-content, .portfolio-item, .blog-post {
    animation: fadeIn 0.8s ease-out forwards;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: slideInRight 1s ease-out, float 3s ease-in-out 1s infinite;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.5);
    z-index: -1;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float i {
    animation: whatsappPulse 2s infinite;
}

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: slideInRight 0.5s ease-out;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #2980b9, var(--secondary-color));
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.scroll-to-top i {
    animation: arrowBounce 2s infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Mobile Responsive - Additional Improvements */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .credentials {
        font-size: 0.85rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .profile-icon {
        font-size: 3rem;
    }

    .pegasus-icon {
        font-size: 10rem;
    }

    .wing-left, .wing-right {
        font-size: 5rem;
    }

    .wing-left {
        left: -3rem;
    }

    .wing-right {
        right: -3rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        font-size: 1.5rem;
    }

    section {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .cyber-category h3,
    .skill-category h4 {
        font-size: 1rem;
    }

    .repo-card,
    .publication-card {
        padding: 1rem;
    }

    .github-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .research-stats {
        grid-template-columns: 1fr;
    }
}

/* Awesome Hacking Tools Indonesia Section */
.hacking-tools-section {
    background: linear-gradient(135deg, var(--section-bg) 0%, var(--bg-color) 100%);
    padding: 4rem 2rem;
}

.tools-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
}

.tools-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tools-intro {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.tools-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.github-repo-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.github-repo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.github-repo-link i {
    margin-right: 0.5rem;
}

/* Table of Contents */
.tools-toc {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.tools-toc h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.toc-item {
    padding: 1rem;
    background: var(--section-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.toc-item i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.toc-item:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

.toc-item:hover i {
    color: white;
}

/* Tools Category */
.tools-category {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    scroll-margin-top: 100px;
}

.tools-category h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-color);
}

.tools-category h3 i {
    color: var(--secondary-color);
    margin-right: 0.8rem;
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.tool-item {
    padding: 1.5rem;
    background: var(--section-bg);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-left-color: #e74c3c;
}

.tool-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-item h4 i {
    color: var(--secondary-color);
}

.tool-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

/* Statistics */
.tools-statistics {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.tools-statistics h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: var(--section-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-box i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-box h4 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-box p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Disclaimer */
.tools-disclaimer {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-left: 5px solid #ff9800;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
    .tools-disclaimer {
        background: linear-gradient(135deg, #3a3000 0%, #4a4000 100%);
        border-left-color: #ffa726;
    }
}

.tools-disclaimer h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ff9800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tools-disclaimer p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.tools-disclaimer ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.tools-disclaimer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Author & Support */
.tools-author {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.tools-author h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.tools-author h4 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
}

.author-info {
    padding: 1.5rem;
    background: var(--section-bg);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.author-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.author-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* Donation Section */
.donation-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    .donation-section {
        background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    }
}

.donation-section p {
    margin-bottom: 1rem;
}

.donate-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.donate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.donate-button i {
    margin-right: 0.5rem;
    animation: heartbeat 1.5s infinite;
}

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

/* Community Section */
.community-section {
    padding: 1.5rem;
    background: var(--section-bg);
    border-radius: 8px;
}

.community-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.community-link:hover {
    transform: translateX(5px);
    border-color: var(--secondary-color);
}

.community-link.youtube:hover {
    border-color: #ff0000;
}

.community-link.youtube i {
    color: #ff0000;
}

.community-link.telegram:hover {
    border-color: #0088cc;
}

.community-link.telegram i {
    color: #0088cc;
}

.community-link.tiktok:hover {
    border-color: #000000;
}

.community-link.tiktok i {
    color: #ff0050;
}

.community-link.whatsapp:hover {
    border-color: #25d366;
}

.community-link.whatsapp i {
    color: #25d366;
}

.community-link i {
    font-size: 1.5rem;
}

/* Contribution */
.tools-contribution {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.tools-contribution h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tools-contribution p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contribute-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contribute-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.contribute-button i {
    margin-right: 0.5rem;
}

/* License */
.tools-license {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
}

.tools-license p {
    margin-bottom: 0.5rem;
}

.made-with-love {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1rem;
    color: var(--secondary-color);
}

/* Responsive Design for Hacking Tools Section */
@media (max-width: 768px) {
    /* Header & Navigation Responsive */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

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

    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a i {
        font-size: 1.2rem;
    }

    .tools-header h2 {
        font-size: 2rem;
    }

    .tools-intro {
        padding: 1.5rem;
    }

    .tools-intro p {
        font-size: 1rem;
    }

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

    .tools-list {
        grid-template-columns: 1fr;
    }

    .tools-category h3 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-links {
        grid-template-columns: 1fr;
    }

    .author-links {
        flex-direction: column;
    }

    .tools-category {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tools-header h2 {
        font-size: 1.5rem;
    }

    .tools-category h3 {
        font-size: 1.3rem;
    }

    .tool-item h4 {
        font-size: 1rem;
    }

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

    .stat-box {
        padding: 1.5rem;
    }

    .stat-box i {
        font-size: 2rem;
    }

    .stat-box h4 {
        font-size: 2rem;
    }

    /* Experience Section Responsive */
    .exp-header {
        flex-direction: column;
        align-items: start;
    }

    .period {
        text-align: left;
    }

    .badge-period {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    /* Education Section Responsive */
    .education-cards,
    .cert-cards {
        grid-template-columns: 1fr;
    }

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

    .skill-tags {
        gap: 0.5rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .education-category > h3 {
        font-size: 1.4rem;
    }

    /* Organizations Section Responsive */
    .organizations-grid {
        grid-template-columns: 1fr;
    }

    .org-card {
        padding: 1.5rem;
    }

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

    .business-skills {
        padding: 2rem;
    }

    .business-skills h3 {
        font-size: 1.5rem;
    }

    /* Game Section Responsive */
    .game-container {
        padding: 1.5rem;
    }

    .game-choices {
        flex-direction: column;
    }

    .game-choice-btn {
        font-size: 0.9rem;
        padding: 0.9rem 1.2rem;
    }

    .logo-text {
        display: none;
    }

    .logo {
        gap: 0.5rem;
    }
}

/* Game Section Styles */
.game-section {
    padding: 4rem 2rem;
    background: var(--section-bg);
}

.game-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.game-display {
    background: linear-gradient(135deg, var(--section-bg), var(--card-bg));
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.game-character {
    text-align: center;
    margin-bottom: 2rem;
}

.game-avatar {
    font-size: 5rem;
    color: var(--secondary-color);
    animation: characterFloat 3s ease-in-out infinite;
}

@keyframes characterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.game-story {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 2rem;
    transition: opacity 0.3s ease;
}

.game-story h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.game-story p {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
}

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

.stat-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.stat-item span {
    color: var(--text-color);
    font-size: 0.95rem;
}

.stat-item strong {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.game-choices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-choice-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.game-choice-btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.game-choice-btn:active {
    transform: translateY(0);
}

.game-choice-btn i {
    font-size: 1.2rem;
}

.game-progress {
    margin-top: 2rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--section-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), #27ae60);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
}

.ending-stats {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--section-bg);
    border-radius: 10px;
}

.ending-stats h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.ending-stats p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.achievement {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    animation: achievementPulse 2s ease-in-out infinite;
}

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

/* Ensure all sections are visible by default */
section {
    display: block;
    visibility: visible;
}

/* Comprehensive CV Section Styles */
.cv-section {
    padding: 4rem 2rem;
    background: var(--section-bg);
    min-height: 100vh;
    display: block !important;
    visibility: visible !important;
}

.cv-section * {
    visibility: visible !important;
}

.cv-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.cv-section .section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* CV Intro Stats */
.cv-intro {
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.cv-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.stat-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.3);
    border-color: var(--secondary-color);
}

.stat-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.stat-item p {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.cv-category {
    max-width: 1200px;
    margin: 0 auto 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cv-category:hover {
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.cv-category h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
    font-weight: bold;
    display: flex;
    align-items: center;
}

.cv-category h3 i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

/* Personal Data Grid */
.cv-personal-data {
    display: grid;
    gap: 2rem;
}

.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--section-bg);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.info-label {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.info-value {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.contact-links {
    margin-top: 1.5rem;
}

.contact-links h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.email-list,
.publication-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.email-list li,
.publication-links li {
    padding: 0.5rem 1rem;
    background: var(--section-bg);
    border-radius: 20px;
    font-size: 0.9rem;
}

.email-list li i,
.publication-links li i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* CV Tables */
.cv-table {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cv-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-color);
}

.cv-table th {
    background: var(--secondary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    position: sticky;
    top: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cv-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cv-table tbody tr:hover {
    background: rgba(52, 152, 219, 0.1);
    transition: background 0.3s ease;
}

.cv-table tbody tr:nth-child(even) {
    background: var(--section-bg);
}

.cv-table-scrollable {
    max-height: 500px;
    overflow-y: auto;
}

.cv-table-scrollable::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.cv-table-scrollable::-webkit-scrollbar-track {
    background: var(--section-bg);
    border-radius: 4px;
}

.cv-table-scrollable::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

/* Publications */
.cv-publications {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pub-item {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--section-bg);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.pub-item:hover {
    transform: translateX(5px);
}

.pub-year {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.pub-title {
    color: var(--text-color);
    font-weight: 500;
}

.pub-venue {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Special Skills Grid */
.special-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-section {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
}

.skill-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-section h4 i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.skills-detail {
    list-style: none;
}

.skills-detail li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.skills-detail li:last-child {
    border-bottom: none;
}

.skills-detail li strong {
    color: var(--secondary-color);
}

.skills-detail li a {
    color: var(--secondary-color);
    text-decoration: none;
}

.skills-detail li a:hover {
    text-decoration: underline;
}

/* Personal Details Grid */
.personal-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.personal-detail-item {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.personal-detail-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.personal-detail-item ul {
    list-style: none;
}

.personal-detail-item ul li {
    padding: 0.5rem 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.personal-detail-item ul li:last-child {
    border-bottom: none;
}

/* Medical Projects Grid */
.medical-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--section-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.project-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card h4 i {
    margin-right: 0.5rem;
}

.project-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* CV Footer */
.cv-footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 1200px;
    margin: 2rem auto 0;
}

.cv-footer p {
    margin: 0.5rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.cv-footer p:first-child {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

/* Responsive Design */

/* Tablet styles */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .credentials {
        font-size: 1rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    section {
        padding: 3rem 1.5rem;
    }

    section h2 {
        font-size: 2rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Header and Navigation */
    .nav-container {
        padding: 0.8rem;
        flex-wrap: wrap;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .logo-svg {
        width: 40px;
        height: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        animation: slideDown 0.3s ease-out;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0;
        justify-content: flex-start;
    }

    .nav-links a span {
        margin-left: 0.5rem;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 1rem 2rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero .credentials {
        font-size: 0.9rem;
    }

    .hero .tagline {
        font-size: 0.85rem;
    }

    .profile-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .pegasus-icon {
        font-size: 15rem;
    }

    .wing-left, .wing-right {
        font-size: 8rem;
    }

    /* Section Styles */
    section {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* About Section */
    .about-content {
        flex-direction: column;
    }

    .about-text, .skills {
        width: 100%;
    }

    .skill-categories {
        grid-template-columns: 1fr;
    }

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

    /* Experience Section */
    .timeline::before {
        left: 20px;
    }

    .experience-card {
        padding: 1rem;
        margin-left: 40px;
    }

    .experience-card::before {
        left: -30px;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .period {
        align-items: flex-start;
    }

    .achievements li {
        font-size: 0.9rem;
    }

    /* Education Section */
    .education-grid {
        grid-template-columns: 1fr;
    }

    .education-cards {
        grid-template-columns: 1fr;
    }

    .cert-cards {
        grid-template-columns: 1fr;
    }

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

    .technical-skills .skill-group {
        margin-bottom: 1.5rem;
    }

    .skill-tags {
        gap: 0.5rem;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Organizations Section */
    .organizations-grid {
        grid-template-columns: 1fr;
    }

    .org-card {
        padding: 1.5rem;
    }

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

    /* CV Section */
    .cv-section h2 {
        font-size: 1.8rem;
    }

    .cv-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-item i {
        font-size: 2rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.9rem;
    }

    .cv-category {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .cv-category h3 {
        font-size: 1.3rem;
    }

    .personal-info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .info-label {
        font-weight: bold;
    }

    .cv-table {
        font-size: 0.85rem;
        overflow-x: auto;
        display: block;
    }

    .cv-table table {
        min-width: 100%;
        display: block;
        overflow-x: auto;
    }

    .cv-table th,
    .cv-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }

    .pub-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

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

    .personal-details-grid {
        grid-template-columns: 1fr;
    }

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

    /* Portfolio Section */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        padding: 1.5rem;
    }

    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }

    .contact-content {
        max-width: 100%;
    }

    .author-bio,
    .contact-info,
    .social-media,
    .support-section {
        padding: 1.5rem;
    }

    .author-bio h3,
    .contact-info h3,
    .social-media h3,
    .support-section h3 {
        font-size: 1.5rem;
    }

    .author-name {
        font-size: 1.1rem;
    }

    .author-description,
    .contact-intro,
    .support-intro {
        font-size: 1rem;
    }

    .social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .social-link {
        padding: 1rem 0.5rem;
    }

    .social-link i {
        font-size: 2rem;
    }

    .social-link span {
        font-size: 0.9rem;
    }

    .support-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .support-link {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }

    .support-link i {
        font-size: 1.5rem;
    }

    .contact-item a {
        font-size: 1rem;
        padding: 0.6rem;
    }

    .contact-item a i {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.6rem;
    }

    .logo-text {
        display: none;
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .hero .credentials {
        font-size: 0.8rem;
    }

    .hero .tagline {
        font-size: 0.75rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .experience-card {
        margin-left: 30px;
        padding: 0.8rem;
    }

    .cv-table th,
    .cv-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }

    .cv-category h3 {
        font-size: 1.1rem;
    }

    /* Contact Section - Extra Small */
    .author-bio h3,
    .contact-info h3,
    .social-media h3,
    .support-section h3 {
        font-size: 1.3rem;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-description {
        font-size: 0.9rem;
    }

    .social-links,
    .support-links {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .contact-item a {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    .nav-container {
        padding: 0.5rem;
    }

    .logo-svg {
        width: 35px;
        height: 35px;
    }

    .hero h1 {
        font-size: 1.1rem;
    }

    .hero .credentials {
        font-size: 0.75rem;
    }

    .hero .tagline {
        font-size: 0.7rem;
    }

    .profile-icon {
        font-size: 2.5rem;
    }

    section {
        padding: 1.5rem 0.8rem;
    }

    section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 1rem 2rem;
    }

    .pegasus-icon {
        font-size: 10rem;
    }

    .wing-left, .wing-right {
        font-size: 5rem;
    }

    .profile-icon {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    section {
        padding: 3rem 1.5rem;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    /* Ensure all clickable elements meet minimum touch target size */
    a, button, .clickable, .badge, .cert-badge, .tool-badge {
        min-height: var(--touch-target-min);
        min-width: var(--touch-target-min);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Improve spacing for touch */
    .hero-badges {
        gap: 1rem;
    }

    .social-links, .support-links {
        gap: 1rem;
    }

    /* Better touch feedback */
    a:active, button:active {
        opacity: 0.7;
        transform: scale(0.98);
    }

    /* Improve readability on mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Prevent text from being too small */
    p, li, span {
        font-size: max(16px, 1rem);
    }

    /* Better form inputs on mobile */
    input, textarea, select {
        font-size: 16px;
        min-height: var(--touch-target-min);
    }
}

/* Improved hover states for touch devices */
@media (hover: hover) and (pointer: fine) {
    .badge:hover,
    .cert-badge:hover,
    .tool-badge:hover {
        transform: translateY(-5px) scale(1.05);
    }

    .social-link:hover,
    .support-link:hover {
        transform: translateY(-5px) scale(1.05);
    }
}

@media (hover: none) and (pointer: coarse) {
    .badge:active,
    .cert-badge:active,
    .tool-badge:active {
        transform: scale(0.95);
    }

    .social-link:active,
    .support-link:active {
        transform: scale(0.95);
    }

    /* Remove hover animations for touch devices */
    .skill-category:hover,
    .cyber-category:hover,
    .repo-card:hover {
        transform: none;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Improve icon rendering */
    .logo-svg, .fa, .fas, .fab {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Improve accessibility - Focus visible */
@media (prefers-reduced-motion: no-preference) {
    *:focus-visible {
        outline: 3px solid var(--secondary-color);
        outline-offset: 2px;
        border-radius: 4px;
    }
}

/* Dark mode mobile optimizations */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    body {
        background-color: #1a1a1a;
    }

    .nav-links {
        background-color: #2c2c2c;
    }

    /* Improve contrast for mobile dark mode */
    section h2, .hero h1 {
        color: #f8f9fa;
    }
}

/* Additional Mobile Breakpoint - Medium Mobile (640px) */
@media (max-width: 640px) {
    .hero h1 {
        font-size: clamp(1.3rem, 4.5vw, 2rem);
    }

    .profile-icon {
        font-size: 2.8rem;
    }

    .skill-categories {
        grid-template-columns: 1fr;
    }

    .cyber-grid,
    .github-grid,
    .publications-grid {
        grid-template-columns: 1fr;
    }

    /* Better card spacing */
    .portfolio-card,
    .blog-post,
    .repo-card,
    .publication-card {
        padding: 1.2rem;
    }

    /* Improve button sizes */
    .btn, .button, .support-link, .social-link {
        padding: 0.8rem 1rem;
        min-height: 48px;
    }
}

/* Image optimization for mobile */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }

    /* Responsive iframes (for embedded content) */
    iframe {
        max-width: 100%;
    }

    /* Better spacing for sections */
    section + section {
        margin-top: 0;
    }

    /* Optimize grid gaps for mobile */
    .cyber-grid,
    .github-grid,
    .publications-grid,
    .portfolio-grid,
    .blog-grid {
        gap: 1.5rem;
    }
}

/* Better text selection on mobile */
::selection {
    background-color: var(--secondary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--secondary-color);
    color: white;
}

/* Fix for iOS Safari bottom bar */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

/* Improve link tap areas on mobile */
@media (max-width: 768px) {
    a {
        position: relative;
    }

    /* Expand tap area with pseudo-element */
    a::before {
        content: '';
        position: absolute;
        top: -10px;
        right: -10px;
        bottom: -10px;
        left: -10px;
    }
}

/* Smooth scroll on iOS */
@supports (-webkit-overflow-scrolling: touch) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* Better focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Remove outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Improve form inputs on mobile */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 8px;
        padding: 12px 16px;
        font-size: 16px;
        border: 2px solid var(--border-color);
        transition: border-color 0.3s ease;
    }

    input:focus,
    textarea:focus {
        border-color: var(--secondary-color);
        outline: none;
    }
}

/* Better performance on mobile with will-change */
@media (max-width: 768px) {
    .nav-links,
    .whatsapp-float,
    .scroll-to-top,
    .menu-toggle {
        will-change: transform;
    }
}
