:root {
    /* Color Palette */
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary: #6c757d;
    --accent: #6610f2;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-dark: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', var(--font-primary);

    /* Spacing */
    --section-padding: 100px 0;
    --card-padding: 2rem;
    --border-radius: 1.5rem;
    --border-radius-sm: 1rem;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    color: var(--dark);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Blobs */
.portfolio-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: 10%;
    right: -150px;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--info);
    top: 50%;
    left: 30%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    padding: var(--card-padding);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Section Styles */
.portfolio-section {
    padding: var(--section-padding);
    position: relative;
}

.portfolio-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.hero-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.05) rotate(3deg);
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.hero-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--dark);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

/* ========== SERVICES SECTION ========== */
.service-card {
    text-align: center;
    height: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(102, 16, 242, 0.1));
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: scale(1.1);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--secondary);
    font-size: 0.95rem;
}

/* ========== SKILLS SECTION ========== */
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--dark);
}

.skill-percent {
    color: var(--primary);
    font-weight: 700;
}

.skill-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1s ease-out;
}

/* ========== PROJECTS SECTION ========== */
.project-card {
    overflow: hidden;
    padding: 0;
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 0.8rem;
}

/* ========== PRODUCTS SECTION ========== */
.product-card {
    overflow: hidden;
    padding: 0;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-content {
    padding: 1.5rem;
}

.product-type {
    color: var(--secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.product-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

/* ========== TIMELINE (Experience & Education) ========== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

.timeline-date {
    display: inline-block;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.timeline-subtitle {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    text-align: center;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid rgba(13, 110, 253, 0.2);
}

.testimonial-text {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: rgba(13, 110, 253, 0.1);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
}

.testimonial-name {
    font-weight: 700;
    color: var(--dark);
}

.testimonial-designation {
    color: var(--secondary);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: var(--warning);
    margin-top: 0.5rem;
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.7), rgba(102, 16, 242, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
}

/* ========== YOUTUBE VIDEOS ========== */
.video-card {
    overflow: hidden;
    padding: 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* ========== BLOGS ========== */
.blog-card {
    overflow: hidden;
    padding: 0;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.blog-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* ========== CONTACT ========== */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-label {
    color: var(--secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-weight: 600;
    color: var(--dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.contact-form button {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ========== FOOTER ========== */
.portfolio-footer {
    padding: 3rem 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid var(--glass-border);
}

.footer-text {
    color: var(--secondary);
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ========== NAVBAR ========== */
.portfolio-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: all 0.3s ease;
}

.portfolio-navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-image {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --card-padding: 1.5rem;
    }

    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -26px;
    }
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.5rem !important;
}

.mb-2 {
    margin-bottom: 1rem !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.col {
    flex: 1 0 0%;
    padding: 0.75rem;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0.75rem;
}

.col-md-3 {
    padding: 0.75rem;
}

.col-md-4 {
    padding: 0.75rem;
}

.col-md-6 {
    padding: 0.75rem;
}

.col-lg-3 {
    padding: 0.75rem;
}

.col-lg-4 {
    padding: 0.75rem;
}

.col-lg-6 {
    padding: 0.75rem;
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-lg-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.g-4>* {
    padding: 0.75rem;
}

.row.g-4 {
    margin: -0.75rem;
}

.col-lg-5 {
    padding: 0.75rem;
}

.col-lg-7 {
    padding: 0.75rem;
}

@media (min-width: 992px) {
    .col-lg-5 {
        flex: 0 0 41.666%;
        max-width: 41.666%;
    }

    .col-lg-7 {
        flex: 0 0 58.333%;
        max-width: 58.333%;
    }
}

.h-100 {
    height: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section Specific Fix */
#contact .glass-card {
    margin-bottom: 1.5rem;
}

#contact .col-lg-5 .glass-card,
#contact .col-lg-7 .glass-card {
    height: auto;
}