/* Network Portfolio - Professional Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme (Default) */
    --primary-bg: #0a0e1a;
    --secondary-bg: #1a1f3a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #00d4ff;
    --accent-glow: rgba(0, 212, 255, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #b8c2cc;
    --text-muted: #6b7280;
    --success-color: #00ff64;
    --warning-color: #ffd700;
    --danger-color: #ff4757;
    --network-opacity: 0.7;
    --network-node-color: 0, 212, 255;
    --network-line-color: 0, 212, 255;
    --network-signal-color: 0, 255, 100;
    --navbar-bg: rgba(10, 14, 26, 0.9);
    --nav-link-color: #ffffff;
    --nav-link-hover: #00d4ff;
}

/* Light Theme */
:root.light-theme {
    --primary-bg: #ffffff;
    --secondary-bg: #f8fafc;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.15);
    --accent-color: #0066cc;
    --accent-glow: rgba(0, 102, 204, 0.2);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;
    --success-color: #00a854;
    --warning-color: #fa8c16;
    --danger-color: #f5222d;
    --network-opacity: 0.8;
    --network-node-color: 0, 102, 204;
    --network-line-color: 0, 102, 204;
    --network-signal-color: 0, 255, 100;
    --navbar-bg: rgba(10, 14, 26, 0.9);
    --nav-link-color: #ffffff;
    --nav-link-hover: #00d4ff;
}

/* Light Theme Specific Overrides */
:root.light-theme .nav-link {
    color: #ffffff !important;
}

:root.light-theme .nav-link:hover,
:root.light-theme .nav-link.active {
    color: #00d4ff !important;
}

:root.light-theme .theme-toggle {
    color: #ffffff !important;
}

:root.light-theme .nav-brand {
    color: #ffffff !important;
}

:root.light-theme .section-description {
    color: #000000 !important;
}

body {
    background: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Network Background Animation */
.network-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: var(--network-opacity);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

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

.loading-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 100, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite alternate;
}

.loading-content {
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.loading-logo {
    margin-bottom: 2rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    animation: welcomeGlow 3s ease-in-out infinite alternate;
    display: inline-block;
    min-height: 2.5rem;
}

.cursor {
    display: inline-block;
    font-size: 1.8rem;
    color: #00d4ff;
    animation: blink 1s infinite;
    margin-left: 2px;
}

.loading-progress {
    width: 300px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff64);
    transform: translateX(-100%);
}

.progress-bar.start-loading::before {
    animation: loading 2.5s ease forwards;
}

.loading-progress.show {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #b8c2cc;
    animation: fadeInOut 2s infinite;
    margin-bottom: 0.5rem;
}

.initializing-text {
    font-size: 0.85rem;
    color: #00d4ff;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 0.5rem;
}

.dots {
    display: inline-block;
    animation: blinkingDots 1.5s infinite;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.main-content.show {
    opacity: 1;
}

/* Scroll Down Arrow */
.scroll-down-arrow {
    position: relative;
    margin-top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    color: var(--accent-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-down-arrow:hover {
    color: var(--text-primary);
    transform: translateX(-50%) scale(1.2);
}


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    height: 95px;           /* fixed height */
    padding: 0;             /* no extra padding */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;     /* vertical centering */
    justify-content: space-between;
    height: 100%;            /* match navbar height */
}


.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;            /* match navbar height */
}

.nav-brand i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.nav-logo {
    height: 100%;          /* take full navbar height */
    max-height: 95px;      /* never exceed navbar height */
    width: auto;           /* scale width automatically */
    object-fit: contain;   /* maintain proportions */
}

.nav-brand-text {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1.3rem;               /* keep it big */
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-block;         /* ensures hover area wraps text */
}

.nav-brand-text strong {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.nav-brand-text:hover {
    color: var(--accent-color) !important;
    text-shadow: 
        0 0 12px var(--accent-glow),
        0 0 20px var(--accent-glow),
        0 0 30px var(--accent-glow);
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--nav-link-color) !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--nav-link-hover) !important;
    background: var(--glass-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--nav-link-color) !important;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-left: 1rem;
    font-size: 1rem;
}

.theme-toggle:hover {
    background: var(--nav-link-hover);
    color: var(--primary-bg);
    transform: scale(1.1);
    box-shadow: 0 5px 15px var(--accent-glow);
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Portfolio Content */
.portfolio-content {
    padding-top: 80px;
}

/* Glass Effect Utility */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 16px;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section.alt {
    background: rgba(26, 31, 58, 0.3);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* #about .section-description {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2.5rem; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;

    max-width: 900px;    
    margin: 2rem auto;   

    
    line-height: 1.6;
    font-size: 1.05rem;
}*/

/*
@media (max-width: 1024px) {
    #about .section-description {
        max-width: 90%;   
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    #about .section-description {
        max-width: 95%;   
        padding: 1.5rem;
        font-size: 1rem;  
    }
}*/

/* Section heading styling */
#about h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
    position: relative;
}

