/* -------------------------------------------------------------
   KHUSHAL KALSARIYA PORTFOLIO - CORE DESIGN SYSTEM
------------------------------------------------------------- */

/* Variables */
:root {
    --bg-dark: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --primary: #7C3AED;
    --primary-glow: rgba(124, 58, 237, 0.15);
    --primary-hover: #6D28D9;
    --accent-cyan: #0EA5E9;
    --text-white: #FFFFFF;
    --text-dark: #0F172A;
    --text-gray: #475569;
    --text-muted: #94A3B8;
    --border-glass: rgba(124, 58, 237, 0.08);
    --border-glass-focus: rgba(124, 58, 237, 0.3);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 100px;
    --container-width: 1200px;
}

/* Reset Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background: radial-gradient(circle at 10% 20%, rgba(243, 244, 253, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(224, 242, 254, 0.6) 100%);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

ul {
    list-style: none;
}

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

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typographic & Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

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

.section {
    padding: 100px 0;
    position: relative;
}

.section-title-wrap {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-dark) 45%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.04);
    transition: var(--transition-normal);
}

.glass-panel:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.08);
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: var(--font-heading);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(124, 58, 237, 0.2);
    backdrop-filter: none;
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Loader Animation */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #FFF, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-bar {
    width: 150px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: var(--primary);
    border-radius: 4px;
    animation: loading-bar 1.5s infinite ease-in-out;
}

@keyframes loading-bar {
    0% { left: -40%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    height: 70px;
    z-index: 999;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 50px;
    box-shadow: 0 10px 35px rgba(139, 92, 246, 0.08);
}

.header.sticky {
    top: 10px;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.12);
}

.navbar-container {
    height: 100%;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.logo-text-gradient {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1E1B4B 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
    padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-normal);
    box-shadow: 0 0 8px var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-resume-btn {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 28px;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition-normal);
}

/* Home / Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    top: 10%;
    right: 5%;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title-suffix {
    display: block;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 35px;
    font-weight: 400;
    min-height: 60px; /* Space for typing effect */
}

.hero-ctas {
    display: flex;
    gap: 20px;
}

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

.hero-image-border {
    position: relative;
    border-radius: 30px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(124, 58, 237, 0.1));
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.08);
}

.hero-image {
    width: 320px;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* Floating Badges for Hero */
.floating-badge {
    position: absolute;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.06);
}

.badge-1 {
    bottom: 30px;
    left: -40px;
}

.badge-2 {
    top: 40px;
    right: -20px;
}

.floating-badge i {
    font-size: 1.25rem;
    color: var(--primary);
}

.floating-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Statistics Section */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, rgba(14, 165, 233, 0.04) 100%);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-title {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1rem;
}

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

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #FFFFFF;
    box-shadow: 0 0 10px var(--primary);
}

