:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --dark-color: #1e293b;
    --light-bg: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --accent-color: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --transition-smooth: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --card-bg: #ffffff;
    --body-bg: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --grid-color: rgba(29, 78, 216, 0.04);
    --purple-color: #7c3aed;
    --glass-border: rgba(255, 255, 255, 0.2);
}

.bg-purple {
    background-color: var(--purple-color) !important;
}

.opacity-10 {
    opacity: 0.1 !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #c084fc;
    --dark-color: #f1f5f9;
    --light-bg: #020617;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --card-bg: #0f172a;
    --body-bg: #020617;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    --grid-color: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light {
    background-color: var(--body-bg) !important;
}

[data-theme="dark"] .card {
    background-color: var(--card-bg) !important;
    border-color: var(--grid-color);
}

/* Scroll Progress */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10001;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    box-shadow: 0 0 10px rgba(29, 78, 216, 0.5);
}

/* New Loader */
.loader-content {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid var(--grid-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin: 0 auto;
}

.loader-text {
    font-size: 1.2rem;
    letter-spacing: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Drag & Drop Reordering Styles */
.drag-handle {
    cursor: grab !important;
    transition: var(--transition-smooth);
    opacity: 0.3 !important;
}

.drag-handle:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

.drag-handle:active {
    cursor: grabbing !important;
}

.sortable-ghost {
    opacity: 0.4;
    transform: scale(0.95);
    filter: grayscale(0.5);
}

.sortable-drag {
    z-index: 1000 !important;
}

/* Animations for drag reordering */
.project-item,
.cert-item {
    transition: transform 0.2s ease;
}

.admin-mode .project-item,
.admin-mode .cert-item {
    cursor: grab;
}

.admin-mode .project-item:active,
.admin-mode .cert-item:active {
    cursor: grabbing;
}

#project-container.filter-active .project-item {
    cursor: default !important;
}

#project-container.filter-active .drag-handle {
    display: none !important;
}

/* Floating Socials */
.floating-socials {
    position: fixed;
    left: 40px;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 99;
}

.social-link {
    font-size: 1.1rem;
    color: var(--text-main);
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb, 37, 99, 235), 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb, 37, 99, 235), 0.3);
}

.social-line {
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    opacity: 0.5;
}

body {
    font-family: 'Outfit', 'Kanit', sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    transition: color 0.4s ease;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--body-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.6s;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-bg);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body.loading {
    overflow: hidden;
}

/* Decorative Blobs */
.glass-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.15;
}

.blob-1 {
    top: -100px;
    left: -100px;
    background: #6366f1;
    animation: float 20s infinite;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    background: #a855f7;
    animation: float 25s infinite reverse;
}

.blob-3 {
    top: 40%;
    left: 50%;
    background: #ec4899;
    animation: float 15s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Navigation */
.navbar {
    background-color: transparent;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    margin: 15px 20px;
    border-radius: 50px;
    background-color: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--grid-color);
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 120px 0;
    background: transparent;
    position: relative;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white !important;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

.dark-mode-toggle i {
    font-size: 1.4rem;
    transition: transform 0.5s ease;
}

.dark-mode-toggle:hover i {
    transform: rotate(20deg);
}

.profile-img-wrapper {
    position: relative;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d;
}

.profile-img-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    z-index: 0;
    animation: rotate 20s linear infinite;
    opacity: 0.5;
}

.profile-img {
    position: relative;
    z-index: 1;
    border: 8px solid var(--card-bg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 991.98px) {
    .profile-img {
        max-width: 300px;
        margin-bottom: 30px;
    }

    .hero-section {
        text-align: center;
        padding: 100px 0 60px 0;
    }

    .hero-btns {
        justify-content: center;
    }
}

/* Skill Groups V2 */
.skill-group-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--grid-color);
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.skill-group-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.skill-progress-wrap {
    width: 100%;
    height: 12px;
    background: var(--light-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--grid-color);
}

.skill-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.skill-badge {
    padding: 12px 24px;
    background: var(--card-bg);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--grid-color);
    transition: var(--transition-smooth);
}

.skill-badge:hover {
    background: var(--primary-color);
    color: white !important;
    transform: scale(1.05);
}

.skill-badge:hover i {
    color: white !important;
}