#about h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Section description box */
#about .section-description {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6),
        rgba(20, 20, 40, 0.6)
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2.5rem;
    border-left: 5px solid var(--accent-color); /* accent bar */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;

    max-width: 900px;    /* wider for readability */
    margin: 2rem auto;   /* center horizontally */
    line-height: 1.6;
    font-size: 1.05rem;
}

/* ✨ Optional glowing border animation */
#about .section-description {
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: glow-border 3s infinite alternate;
}

@keyframes glow-border {
    from { box-shadow: 0 0 10px var(--accent-color); }
    to   { box-shadow: 0 0 25px var(--accent-glow); }
}

/* 📱 Responsive */
@media (max-width: 1024px) {
    #about .section-description {
        max-width: 90%;
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    #about .section-description {
        max-width: 95%;
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 15vh;
    padding-bottom: 0;
}

.hero + .section {
    padding-top: 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-content .description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #0099cc);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

/* Skills Section */
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percentage {
    color: var(--accent-color);
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
    border-radius: 4px;
    transition: width 1s ease;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 3rem;
}

.timeline-icon {
    position: absolute;
    left: 1.25rem;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(17, 153, 142, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #11998e;
    transition: all 0.3s ease;
}

.experience-item:hover .timeline-icon {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    transform: scale(1.1);
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #11998e, #38ef7d, #667eea, #764ba2);
    border-radius: 16px 0 0 16px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(17, 153, 142, 0.4);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.blog-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    position: relative;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
}

.blog-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #11998e, #38ef7d, #667eea, #764ba2);
    border-radius: 16px 0 0 16px;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(17, 153, 142, 0.4);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

@keyframes backgroundPulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.2) rotate(360deg);
        opacity: 0.4;
    }
}

@keyframes welcomeGlow {
    0% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 255, 100, 0.2);
        transform: scale(1.02);
    }
    100% {
        text-shadow: 0 0 25px rgba(0, 212, 255, 0.4), 0 0 35px rgba(255, 215, 0, 0.1);
        transform: scale(1);
    }
}

@keyframes blinkingDots {
    0%, 20% {
        opacity: 1;
    }
    25%, 45% {
        opacity: 0.3;
    }
    50%, 70% {
        opacity: 1;
    }
    75%, 95% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Blog Loading Animation */
.blog-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 14, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8888;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease;
}

.blog-loading-overlay.fade-out {
    opacity: 0;
}

.blog-loading-content {
    text-align: center;
    color: #ffffff;
}

.blog-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.blog-loading-text {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 500;
    animation: heartbeat 1.2s ease-in-out infinite;
}

.blog-loading-dots {
    color: #00d4ff;
    font-size: 1.5rem;
    display: inline-block;
}

.blog-loading-dots span {
    animation: blinkDots 1.4s infinite;
    display: inline-block;
}

.blog-loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.blog-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    14% {
        transform: scale(1.1);
        opacity: 0.9;
    }
    28% {
        transform: scale(1);
        opacity: 1;
    }
    42% {
        transform: scale(1.1);
        opacity: 0.9;
    }
    70% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes blinkDots {
    0%, 80%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Modern Blog Layout */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.blog-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.search-container {
    max-width: 500px;
    width: 100%;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.search-box i {
    color: var(--text-muted);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    width: 100%;
    padding: 0;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.blog-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover,
.category-btn.active {
    background: var(--accent-color);
    color: var(--primary-bg);
    border-color: var(--accent-color);
}

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

.modern-blog-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
}

.modern-blog-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #11998e, #38ef7d, #667eea, #764ba2);
    border-radius: 16px 0 0 16px;
}

.modern-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(17, 153, 142, 0.4);
    border-color: var(--accent-color);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: var(--primary-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

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

.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--accent-color);
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-more-btn {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
}

/* Contact Icons Styling */
.contact-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-icon-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--accent-glow);
    color: var(--primary-bg);
    background: var(--accent-color);
}

/* Education Showcase Section */
.education-showcase {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.education-card-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
}

.education-card {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
}

.education-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #11998e, #38ef7d, #667eea, #764ba2);
    border-radius: 20px 0 0 20px;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(17, 153, 142, 0.4);
}


.education-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.education-icon-container {
    flex-shrink: 0;
}