.timeline-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Skills Section */
.skills-section {
    padding: 100px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.skill-box {
    margin-bottom: 10px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.skill-name {
    font-weight: 500;
    color: var(--text-dark);
}

.skill-percentage {
    color: var(--primary);
    font-weight: 600;
}

.skill-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(124, 58, 237, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition-normal);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.service-card:hover .service-icon {
    background: var(--primary);
    transform: scale(1.1);
}

.service-card:hover .service-icon i {
    color: #FFFFFF;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.service-card .btn-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.service-card .btn-link i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.service-card:hover .btn-link i {
    transform: translateX(4px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    overflow: hidden;
}

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

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

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

.project-info {
    padding: 30px;
    border-top: none;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.project-meta div {
    color: var(--text-gray);
}

.project-meta strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 3px;
}

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

.project-tech span {
    font-size: 0.75rem;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.1);
    padding: 4px 10px;
    border-radius: 5px;
    color: var(--primary);
    font-weight: 500;
}

/* Testimonials Slider */
.testimonials-section {
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    margin: 40px auto 0 auto;
    max-width: 650px;
}

.testimonials-track {
    display: flex;
    transition: transform var(--transition-normal);
    cursor: grab;
}

.testimonials-track:active {
    cursor: grabbing;
}

.testimonial-slide {
    min-width: 100%;
    padding: 30px 40px;
    text-align: center;
    transform: scale(0.85);
    opacity: 0.4;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.testimonial-slide.active {
    transform: scale(1);
    opacity: 1;
}

.client-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 2px solid var(--primary);
}

.testimonial-rating {
    color: #FBBF24;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.client-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.client-title {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-arrow {
    background: #FFFFFF;
    border: 1px solid rgba(124, 58, 237, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

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

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

/* Gallery Section (Masonry) */
.gallery-grid {
    column-count: 4;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition-normal);
    backdrop-filter: blur(5px);
}

.gallery-overlay h4 {
    color: var(--text-dark);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 5px;
}

.gallery-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Contact Section / Page */
.contact-container-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.contact-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-detail-card {
    padding: 30px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-detail-content h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-detail-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Contact Form */
.contact-form-card {
    padding: 40px;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
}

.form-control {
    background: #FFFFFF;
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.1);
}

textarea.form-control {
    resize: none;
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* FAQ Accordion */
.faq-section {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.faq-item {
    padding: 24px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    font-size: 0.85rem;
    transition: var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-top: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    margin-top: 15px;
    max-height: 300px;
}

/* Floating Actions (WhatsApp & Back-to-top) */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 90px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.back-to-top-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 99;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
}

.whatsapp-tooltip {
    position: absolute;
    right: 65px;
    background: #111;
    color: #FFF;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* Footer styling */
.footer {
    background: #FAF9FF;
    border-top: 1px solid rgba(124, 58, 237, 0.08);
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-brand h3 {
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    transition: var(--transition-normal);
}

.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.footer-links h3, .footer-services h3, .footer-contact h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-links ul, .footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a, .footer-services a {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.footer-links a:hover, .footer-services a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(124, 58, 237, 0.08);
    padding: 30px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

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

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Admin Styling (Dashboard, Login, Messages) */
.admin-body {
    background: #F8FAFC;
    min-height: 100vh;
    padding-top: 40px;
    color: var(--text-dark);
}

.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.admin-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 20px;
}

.admin-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-nav {
    display: flex;
    gap: 20px;
}

.admin-nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 6px;
}

.admin-nav-link:hover, .admin-nav-link.active {
    background: var(--bg-card);
    color: var(--text-white);
}

.admin-logout-btn {
    color: #EF4444;
}

.admin-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.admin-stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(37,99,235,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-stat-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.admin-stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.admin-stat-content h3 {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.admin-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Charts / Activity layout */
.admin-chart-card {
    padding: 30px;
    margin-bottom: 40px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.chart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

/* SVG Chart style */
.svg-chart {
    width: 100%;
    height: 250px;
}

.chart-axis-line {
    stroke: rgba(255,255,255,0.08);
    stroke-width: 1;
}

.chart-grid-line {
    stroke: rgba(255,255,255,0.04);
    stroke-dasharray: 4;
}

.chart-line {
    stroke: var(--primary);
    stroke-width: 3;
    fill: none;
}

.chart-area {
    fill: url(#chart-gradient);
    opacity: 0.2;
}

.chart-point {
    fill: var(--primary);
    stroke: var(--text-white);
    stroke-width: 2;
    cursor: pointer;
    transition: r 0.2s ease;
}

.chart-point:hover {
    r: 6;
}

.chart-label {
    fill: var(--text-gray);
    font-size: 10px;
    font-family: var(--font-body);
}

/* Messages table in Admin */
.admin-table-card {
    padding: 30px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.admin-table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
}

.admin-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-gray);
    font-weight: 600;
}

.admin-table td {
    font-size: 0.9rem;
}

.admin-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.msg-status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.msg-status-badge.unread {
    background: rgba(37,99,235,0.15);
    color: #60A5FA;
}

.msg-status-badge.read {
    background: rgba(255,255,255,0.05);
    color: var(--text-gray);
}

.action-btn-group {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn:hover {
    background: var(--bg-card-hover);
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Detail modal for reading messages */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.message-modal.open {
    opacity: 1;
    visibility: visible;
}

.message-modal-card {
    max-width: 600px;
    width: 90%;
    padding: 40px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-white);
}

.modal-header-meta {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-glass);
}

.modal-header-meta h2 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.modal-meta-line {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.modal-meta-line strong {
    color: var(--text-white);
}

.modal-body-content {
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN BREAKPOINTS
------------------------------------------------------------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .logo-text-gradient {
        font-size: 1rem;
    }

    .header {
        width: 94%;
        height: 60px;
        top: 10px;
        border-radius: 16px;
        overflow: visible;
    }

    .header.sticky {
        height: 56px;
    }

    .navbar-container {
        padding: 0 16px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-glass);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
        z-index: 1001;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 100px 30px 40px;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .nav-menu a {
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--text-dark);
        padding: 12px 16px;
        border-radius: 12px;
        width: 100%;
        display: block;
        transition: var(--transition-fast);
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(124, 58, 237, 0.08);
        color: var(--primary);
    }

    .nav-resume-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    /* Mobile nav overlay background */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 997;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .mobile-nav-overlay.active {
        display: block;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-title-suffix {
        font-size: 1.3rem;
        min-height: 36px;
        display: block;
    }

    .hero-title-suffix .typewriter {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        min-height: 70px;
        margin-bottom: 25px;
    }
    
    .hero-ctas {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .hero-ctas .btn {
        padding: 10px 20px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .hero-ctas .btn i {
        font-size: 0.8rem;
    }
    
    .hero-image-wrap {
        order: -1;
    }
    
    .hero-image {
        width: 260px;
        height: 340px;
    }
    
    .floating-badge {
        display: none; /* Hide floating badges on mobile to prevent layout issues */
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-grid {
        column-count: 2;
    }
    
    .contact-container-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-full {
        grid-column: span 1;
    }
    
    .testimonial-slide {
        padding: 30px 15px;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        column-count: 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-socials a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Capabilities Section Custom Styling */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.capability-card {
    padding: 35px;
    height: 100%;
}

.capability-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.capability-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.capability-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    font-size: 0.85rem;
    background: rgba(124, 58, 237, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.08);
    color: var(--text-gray);
    padding: 6px 14px;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Scrollable Project Gallery Layout */
.project-gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 100%;
}

.project-gallery-track::-webkit-scrollbar {
    height: 6px;
}

.project-gallery-track::-webkit-scrollbar-track {
    background: transparent;
}

.project-gallery-track::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.2);
    border-radius: 3px;
}

.project-gallery-track::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.project-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
}

.project-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Arrow indicators */
.project-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-dark);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 5;
    opacity: 0;
    transition: opacity var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.project-gallery-nav:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}

.project-img-wrap:hover .project-gallery-nav {
    opacity: 1;
}

.project-gallery-nav.prev-btn {
    left: 12px;
}

.project-gallery-nav.next-btn {
    right: 12px;
}

/* Who I Am Section Custom Styling & Scroll Animations */
.about-section .about-image-wrap {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-section .about-text-wrap {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-section.active .about-image-wrap,
.about-section.active .about-text-wrap {
    opacity: 1;
    transform: translateX(0);
}

.about-image-inner {
    position: relative;
    border-radius: 50%;
    overflow: visible;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
    aspect-ratio: 1 / 1;
    max-width: 400px;
    margin: 0 auto;
    animation: floatAvatar 6s ease-in-out infinite;
}

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

.about-img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid var(--primary);
    transition: transform var(--transition-normal);
}

.about-img:hover {
    transform: scale(1.02);
}

.about-image-inner::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px dashed var(--primary);
    border-radius: 50%;
    z-index: -1;
    transition: transform var(--transition-normal);
    animation: spinDashed 20s linear infinite;
}

@keyframes spinDashed {
    100% { transform: rotate(360deg); }
}

.about-image-inner:hover::before {
    transform: translate(5px, 5px);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 2;
    transition: transform var(--transition-normal);
}

.about-badge:hover {
    transform: translateY(-5px);
}

.about-badge i {
    font-size: 1.5rem;
    color: var(--primary);
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark) !important;
    font-weight: 700;
}

/* Creative Testimonials UI & Animations */
.testimonials-slider {
    overflow: visible !important;
    perspective: 1000px;
}

.testimonial-slide {
    position: relative;
    padding: 60px 45px !important;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.05);
    backdrop-filter: blur(20px);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.testimonial-quote-icon {
    position: absolute;
    top: 25px;
    left: 35px;
    font-size: 4rem;
    color: rgba(124, 58, 237, 0.05);
    z-index: 0;
    pointer-events: none;
    animation: floatQuote 6s ease-in-out infinite alternate;
}

@keyframes floatQuote {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(-5deg); }
}

.client-info-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
    border: 3px solid #FFFFFF;
    transition: transform var(--transition-fast);
}

.testimonial-slide:hover .client-avatar {
    transform: scale(1.1) rotate(5deg);
}

.client-name-wrap {
    text-align: left;
}

.client-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    margin-bottom: 2px;
}

.client-title {
    font-size: 0.85rem;
    color: var(--primary) !important;
    font-weight: 600;
}

.testimonial-text {
    font-size: 1.2rem !important;
    line-height: 1.75 !important;
    color: var(--text-gray) !important;
    position: relative;
    z-index: 1;
    font-style: normal !important;
    font-weight: 400;
}

/* Service Card Animations & Staggered Reveal */
.services-grid .service-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.reveal.active .services-grid .service-card {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered transition-delays for the 8 cards */
.reveal.active .services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.reveal.active .services-grid .service-card:nth-child(2) { transition-delay: 0.15s; }
.reveal.active .services-grid .service-card:nth-child(3) { transition-delay: 0.25s; }
.reveal.active .services-grid .service-card:nth-child(4) { transition-delay: 0.35s; }
.reveal.active .services-grid .service-card:nth-child(5) { transition-delay: 0.45s; }
.reveal.active .services-grid .service-card:nth-child(6) { transition-delay: 0.55s; }
.reveal.active .services-grid .service-card:nth-child(7) { transition-delay: 0.65s; }
.reveal.active .services-grid .service-card:nth-child(8) { transition-delay: 0.75s; }

/* Highlighted Service Card Custom Premium Styling */
.service-card.highlighted-service {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.08);
    position: relative;
    overflow: hidden;
}

.service-card.highlighted-service::before {
    content: 'WEB SOLUTION';
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    color: #FFFFFF;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 4px 25px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
    z-index: 2;
}

.service-card.highlighted-service:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 45px rgba(14, 165, 233, 0.15);
    transform: translateY(-8px);
}

/* Highlighted Marketing Service Card Custom Premium Styling */
.service-card.highlighted-marketing {
    border: 2px solid var(--accent-cyan);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.08);
    position: relative;
    overflow: hidden;
}

.service-card.highlighted-marketing::before {
    content: 'GROWTH';
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
    color: #FFFFFF;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 4px 25px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
    z-index: 2;
}

.service-card.highlighted-marketing:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 45px rgba(124, 58, 237, 0.15);
    transform: translateY(-8px);
}