/* Mission/SOP Card */
.sop-content {
    background-color: var(--card-bg) !important;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    padding: 3rem !important;
}

.sop-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 15rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

/* Tech Marquee */
.tech-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 40px 0;
    background: var(--light-bg);
    border-top: 1px solid var(--grid-color);
    border-bottom: 1px solid var(--grid-color);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    margin-right: 50px;
    padding: 10px 25px;
    background: var(--card-bg);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--grid-color);
}

.tech-item i {
    font-size: 1.5rem;
    margin-right: 12px;
}

.tech-item span {
    font-weight: 600;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Profile Image (Removed Duplicate) */

/* Sections */
.section-padding {
    padding: 100px 0;
    transition: background-color 0.4s ease;
}

#education,
#about,
#skills,
#experience,
#certificates,
#news {
    background-color: var(--body-bg);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(37, 99, 235, 0.9), rgba(37, 99, 235, 0.9)),
        url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.stat-card h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.section-title {
    font-weight: 700;
    margin-bottom: 20px;
}

.title-line {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Timeline/Education */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Skills */
.skill-item {
    margin-bottom: 20px;
}

.progress {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.soft-skill-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--text-muted);
}

.soft-skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gpax-card {
    background: var(--card-bg);
    transition: var(--transition-smooth);
}

.bg-soft-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

[data-theme="dark"] .school-logo-img {
    background: rgba(255, 255, 255, 0.9);
}

/* Projects */
.project-card {
    border-radius: 15px;
    transition: var(--transition-smooth);
    background-color: var(--card-bg) !important;
}

.project-card .p-4 {
    background-color: var(--card-bg) !important;
    color: var(--text-main);
}

.filter-btns .btn {
    border-radius: 30px;
    padding: 8px 25px;
}

.filter-btns .btn.active {
    background-color: var(--primary-color);
    color: white;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.project-img-container {
    overflow: hidden;
    position: relative;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 20px;
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-view-project {
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-view-project:hover {
    background: white;
    color: var(--primary-color);
}

/* Education & GPAX */
.gpax-card {
    transition: var(--transition-smooth);
    border-radius: 24px !important;
}

.gpax-card:hover {
    transform: translateY(-10px);
}

.timeline-v2 {
    position: relative;
}

.dot-v2 {
    position: absolute;
    left: -7px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--body-bg);
}

.highlight-box {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--grid-color);
    transition: var(--transition-smooth);
    border-bottom: 4px solid var(--primary-color) !important;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.highlight-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.highlight-box:hover::after {
    opacity: 1;
}

.highlight-box:hover {
    transform: translateY(-15px) scale(1.05);
    background: var(--card-bg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.highlight-box i {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.highlight-box:hover i {
    transform: scale(1.3) rotate(15deg);
    color: var(--secondary-color) !important;
}

.cert-item {
    transition: var(--transition-smooth);
    background: var(--card-bg);
    border-color: var(--text-muted) !important;
}

.cert-item .bg-light {
    background-color: var(--light-bg) !important;
}

/* Testimonials */
.testimonial-carousel .carousel-item {
    min-height: 300px;
}

.testimonial-content img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.italic {
    font-style: italic;
}

/* Contact Form Glassmorphism */
.contact-form-box {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 30px !important;
    padding: 3rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .contact-form-box {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.contact-form-box .form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.7rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.contact-form-box .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 1rem 1.2rem;
    border-radius: 15px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-form-box .form-control:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2) !important;
    outline: none;
    transform: translateY(-2px);
}

.btn-send {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 1.2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.4s ease !important;
}

.btn-send:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.6) !important;
    filter: brightness(1.1);
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    z-index: 99;
    display: none;
    opacity: 0;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-5px);
}

.btn-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #475569 !important;
}

.btn-send i.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Footer & Contact Section */
#contact.footer-section {
    background: #080c14 !important;
    /* Deep cosmic dark */
    color: #ffffff !important;
    position: relative;
    padding-top: 100px;
    padding-bottom: 50px;
    overflow: hidden;
}

#contact.footer-section .container {
    position: relative;
    z-index: 10;
}

.vibrant-glow {
    pointer-events: none !important;
}

[data-theme="dark"] #contact.footer-section {
    background: #020408 !important;
}

/* Background Glow Effect */
#contact.footer-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

