/* Blog Short Description Preview */
.blog-preview-link p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-style: italic;
    letter-spacing: 0.1px;
}

/* Blog Tags Styling */
.blog-tags {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag-label {
    background: linear-gradient(90deg, var(--primary) 60%, var(--primary-dark) 100%);
    color: var(--bg-dark);
    border-radius: 999px;
    padding: 0.35em 1.1em;
    font-size: 1.05rem;
    font-weight: 600;
    margin-right: 0.5em;
    margin-bottom: 0.4em;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,255,204,0.10);
    letter-spacing: 0.3px;
    transition: background 0.2s, color 0.2s;
}

/* Blog Search Form Styling */
.blog-search-form {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,255,204,0.06);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.blog-search-form .input-field {
    background: #181818;
    color: var(--text-light);
    border: 1px solid rgba(0,255,204,0.15);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 1rem;
}
.blog-search-form .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Blog Form (Add/Edit) Styling */
.blog-form label {
    color: var(--primary);
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 0.2rem;
    display: block;
    letter-spacing: 0.5px;
}
.blog-form .input-field {
    width: 100%;
    padding: 0.7rem 1rem;
    margin: 0.5rem 0 1rem 0;
    border-radius: 8px;
    border: 1px solid rgba(0,255,204,0.15);
    background: #181818;
    color: var(--text-light);
    font-size: 1rem;
    transition: border 0.2s;
}
.blog-form .input-field:focus {
    border: 1.5px solid var(--primary);
    outline: none;
}
.blog-form .btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 0.5rem;
}
.blog-form .btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}
/* Edit Button Style */
.edit-btn {
    background: linear-gradient(90deg, var(--primary) 60%, var(--primary-dark) 100%);
    color: #0a0a0a;
    border: none;
    padding: 0.4rem 1.7rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,255,204,0.08);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.edit-btn:hover {
    background: linear-gradient(90deg, var(--primary-dark) 60%, var(--primary) 100%);
    color: #181818;
    transform: translateY(-2px) scale(1.04);
}
/* Add Admin Button (Blog Page) */
.add-admin-btn {
    background: linear-gradient(90deg, var(--primary) 60%, var(--primary-dark) 100%) !important;
    color: #0a0a0a !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 2px 8px rgba(0,255,204,0.10);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.add-admin-btn:hover {
    background: linear-gradient(90deg, var(--primary-dark) 60%, var(--primary) 100%) !important;
    color: #181818 !important;
    transform: translateY(-2px) scale(1.04);
}
/* Add Admin Modal Styles */
.add-admin-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.add-admin-modal .card {
    max-width: 400px;
    margin: auto;
    padding: 2rem 2rem 1.5rem 2rem;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,255,204,0.10), 0 1.5px 8px rgba(0,0,0,0.10);
    background: rgba(26,26,26,0.98);
    border: 1.5px solid rgba(0,255,204,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
}
.add-admin-modal .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.add-admin-modal .close-btn:hover {
    color: #fff;
}
.add-admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
}
.add-admin-form .input-field {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0,255,204,0.15);
    background: #181818;
    color: var(--text-light);
    font-size: 1rem;
    transition: border 0.2s;
}
.add-admin-form .input-field:focus {
    border: 1.5px solid var(--primary);
    outline: none;
}
.add-admin-form .btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 0.5rem;
}
.add-admin-form .btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}
/* Delete Button Style */
.delete-btn {
    background: linear-gradient(90deg, #e74c3c 60%, #c0392b 100%);
    color: #fff;
    border: none;
    padding: 0.7rem 2.2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(231,76,60,0.08);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.delete-btn:hover {
    background: linear-gradient(90deg, #c0392b 60%, #e74c3c 100%);
    box-shadow: 0 4px 16px rgba(231,76,60,0.18);
    transform: translateY(-2px) scale(1.04);
}
.login-btn {
    background: linear-gradient(90deg, #00ccaa 60%, #00ffcc 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,255,204,0.10);
    padding: 0.7rem 2.2rem;
    margin-top: 0.5rem;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.login-btn:hover {
    background: linear-gradient(90deg, #00ffcc 60%, #00ccaa 100%);
    color: #181818;
}
/* Login Page Styles */
.login-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,255,204,0.10), 0 1.5px 8px rgba(0,0,0,0.10);
    background: rgba(26,26,26,0.98);
    border: 1.5px solid rgba(0,255,204,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}
.login-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-align: center;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.login-form label {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.2rem;
    display: block;
    letter-spacing: 0.5px;
}
.login-form .input-field {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 0.2rem;
    border-radius: 8px;
    border: 1px solid rgba(0,255,204,0.15);
    background: #181818;
    color: var(--text-light);
    font-size: 1rem;
    transition: border 0.2s;
}
.login-form .input-field:focus {
    border: 1.5px solid var(--primary);
    outline: none;
}
.login-btn {
    width: 100%;
    margin-top: 0.7rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.login-error {
    color: #e74c3c;
    background: rgba(231,76,60,0.08);
    border-radius: 6px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}
/* Admin Auth Link Styling */
.admin-auth-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.7rem 2.2rem;
    background: linear-gradient(90deg, #00ccaa 60%, #00ffcc 100%);
    color: #0a0a0a;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,255,204,0.08);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.admin-auth-link:hover {
    background: linear-gradient(90deg, #00ffcc 60%, #00ccaa 100%);
    color: #181818;
    transform: translateY(-2px) scale(1.04);
/* Delete Button Style */
.login-btn {
    background: linear-gradient(90deg, #00ccaa 60%, #00ffcc 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,255,204,0.10);
    padding: 0.7rem 2.2rem;
    margin-top: 0.5rem;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.login-btn:hover {
    background: linear-gradient(90deg, #00ffcc 60%, #00ccaa 100%);
    color: #181818;
    transform: translateY(-2px) scale(1.04);
}
    transform: translateY(-2px) scale(1.04);
}
/* Blog Preview Link Styles */
.blog-preview-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s, transform 0.3s, background 0.2s;
}
.blog-preview-link:hover {
    background: rgba(0,255,204,0.05);
    box-shadow: 0 8px 30px rgba(0,255,204,0.10);
    transform: translateY(-3px) scale(1.02);
}

/* Blog Post Content Readability */
.blog-post p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    word-break: break-word;
}
/* Blog Page Styles */
.blog-post {
    margin-bottom: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0,255,204,0.05);
    box-shadow: 0 4px 16px rgba(0,255,204,0.04);
    transition: box-shadow 0.3s, transform 0.3s;
}
.blog-post:hover {
    box-shadow: 0 8px 30px rgba(0,255,204,0.10);
    transform: translateY(-3px);
}
.blog-date {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.blog-form label {
    color: var(--primary);
    font-weight: 500;
    margin-top: 1rem;
}
.blog-form .input-field {
    width: 100%;
    padding: 0.7rem 1rem;
    margin: 0.5rem 0 1rem 0;
    border-radius: 8px;
    border: 1px solid rgba(0,255,204,0.15);
    background: #181818;
    color: var(--text-light);
    font-size: 1rem;
    transition: border 0.2s;
}
.blog-form .input-field:focus {
    border: 1.5px solid var(--primary);
    outline: none;
}
.blog-form .btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 0.5rem;
}
.blog-form .btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}
/* Modern Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #00ffcc;
    --primary-dark: #00ccaa;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-dim: #a0a0a0;
}

body {
    background: linear-gradient(135deg, var(--bg-dark), #1a1a1a);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
   
    padding-top: calc(4rem + 60px);
    animation: fadeIn 0.5s ease-out;
}

/* Enhanced Navigation */
nav {
    background: rgba(26, 26, 26, 0.95);
    padding: 1.2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-toggle {
    display: none;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: var(--primary);
    background: rgba(0, 255, 204, 0.1);
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
}
/* Hero section specific container (home page) */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

/* Headings */
h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary), #80ffea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 8s ease infinite;
}

h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 255, 204, 0.1);
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Projects Section */
.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Update project card hover state */
.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 255, 204, 0.1);
}

/* GitHub icon and link indicator */
.project-card .github-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.project-card:hover .github-link {
    opacity: 1;
}


.project-card::after {
    content: '→';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover::after {
    opacity: 0.7;
    transform: translateX(5px);
}

/* Skills Section */
.skill-item {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.skill-item:hover {
    background: rgba(0, 255, 204, 0.1);
    transform: translateX(10px);
}
/*About me section*/
.section {
    margin: 4rem 0;
    animation: fadeIn 0.5s ease-out;
}

.section-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Achievement Items Styling */
.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: rgba(0, 255, 204, 0.05);
    transform: translateX(10px);
}

.achievement-year {
    color: var(--primary);
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(0, 255, 204, 0.1);
}

/* Hobbies & Interests Cards */
.hobby-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 255, 204, 0.1);
}

.hobby-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.hobby-card ul {
    list-style: none;
    padding: 0;
}

.hobby-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.hobby-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Achievement Grid */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.achievement-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 255, 204, 0.1);
}