/* ==========================================
   RESUME DOCUMENT & ATS PRINT STYLES
   ========================================== */

.resume-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 50px;
}

.resume-a4 {
    background: #FFFFFF;
    width: 100%; 
    max-width: 210mm; /* Responsive A4 width */
    min-height: 297mm; /* A4 height */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 8px; /* Slightly rounded for web view */
    padding: 10mm 12mm; /* Reduced padding to fit single A4 page */
    box-sizing: border-box;
    font-family: 'Inter', sans-serif; /* Clean ATS friendly font */
    color: #1F2937;
}

@media (max-width: 768px) {
    .resume-a4 {
        padding: 20px 15px;
        min-height: auto;
    }
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px; /* Reduced spacing */
    margin-bottom: 12px; /* Reduced spacing */
}

.resume-header-content {
    flex: 1;
}

.resume-name {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 3px;
    letter-spacing: -0.5px;
}

.resume-title {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.resume-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #4B5563;
}

.resume-contact-info a {
    color: #4B5563;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.resume-contact-info a:hover {
    color: var(--primary);
}

.resume-contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.resume-profile-img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(124, 58, 237, 0.1);
    margin-left: 20px;
    flex-shrink: 0;
}

.resume-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resume-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 25px;
}

.resume-section {
    margin-bottom: 14px; /* Reduced margin */
}