#contact.footer-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
    bottom: -150px;
    left: -150px;
    pointer-events: none;
}

#contact.footer-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff 30%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.contact-item-text small {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item-text span {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
}

.footer-bottom {
    margin-top: 100px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    color: var(--dark-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 60px;
        text-align: center;
    }

    .profile-img {
        width: 280px;
        height: 280px;
    }
}

/* --- Admin & Management UI (Global) --- */
.admin-only {
    transition: var(--transition-smooth);
}

#logoutBtn:hover {
    color: #ef4444 !important;
}

/* Premium Modals */
.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--grid-color);
    border-radius: 25px !important;
}

[data-theme="dark"] .modal-content {
    background: rgba(15, 23, 42, 0.85);
}

.modal-header {
    border-bottom: 1px solid var(--grid-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.form-control,
.form-select {
    padding: 0.8rem 1.2rem;
    border-radius: 12px !important;
    background-color: var(--light-bg);
    border: 1px solid var(--grid-color);
    color: var(--text-main);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    color: var(--text-main);
}

/* News Article Cards (Simplified & Premium) */
#news-container .card {
    border: 1px solid var(--grid-color);
    background: var(--card-bg);
    transition: var(--transition-smooth);
    border-radius: 20px;
}

#news-container .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

/* Project Card Overlays & Interactive Effects */
.project-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.project-img-container img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 78, 216, 0.85);
    /* primary with opacity */
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 30px;
    text-align: center;
    color: white;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-img-container img {
    transform: scale(1.1) rotate(1deg);
}

.btn-view-project {
    padding: 10px 25px;
    background: white;
    color: var(--primary-color) !important;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .btn-view-project {
    transform: translateY(0);
}

/* Delete Buttons Overlay for Admin */
.delete-btn-top {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
}

/* Toast Notification Styles */
.toast-custom {
    animation: toastFadeUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes toastFadeUp {
    from {
        transform: translate(-50%, 50px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.school-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: white;
    padding: 2px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Admin Skill Card Enhancements */
.admin-skill-card {
    transition: all 0.3s ease;
}

.admin-skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--primary-color) !important;
}

.admin-skill-card .btn-link {
    transition: all 0.2s ease;
}

.admin-skill-card .btn-link:hover {
    transform: scale(1.1);
    color: #dc2626 !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Scrollbar for admin lists if needed */
.admin-skills-container div[id*="-list"] {
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
    overflow-x: hidden;
}

.admin-skills-container div[id*="-list"]::-webkit-scrollbar {
    width: 4px;
}

.admin-skills-container div[id*="-list"]::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Responsive Adjustments (Premium Polish) */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .contact-form-box {
        padding: 2rem 1.5rem !important;
        border-radius: 20px !important;
    }

    .gpax-card {
        margin-bottom: 30px;
    }

    .sop-content {
        padding: 2rem !important;
    }

    .sop-content::before {
        font-size: 8rem;
        top: -10px;
    }

    .tech-marquee {
        padding: 20px 0;
    }

    .tech-item {
        margin-right: 20px;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

/* Tablet / iPad Adjustments */
@media (min-width: 768px) and (max-width: 1024.98px) {
    .profile-img {
        max-width: 280px;
    }

    .display-3 {
        font-size: 3.5rem;
    }

    .section-padding {
        padding: 80px 0;
    }
}

/* Navbar Responsive Mobile Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        margin-top: 15px;
        padding: 20px;
        border-radius: 20px;
        border: 1px solid var(--grid-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-link {
        margin: 10px 0;
        font-size: 1.1rem;
    }

    .navbar.scrolled {
        margin: 10px;
    }
}

/* Glassmorphism Refinement */
.card,
.modal-content,
.navbar.scrolled,
.contact-form-box {
    border: 1px solid var(--glass-border) !important;
}

/* Glow Backgrounds for Sections */
.section-padding {
    position: relative;
    overflow: hidden;
}

.section-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    opacity: 0.03;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.glow-top-right {
    top: -200px;
    right: -200px;
}

.glow-bottom-left {
    bottom: -200px;
    left: -200px;
}

/* Interactive Hover for Cards */
.card {
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3) !important;
    border-color: var(--primary-color) !important;
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Button Premium Feel */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: scale(0.95);
}