.achievement-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
/* Contact Section */
.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

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

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
    color: var(--bg-dark);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

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

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Mobile Navigation and Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 2rem;
    }

    .hero{
        margin-top: 16rem;
    }
    .hero-content{
        justify-content: normal;
    }

    /* Nav Toggle Button */
    .nav-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--bg-card);
        border: none;
        border-radius: 8px;
        padding: 0.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .nav-toggle:hover {
        background: rgba(0, 255, 204, 0.1);
    }

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-light);
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    .nav-toggle {
        opacity: 1;
        visibility: visible;
    }
    /* Side Navigation */
    nav {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        background: var(--bg-dark);
        padding: 4rem 1rem 1rem;
        transition: all 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        box-shadow: none;
    }

    nav.open {
        left: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .container.nav-open {
        margin-left: 250px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 2rem;
    }

    nav a {
        display: block;
        padding: 1rem;
        text-align: left;
        width: 100%;
        border-radius: 8px;
    }

    nav a:hover {
        background: rgba(0, 255, 204, 0.1);
        transform: translateX(5px);
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.open {
        display: block;
        opacity: 1;
    }

    /* Hamburger Animation */
    .nav-toggle.open span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:last-child {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Typography Adjustments */
    h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
        position: relative;
        z-index: 1;
    }

    /* Grid Adjustments */
    .grid {
        grid-template-columns: 1fr;
    }

    /* Achievement Items Adjustments */
    .achievement-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .achievement-year {
        min-width: auto;
        width: 100%;
    }
    .social-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
    }

    .social-link {
        width: calc(50% - 0.8rem); /* Two buttons per row with gap */
        justify-content: center;
        padding: 0.8rem;
    }
}