.resume-section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px; /* Reduced margin */
    padding-bottom: 4px; /* Reduced padding */
    border-bottom: 1px solid #E5E7EB;
}

.resume-text {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #4B5563;
    text-align: justify;
}

.resume-job {
    margin-bottom: 12px; /* Reduced margin */
}

.resume-job-header {
    margin-bottom: 8px;
}

.resume-job-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.resume-job-company {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
    display: inline-block;
    margin-right: 10px;
}

.resume-job-date {
    font-size: 0.8rem;
    color: #6B7280;
    font-style: italic;
}

.resume-list {
    margin: 0;
    padding-left: 15px;
    color: #4B5563;
    font-size: 0.82rem;
}

.resume-list li {
    margin-bottom: 3px;
    line-height: 1.35;
}

.resume-skill-group {
    margin-bottom: 12px; /* Reduced spacing */
}

.resume-skill-group h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 5px; /* Reduced spacing */
}

.resume-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.resume-tags span {
    background: #F3F4F6;
    color: #374151;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    border: 1px solid #E5E7EB;
}

.resume-achievement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resume-achievement-list li {
    font-size: 0.82rem;
    color: #4B5563;
    margin-bottom: 6px;
    line-height: 1.35;
    position: relative;
    padding-left: 12px;
}

.resume-achievement-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.resume-achievement-list strong {
    color: #111827;
}

/* Print Specific Styles */
@media screen and (max-width: 768px) {
    .resume-header {
        flex-direction: column;
        text-align: center;
    }
    .resume-profile-img {
        margin-left: 0;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .resume-contact-info {
        justify-content: center;
    }
    .resume-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .resume-name {
        font-size: 2.2rem;
    }
    .resume-wrapper {
        padding: 0 10px;
        padding-bottom: 50px;
    }
}

@media print {
    body, html {
        background: #FFF;
        margin: 0;
        padding: 0;
    }
    
    /* Hide everything except the resume document */
    header, footer, .navbar, .resume-action-bar, .floating-whatsapp, .section-subtitle, .section-title, .bg-effects {
        display: none !important;
    }
    
    .section {
        padding: 0 !important;
        margin: 0 !important;
        background: #FFF !important;
    }
    
    .resume-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
        display: block;
    }
    
    .resume-a4 {
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        min-height: auto;
        padding: 0; /* Let print margins handle the padding natively for better ATS */
        margin: 0;
    }
    
    /* Ensure perfect text selection for ATS */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        text-shadow: none !important;
    }
    
    /* Force link colors so they don't default to blue/underline in PDFs */
    .resume-contact-info a {
        text-decoration: none;
        color: #4B5563 !important;
    }
}
