/* ============================================
   Personal Branding Website - Main Stylesheet
   Author: Pramod Kumar
   Version: 1.0
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #0f172a;
    --accent-color: #06b6d4;
    --accent-light: #22d3ee;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.section-padding {
    padding: 100px 0;
}

.text-accent {
    color: var(--accent-color);
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.z-2 {
    z-index: 2;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.navbar-brand .brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.navbar-brand .brand-text span {
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-white) !important;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    background: rgba(6, 182, 212, 0.1);
}

.btn-resume {
    background: var(--accent-color);
    color: var(--text-white) !important;
    padding: 8px 20px !important;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-resume:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1e293b 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    color: var(--text-white);
    padding: 40px 0;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-position {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    min-height: 40px;
}

.typing-text {
    color: var(--accent-color);
}

.cursor {
    color: var(--accent-color);
    animation: blink 1s infinite;
}

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

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-buttons .btn-primary {
    background: var(--primary-color);
    border: none;
}

.hero-buttons .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--text-white);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.hero-buttons .btn-accent {
    background: var(--accent-color);
    color: var(--text-white);
    border: none;
}

.hero-buttons .btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.hero-stats {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Hero Image */
.hero-image {
    position: relative;
    padding: 20px;
}

.image-frame {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-card {
    position: absolute;
    background: var(--text-white);
    padding: 12px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.card-1 {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.card-2 {
    top: 30%;
    right: -20px;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 40%;
    left: -20px;
    animation-delay: 1s;
}

.card-4 {
    bottom: 20%;
    right: -20px;
    animation-delay: 1.5s;
}

.card-5 {
    bottom: 5%;
    left: -20px;
    animation-delay: 1s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scroll-down span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    transform: rotate(45deg);
    animation: scrollDown 2s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDown {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    margin-bottom: 30px;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================
   About Section
   ============================================ */
.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-white);
    padding: 25px 35px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.experience-badge .years {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
}

.about-content h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
}

.about-content .lead {
    color: var(--text-light);
}

.about-highlights {
    margin-top: 25px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.highlight-item i {
    font-size: 1.2rem;
}

.personal-info p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.personal-info strong {
    color: var(--text-dark);
}

/* ============================================
   Skills Section
   ============================================ */
.skill-category {
    background: var(--text-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.skill-category-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.progress {
    height: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 1.5s ease;
}

.skill-tags {
    margin-top: 50px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.skill-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   Projects Section
   ============================================ */
.project-filters {
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 25px;
    margin: 5px;
    border: 2px solid var(--border-color);
    background: var(--text-white);
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

.project-card {
    background: var(--text-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--accent-color);
    color: var(--text-white);
    transform: translateY(-5px);
}

.project-content {
    padding: 25px;
}

.project-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.project-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    padding: 5px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* ============================================
   Experience Section - Timeline
   ============================================ */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    padding-left: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -39px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--text-white);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-content {
    background: var(--text-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.timeline-company {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-list {
    list-style: disc;
    padding-left: 20px;
}

.timeline-list li {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ============================================
   Resume Section
   ============================================ */
.resume-content h3 {
    color: var(--text-dark);
}

.resume-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.highlight-box:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.highlight-box i {
    font-size: 2rem;
    color: var(--accent-color);
}

.highlight-box:hover i {
    color: var(--text-white);
}

.highlight-box h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.resume-actions .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
}

.resume-preview {
    display: flex;
    justify-content: center;
}

.preview-card {
    width: 100%;
    max-width: 400px;
    background: var(--text-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: rotate(5deg);
    transition: var(--transition);
}

.preview-card:hover {
    transform: rotate(0deg);
}

.preview-header {
    background: var(--bg-light);
    padding: 15px;
    display: flex;
    align-items: center;
}

.preview-dots {
    display: flex;
    gap: 8px;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.preview-dots span:nth-child(2) {
    background: #febc2e;
}

.preview-dots span:nth-child(3) {
    background: #28c840;
}

.preview-body {
    padding: 40px;
    text-align: center;
}

.preview-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.preview-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 30px;
}

.preview-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preview-section {
    height: 40px;
    background: var(--bg-light);
    border-radius: 8px;
}

/* ============================================
   Case Studies Section
   ============================================ */
.case-study-card {
    background: var(--text-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.case-study-card:hover {
    box-shadow: var(--shadow-xl);
}

.case-study-image {
    position: relative;
}

.case-study-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case-study-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 15px;
    background: var(--accent-color);
    color: var(--text-white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.case-study-content {
    padding: 30px;
}

.case-study-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.case-study-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.case-study-meta i {
    color: var(--accent-color);
    margin-right: 5px;
}

.case-study-section {
    margin-bottom: 20px;
}

.case-study-section h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.case-study-section p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.results-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.result-item {
    text-align: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    flex: 1;
    min-width: 80px;
}

.result-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.result-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonial-card {
    background: var(--text-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: var(--accent-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--text-white);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--shadow);
    opacity: 1;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* ============================================
   Blog Section
   ============================================ */
.blog-card {
    background: var(--text-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

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

.blog-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.blog-meta i {
    margin-right: 5px;
    color: var(--accent-color);
}

.blog-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    color: var(--accent-color);
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-info h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.social-links h5 {
    color: var(--text-dark);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.contact-form-wrapper {
    background: var(--text-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-form .form-control {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

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

.contact-form textarea {
    resize: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 80px 0 30px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links h5 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-newsletter h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-white);
    padding: 12px 15px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    padding: 12px 20px;
    white-space: nowrap;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 10px;
    color: var(--text-white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-5px);
    color: var(--text-white);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .experience-badge {
        right: 0;
        padding: 20px 25px;
    }
    
    .experience-badge .years {
        font-size: 2rem;
    }
    
    .carousel-control-prev {
        left: 0;
    }
    
    .carousel-control-next {
        right: 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-position {
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 15px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats .row > div {
        margin-bottom: 20px;
    }
    
    .hero-stats .row > div:last-child {
        margin-bottom: 0;
    }
    
    .filter-btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .results-grid {
        flex-direction: column;
    }
}

/* ============================================
   Animation Classes
   ============================================ */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Selection Color */
::selection {
    background: var(--accent-color);
    color: var(--text-white);
}

/* ============================================================
   ============================================================
   MULTI-PAGE ENHANCEMENTS  (added)
   Reuses the same variables, colors, fonts & component language
   ============================================================
   ============================================================ */

/* Extra theme tokens that build on the existing palette */
:root {
    --accent-soft: rgba(6, 182, 212, 0.1);
    --primary-soft: rgba(37, 99, 235, 0.1);
    --gradient-brand: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-dark: linear-gradient(135deg, var(--secondary-color) 0%, #1e293b 100%);
    --max-read: 760px;
}

/* ============================================
   Preloader
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(6, 182, 212, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: preloaderSpin 0.9s linear infinite;
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Solid navbar for inner pages
   (hero pages keep the transparent navbar)
   ============================================ */
.navbar.navbar-solid {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

/* ============================================
   Page Banner (sub-page hero)
   ============================================ */
.page-banner {
    position: relative;
    padding: 170px 0 80px;
    background: var(--gradient-dark);
    overflow: hidden;
    text-align: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(6, 182, 212, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.18) 0%, transparent 45%);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner .page-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.page-banner .page-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 18px;
}

.page-banner .page-title .text-accent { color: var(--accent-light); }

.page-banner .page-lead {
    color: rgba(255, 255, 255, 0.72);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Breadcrumbs */
.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 8px 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    font-size: 0.88rem;
}

.breadcrumb-nav a { color: rgba(255, 255, 255, 0.75); }
.breadcrumb-nav a:hover { color: var(--accent-light); }
.breadcrumb-nav .sep { color: rgba(255, 255, 255, 0.4); }
.breadcrumb-nav .current { color: var(--accent-light); font-weight: 600; }

/* ============================================
   Blog Listing Page
   ============================================ */
.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.blog-search {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 360px;
}

.blog-search input {
    width: 100%;
    padding: 12px 18px 12px 44px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--text-white);
}

.blog-search input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.blog-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.blog-cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-cat-btn {
    padding: 8px 18px;
    border: 2px solid var(--border-color);
    background: var(--text-white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    cursor: pointer;
}

.blog-cat-btn:hover,
.blog-cat-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

/* Featured (wide) blog card */
.blog-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--text-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
    transition: var(--transition);
}

.blog-featured:hover { box-shadow: var(--shadow-xl); }

.blog-featured .blog-image { height: 100%; }
.blog-featured .blog-image img { height: 100%; min-height: 320px; }

.blog-featured .blog-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured .blog-content h3 {
    font-size: 1.75rem;
    margin-bottom: 14px;
    color: var(--text-dark);
    line-height: 1.3;
}

.featured-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 5px 14px;
    background: var(--accent-soft);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.blog-author-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.blog-author-mini img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-mini span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.blog-card .blog-content h4 a { color: inherit; }
.blog-card .blog-content h4 a:hover { color: var(--primary-color); }

/* Sidebar */
.blog-sidebar { position: sticky; top: 100px; }

.sidebar-widget {
    background: var(--text-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 28px;
}

.sidebar-widget h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    color: var(--text-dark);
}

.sidebar-widget h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.cat-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-light);
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
}

.cat-list li:last-child { border-bottom: none; }
.cat-list li:hover { color: var(--primary-color); padding-left: 6px; }
.cat-list li span {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 1px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

.recent-post {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.recent-post:last-child { margin-bottom: 0; }

.recent-post img {
    width: 70px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post .rp-body h6 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.recent-post .rp-body h6 a:hover { color: var(--primary-color); }
.recent-post .rp-body span { font-size: 0.78rem; color: var(--text-light); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.sidebar-cta {
    background: var(--gradient-dark);
    color: var(--text-white);
    text-align: center;
}

.sidebar-cta h5 { color: var(--text-white); }
.sidebar-cta h5::after { left: 50%; transform: translateX(-50%); }
.sidebar-cta p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 18px; }

/* Pagination */
.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination-wrap a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--text-white);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.pagination-wrap a:hover,
.pagination-wrap a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
}

.pagination-wrap a.disabled { opacity: 0.45; pointer-events: none; }

/* ============================================
   Single Blog Post
   ============================================ */
.post-hero {
    position: relative;
    padding: 170px 0 90px;
    background: var(--gradient-dark);
    overflow: hidden;
}

.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(6, 182, 212, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.18) 0%, transparent 45%);
    z-index: 1;
}

.post-hero .container { position: relative; z-index: 2; }

.post-hero .post-cat {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.post-hero h1 {
    color: var(--text-white);
    font-size: 2.6rem;
    max-width: 900px;
    margin: 0 auto 22px;
    line-height: 1.25;
}

.post-hero .post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
}

.post-hero .post-meta i { color: var(--accent-color); margin-right: 6px; }

.post-feature-img {
    max-width: 1000px;
    margin: -60px auto 0;
    position: relative;
    z-index: 3;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.post-feature-img img { width: 100%; display: block; }

.post-body {
    max-width: var(--max-read);
    margin: 0 auto;
    font-size: 1.08rem;
    color: #374151;
    line-height: 1.9;
}

.post-body h2 {
    font-size: 1.7rem;
    margin: 40px 0 16px;
    color: var(--text-dark);
}

.post-body h3 {
    font-size: 1.3rem;
    margin: 30px 0 12px;
    color: var(--text-dark);
}

.post-body p { margin-bottom: 22px; }

.post-body ul, .post-body ol {
    margin: 0 0 22px 0;
    padding-left: 22px;
}

.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 10px; }

.post-body img { border-radius: var(--border-radius); margin: 10px 0 26px; }

.post-body blockquote {
    margin: 30px 0;
    padding: 22px 28px;
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-dark);
}

.post-body pre {
    background: var(--secondary-color);
    color: #e2e8f0;
    padding: 20px 22px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 24px;
    font-size: 0.92rem;
}

.post-body code {
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.9em;
}

.post-body pre code { background: none; color: inherit; padding: 0; }

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--border-color);
}

.post-share {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
}

.post-share span { font-weight: 600; color: var(--text-dark); }

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

.share-btn:hover { background: var(--primary-color); color: #fff; transform: translateY(-4px); }

/* Author box */
.author-box {
    display: flex;
    gap: 22px;
    align-items: center;
    background: var(--text-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin: 50px auto 0;
    max-width: var(--max-read);
}

.author-box img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box h5 { margin-bottom: 4px; color: var(--text-dark); }
.author-box .role { color: var(--accent-color); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.author-box p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 0; }

/* Post navigation (prev/next) */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: var(--max-read);
    margin: 40px auto 0;
}

.post-nav a {
    background: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 22px;
    transition: var(--transition);
}

.post-nav a:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent-color); }
.post-nav .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); }
.post-nav h6 { margin: 8px 0 0; color: var(--text-dark); font-size: 1rem; line-height: 1.4; }
.post-nav .next { text-align: right; }

/* Comments */
.comment-box {
    max-width: var(--max-read);
    margin: 50px auto 0;
}

.comment {
    display: flex;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment.reply { margin-left: 60px; }
.comment .c-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.comment h6 { margin: 0; color: var(--text-dark); }
.comment .c-date { font-size: 0.8rem; color: var(--text-light); }
.comment p { color: var(--text-light); font-size: 0.93rem; margin-bottom: 6px; }
.comment .c-reply { font-size: 0.82rem; font-weight: 600; color: var(--primary-color); }

/* ============================================
   Case Study Detail
   ============================================ */
.cs-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.cs-fact {
    background: var(--text-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border-top: 3px solid var(--accent-color);
}

.cs-fact .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 6px;
}

.cs-fact .value { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); }

.cs-block { margin-bottom: 46px; }

.cs-block .cs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.cs-block h3 { font-size: 1.6rem; color: var(--text-dark); margin-bottom: 16px; }
.cs-block p { color: var(--text-light); font-size: 1.02rem; line-height: 1.9; margin-bottom: 16px; }

.cs-checklist { margin-top: 14px; }
.cs-checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    color: var(--text-light);
}
.cs-checklist li i { color: var(--accent-color); margin-top: 4px; }

.cs-result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.cs-result {
    text-align: center;
    padding: 30px 18px;
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    color: #fff;
}

.cs-result .num { font-size: 2.4rem; font-weight: 800; color: var(--accent-light); display: block; line-height: 1; }
.cs-result .lbl { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-top: 8px; display: block; }

.cs-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cs-gallery img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--border-radius); }

.cs-quote {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 44px;
    text-align: center;
    margin: 10px 0;
}

.cs-quote i { font-size: 2.4rem; color: var(--accent-color); opacity: 0.4; }
.cs-quote p { font-size: 1.25rem; font-style: italic; color: var(--text-dark); max-width: 720px; margin: 16px auto; line-height: 1.7; }
.cs-quote .who { font-weight: 700; color: var(--primary-color); }

.cs-sidebar { position: sticky; top: 100px; }

.cs-tech-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================
   Resume Page
   ============================================ */
.resume-page-card {
    background: var(--text-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: -90px;
    position: relative;
    z-index: 3;
}

.resume-head {
    background: var(--gradient-dark);
    color: #fff;
    padding: 44px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.resume-head img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
}

.resume-head h2 { color: #fff; font-size: 2rem; margin-bottom: 6px; }
.resume-head .r-role { color: var(--accent-light); font-weight: 600; font-size: 1.05rem; margin-bottom: 14px; }
.resume-head .r-contact { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.resume-head .r-contact span i { color: var(--accent-color); margin-right: 7px; }
.resume-head .r-actions { margin-left: auto; display: flex; flex-direction: column; gap: 10px; }

.resume-body { padding: 44px; }

.resume-section { margin-bottom: 40px; }
.resume-section:last-child { margin-bottom: 0; }

.resume-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.resume-section-title i {
    width: 40px;
    height: 40px;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.r-edu-item, .r-exp-item { margin-bottom: 22px; }
.r-exp-item:last-child, .r-edu-item:last-child { margin-bottom: 0; }
.r-item-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.r-item-head h5 { color: var(--text-dark); font-size: 1.05rem; margin: 0; }
.r-item-head .r-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-light);
    padding: 3px 12px;
    border-radius: 20px;
    height: fit-content;
}
.r-org { color: var(--accent-color); font-weight: 600; font-size: 0.92rem; margin: 4px 0 8px; }
.r-item-body { color: var(--text-light); font-size: 0.95rem; }
.r-item-body ul { list-style: disc; padding-left: 18px; }
.r-item-body li { margin-bottom: 6px; }

.r-skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }

.r-lang-bar { margin-bottom: 16px; }
.r-lang-bar .r-lang-info { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 8px 10px 0;
}

.cert-badge i { color: var(--accent-color); }

/* ============================================
   Contact Page
   ============================================ */
.contact-card {
    background: var(--text-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.contact-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }

.contact-card .cc-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card h5 { color: var(--text-dark); margin-bottom: 8px; }
.contact-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }
.contact-card a { color: var(--primary-color); font-weight: 600; }

.map-wrap {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    line-height: 0;
}

.map-wrap iframe { width: 100%; height: 420px; border: 0; }

.faq-item {
    background: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 24px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.faq-q i { color: var(--accent-color); transition: var(--transition); }
.faq-item.open .faq-q i { transform: rotate(180deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    color: var(--text-light);
    font-size: 0.95rem;
}

.faq-a-inner { padding: 0 24px 20px; }

/* ============================================
   Shared utility additions
   ============================================ */
.btn-accent {
    background: var(--accent-color);
    color: var(--text-white);
    border: none;
}
.btn-accent:hover { background: var(--accent-light); color: #fff; }

.section-tight { padding: 70px 0; }

.divider-soft { height: 1px; background: var(--border-color); border: 0; }

/* ============================================
   Responsive for new components
   ============================================ */
@media (max-width: 991px) {
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured .blog-image img { min-height: 240px; }
    .cs-overview { grid-template-columns: repeat(2, 1fr); }
    .cs-result-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-sidebar, .cs-sidebar { position: static; margin-top: 40px; }
    .page-banner .page-title { font-size: 2.3rem; }
    .post-hero h1 { font-size: 2rem; }
    .resume-head .r-actions { margin-left: 0; width: 100%; flex-direction: row; }
}

@media (max-width: 575px) {
    .cs-overview, .cs-result-grid, .cs-gallery, .r-skill-grid, .post-nav { grid-template-columns: 1fr; }
    .resume-page-card { margin-top: -50px; }
    .resume-head, .resume-body { padding: 28px; }
    .blog-toolbar { flex-direction: column; align-items: stretch; }
    .comment.reply { margin-left: 24px; }
    .author-box { flex-direction: column; text-align: center; }
}

/* ============================================
   Print styles (clean resume / page output)
   ============================================ */
@media print {
    .navbar, .footer, .back-to-top, .preloader,
    .page-banner .breadcrumb-nav, .r-actions,
    .newsletter-form, .scroll-indicator { display: none !important; }

    body { background: #fff; }
    .page-banner { padding: 0 !important; background: none !important; }
    .page-banner .page-title, .page-banner .page-subtitle { color: #000 !important; }
    .resume-page-card { margin-top: 0 !important; box-shadow: none !important; }
    .resume-head { background: #0f172a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .progress-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    a { color: inherit !important; text-decoration: none !important; }
    .section-padding, .section-tight { padding: 20px 0 !important; }
}
