/* Custom premium portfolio main stylesheet */

:root {
    --bg-page: #faf5ee;
    --bg-card: #ffffff;
    --bg-navbar: rgba(250, 245, 238, 0.92);
    --bg-section-alt: #f3ead9;
    --color-primary: #d97b4a;
    --color-secondary: #4a8c7c;
    --color-accent: #e0a458;
    --color-text-main: #362f2b;
    --color-text-muted: #7a716a;
    --color-border: #e8ddca;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --gradient-primary: linear-gradient(135deg, #d97b4a 0%, #e0a458 100%);
    --card-shadow: 0 4px 16px rgba(90, 70, 40, 0.08);
    --card-shadow-hover: 0 10px 28px rgba(90, 70, 40, 0.14);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
}

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

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

.gradient-title,
.text-gradient {
    color: var(--color-primary);
    font-weight: 700;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.bg-glass {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--card-shadow);
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bg-glass:hover {
    transform: translateY(-4px);
    border-color: #e6c9a3;
    box-shadow: var(--card-shadow-hover);
}

/* Bootstrap utility overrides so light theme reads correctly */
.text-white {
    color: var(--color-text-main) !important;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

.bg-dark-deep {
    background-color: var(--bg-section-alt) !important;
}

.border-secondary-subtle {
    border-color: var(--color-border) !important;
}

.badge.bg-primary-subtle {
    background-color: #f3dfc9 !important;
}

.badge.bg-primary-subtle.text-primary {
    color: var(--color-primary) !important;
}

.badge.bg-success-subtle {
    background-color: #e1efe6 !important;
}

.badge.bg-success-subtle.text-success {
    color: var(--color-secondary) !important;
}

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

.brand-badge {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    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.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-primary);
    text-shadow: none;
}

/* 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.25s ease, box-shadow 0.25s ease;
}

.btn-download-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 123, 74, 0.3);
    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.25s ease;
}

.btn-primary-custom:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 123, 74, 0.28);
    color: #fff;
}

.btn-secondary-custom {
    background: transparent;
    border: 1.5px solid var(--color-border);
    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.25s ease;
}

.btn-secondary-custom:hover {
    border-color: var(--color-primary);
    background: #fbf0e2;
    color: var(--color-primary);
    transform: translateY(-2px);
}

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

.hero-glow-1,
.hero-glow-2 {
    display: none;
}

.hero-greeting-badge {
    background: #fff;
    border: 1px solid var(--color-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.3rem, 5.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

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

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

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

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

.hero-main-img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 10px 30px rgba(90, 70, 40, 0.15);
    z-index: 2;
}

.hero-floating-icon {
    position: absolute;
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 12px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--card-shadow);
    z-index: 3;
    animation: bounceUpDown 4s ease-in-out infinite;
}

.icon-node { top: 8%; right: 8%; animation-delay: 0s; }
.icon-react { bottom: 18%; left: -2%; animation-delay: 1s; }
.icon-flutter { bottom: 8%; right: 3%; animation-delay: 2s; }

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

/* Coding Card Box Overlay - kept dark like a real code editor for authenticity */
.code-box-float {
    position: absolute;
    bottom: -30px;
    right: -10px;
    width: 300px;
    background: #2b2621;
    border: 1px solid #453d34;
    border-radius: 12px;
    padding: 18px;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    box-shadow: 0 16px 32px rgba(90, 70, 40, 0.2);
    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.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 3px solid var(--color-primary);
    padding-left: 10px;
}

.skill-tag-item {
    background: var(--bg-section-alt);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
}

.skill-tag-item:hover {
    background: #fbf0e2;
    border-color: var(--color-primary);
    transform: scale(1.02);
}

.skill-tag-item i {
    font-size: 1.4rem;
    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: 18px;
    border-top-right-radius: 18px;
}

.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.06);
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(54, 47, 43, 0.75);
    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.25s ease;
}

.project-btn-circle:hover {
    transform: scale(1.08);
    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: #f3dfc9;
    color: #a5602f;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid #e6c9a3;
}

/* Services Boxes Section */
.service-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--bg-section-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}

.service-icon-box i {
    font-size: 1.5rem;
    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: 18px;
    border-top-right-radius: 18px;
}

.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.04);
}

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

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

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

.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: 24px;
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--bg-section-alt);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-secondary);
}

.form-control-custom {
    background: #fdfaf5;
    border: 1px solid var(--color-border);
    color: var(--color-text-main) !important;
    padding: 14px 18px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.form-control-custom:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(217, 123, 74, 0.12);
    outline: none;
}

.form-control-custom::placeholder {
    color: #b0a89c;
}

/* 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 6px 16px rgba(217, 123, 74, 0.3);
    transition: all 0.25s ease;
}

#scrollToTopBtn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(217, 123, 74, 0.4);
}

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

.filter-btn {
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.25s ease;
}

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

#galleryContainer .gallery-grid-item {
    position: relative;
    border-radius: 16px;
    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.06);
}

/* Footer elements and alignment details */
.main-footer {
    background: var(--bg-section-alt);
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

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

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

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

.footer-policy-links a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    transition: color 0.25s 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: 700;
    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: 7rem;
    font-weight: 800;
    color: var(--color-primary);
    text-shadow: none;
}

/* Scroll Reveal Animation (used by main.js Intersection Observer) */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* 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: 1px solid var(--color-border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

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