/* Custom premium portfolio main stylesheet */

:root {
    --bg-dark-deep: #09090e;
    --bg-dark-card: rgba(20, 20, 35, 0.6);
    --bg-navbar: rgba(9, 9, 14, 0.75);
    --color-primary: #7000ff;
    --color-secondary: #00d2ff;
    --color-accent: #bf55ec;
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    --font-main: 'Inter', sans-serif;
    --gradient-primary: linear-gradient(135deg, #7000ff 0%, #0015ff 100%);
    --gradient-text: linear-gradient(90deg, #b080ff 0%, #00e5ff 100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.07);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Global Reset & Basic Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark-deep);
    color: var(--color-text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Scrollbar Tweaks */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-deep);
}
::-webkit-scrollbar-thumb {
    background: #2a2a40;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Common Components & Helper Classes */
.navbar-spacer {
    height: 80px;
}

.gradient-title {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-glass {
    background: var(--bg-dark-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-glass:hover {
    transform: translateY(-5px);
    border-color: rgba(112, 0, 255, 0.3);
    box-shadow: 0 12px 40px rgba(112, 0, 255, 0.15);
}

/* Header & Navbar Section */
.custom-navbar {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    padding: 15px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.brand-badge {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    margin-right: 8px;
    font-size: 0.95rem;
}

.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text-main);
}

.navbar-nav .nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-text-main);
    text-shadow: 0 0 10px rgba(112, 0, 255, 0.6);
}

/* CV Download Button */
.btn-download-cv {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-download-cv:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
    color: #fff;
}

/* Buttons Styling */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(112, 0, 255, 0.3);
    color: #fff;
}

.btn-secondary-custom {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text-main);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    border-color: var(--color-primary);
    background: rgba(112, 0, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 120px 0;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.25) 0%, rgba(0,0,0,0) 70%);
    top: 10%;
    left: 10%;
    z-index: -1;
}

.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    bottom: 10%;
    right: 5%;
    z-index: -1;
}

.hero-greeting-badge {
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--color-text-muted);
    font-size: 1.15rem;
    max-width: 550px;
    margin-bottom: 35px;
}

.hero-social-links a {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    margin-right: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.hero-social-links a:hover {
    color: var(--color-secondary);
    transform: translateY(-3px);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-img {
    width: 100%;
    max-width: 420px;
    border-radius: 50%;
    border: 3px solid rgba(112, 0, 255, 0.3);
    box-shadow: 0 0 50px rgba(112, 0, 255, 0.2);
    z-index: 2;
}

.hero-floating-icon {
    position: absolute;
    background: rgba(18, 18, 30, 0.8);
    backdrop-filter: blur(8px);
    border: var(--glass-border);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--glass-shadow);
    z-index: 3;
    animation: bounceUpDown 4s ease-in-out infinite;
}

.icon-node { top: 10%; right: 10%; animation-delay: 0s; }
.icon-react { bottom: 20%; left: 0%; animation-delay: 1s; }
.icon-flutter { bottom: 10%; right: 5%; animation-delay: 2s; }

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

/* Coding Card Box Overlay */
.code-box-float {
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: 320px;
    background: #0f0f1c;
    border: var(--glass-border);
    border-radius: 12px;
    padding: 18px;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 4;
}

.code-box-header {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

/* Skills Grid Styles */
.skill-category-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 3px solid var(--color-primary);
    padding-left: 10px;
}

.skill-tag-item {
    background: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.skill-tag-item:hover {
    background: rgba(112, 0, 255, 0.08);
    border-color: var(--color-primary);
    transform: scale(1.03);
}

.skill-tag-item i {
    font-size: 1.5rem;
    color: var(--color-secondary);
}

/* Projects Grid Page Styles */
.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-img-container {
    position: relative;
    overflow: hidden;
    height: 220px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(9, 9, 14, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-btn-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-btn-circle:hover {
    transform: scale(1.1);
    color: #fff;
}

.project-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 15px;
}

.tech-tag {
    background: rgba(112, 0, 255, 0.15);
    color: #b080ff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid rgba(112, 0, 255, 0.2);
}

/* Services Boxes Section */
.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(112, 0, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(112, 0, 255, 0.2);
}

.service-icon-box i {
    font-size: 1.6rem;
    color: var(--color-secondary);
}

/* Blog Styles */
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-img-container {
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

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

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

/* Testimonials Carousel Styling */
.testimonial-card {
    padding: 35px;
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--color-text-muted);
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

/* Contact Area Section Layout */
.contact-sidebar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-secondary);
}

.form-control-custom {
    background: rgba(255, 255, 255, 0.02);
    border: var(--glass-border);
    color: var(--color-text-main) !important;
    padding: 14px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(112, 0, 255, 0.2);
    outline: none;
}

/* Scroll To Top Button Styles */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 1rem;
    border: none;
    outline: none;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    padding: 14px 16px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.4);
    transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(112, 0, 255, 0.6);
}

/* Gallery Layout Container elements */
.gallery-filter-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
    color: var(--color-text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.gallery-grid-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    margin-bottom: 24px;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-grid-item:hover img {
    transform: scale(1.08);
}

/* Footer elements and alignment details */
.main-footer {
    background: #06060a;
    padding-top: 40px;
}

.footer-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer-social-links a {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-left: 12px;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--color-secondary);
}

.footer-policy-links a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-policy-links a:hover {
    color: var(--color-primary);
}

/* About Page Styles */
.stat-box-inner {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

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

/* Custom 404 Error page layouts styling */
.error-layout-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.error-code-glow {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #7000ff 0%, #0015ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 40px rgba(112, 0, 255, 0.3);
}

/* Details Page styling definitions */
.details-meta-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-bottom: var(--glass-border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.details-content img {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 25px;
}