.education-icon-gradient {
    width: 70px;
    height: 70px;
    background: rgba(17, 153, 142, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #11998e;
    transition: all 0.3s ease;
}

.education-card:hover .education-icon-gradient {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    transform: scale(1.1);
}

.education-details {
    flex: 1;
}

.education-degree {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.education-university {
    font-size: 1rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.education-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.education-years {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.education-cgpa {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.3);
}

/* Gradient Border Card Styling for Multiple Sections */
.gradient-border-card {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
}

.gradient-border-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #11998e, #38ef7d, #667eea, #764ba2);
    border-radius: 20px 0 0 20px;
}

.gradient-border-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(17, 153, 142, 0.4);
}

/* Apply to Experience Timeline */
.experience-item {
    position: relative;
    margin-bottom: 2rem;
}


/* Apply to Certification Cards - REMOVED - Using updated definition below */

/* Apply to Achievement Cards */
.achievement-card {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
}

.achievement-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #11998e, #38ef7d, #667eea, #764ba2);
    border-radius: 20px 0 0 20px;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(17, 153, 142, 0.4);
}

/* Responsive Design for Education */
@media (max-width: 768px) {
    .education-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .education-degree {
        font-size: 1.6rem;
    }
    
    .education-university {
        font-size: 1.1rem;
    }
    
    .education-badges {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .education-card {
        padding: 1.8rem 1.3rem;
    }
}


/* Achievements Section Styling */
.achievements-section {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.achievements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300d4ff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>')
    opacity: 0.3;
    pointer-events: none;
}

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



.achievement-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #11998e;
    margin: 0 auto 1.5rem;
    background: rgba(17, 153, 142, 0.1);
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    transform: scale(1.1);
}

.achievement-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
}

.achievement-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}


/* Card icon container styling */
.card-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

/* Mobile responsive theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        margin-left: 0.5rem;
        padding: 0.4rem;
        font-size: 0.9rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .contact-icons {
        gap: 1.5rem !important;
    }
    
    .contact-icon-link {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-filters {
        gap: 1rem;
    }
    
    .search-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .search-box {
        padding: 0.6rem 1.2rem;
    }
    
    .blog-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 14, 26, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

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

    .timeline::before {
        left: 1rem;
    }

    .timeline-item {
        padding-left: 3rem;
    }

    .timeline-icon {
        left: 0.25rem;
    }

    .network-background {
        opacity: 0.1;
    }
}

/* Skills Showcase Section */
.skills-showcase {
    background: transparent;
    position: relative;
}

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

.skill-category-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
}

.skill-category-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #11998e, #38ef7d, #667eea, #764ba2);
    border-radius: 20px 0 0 20px;
}

.skill-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(17, 153, 142, 0.4);
}

.skill-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 153, 142, 0.1);
    border-radius: 16px;
    font-size: 2.5rem;
    color: #11998e;
    transition: all 0.3s ease;
}

.skill-category-card:hover .skill-card-icon {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    transform: scale(1.1);
}

.skill-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.skill-card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    margin-top: 1rem;
}

/* Additional responsive styles for skills */
@media (max-width: 768px) {
    .skills-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .skill-category-card {
        padding: 1.5rem 1.2rem;
    }
    
    .skill-card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .skill-card-title {
        font-size: 1.3rem;
    }
    
    .protocol-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certification-card {
        padding: 1.5rem;
    }
    
    .cert-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .cert-title {
        font-size: 1.1rem;
    }
}

/* Certification Cards with Glassmorphism */
.certification-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
}

.certification-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #11998e, #38ef7d, #667eea, #764ba2);
    border-radius: 20px 0 0 20px;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(17, 153, 142, 0.4);
}

.cert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 2rem;
    color: #11998e;
    background: rgba(17, 153, 142, 0.1);
    transition: all 0.3s ease;
}

.certification-card:hover .cert-icon {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    transform: scale(1.1);
}

.cert-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.cert-issuer {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

/* Blog Maintenance Page Styles */
.maintenance-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.network-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.network-nodes,
.network-connections {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.maintenance-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.maintenance-content {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
}

.maintenance-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #11998e, #38ef7d, #667eea, #764ba2);
    border-radius: 20px 0 0 20px;
}

.maintenance-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(17, 153, 142, 0.4);
}

.maintenance-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.maintenance-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #11998e, #38ef7d, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.maintenance-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.maintenance-submessage {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.maintenance-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border: 1px solid rgba(17, 153, 142, 0.3);
}

.feature-item i {
    color: #11998e;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(17, 153, 142, 0.3);
    color: white;
    text-decoration: none;
}

/* Responsive maintenance page */
@media (max-width: 768px) {
    .maintenance-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .maintenance-title {
        font-size: 2rem;
    }
    
    .maintenance-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        justify-content: center;
        width: 100%;
        max-width: 300px;
    }
}