 :root {
    --bg-color: #ffffff;
    --text-color: #212529;
    --nav-bg-color: #f8f9fa;
    --btn-bg-color: #007bff;
    --btn-text-color: #ffffff;
    --accent-color: #ff6b6b;
    --secondary-bg: #f1f3f4;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}


body {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    background-attachment: fixed;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

#main-navbar {
    background-color: var(--nav-bg-color) !important;
    /* Force dark background */
    background: var(--nav-bg-color) !important;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
}

#main-navbar .navbar-brand, #main-navbar .nav-link {
    color: var(--text-color) !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

#main-navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary, .btn-outline-primary {
    background: var(--gradient-primary);
    color: var(--btn-text-color);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover, .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
    background: var(--gradient-secondary);
}

/* Smooth hover effects */
a.nav-link:hover {
    text-decoration: none;
    transition: color 0.3s ease;
    color: var(--accent-color);
}

/* Responsive team images */
.team-member img {
    max-width: 100%;
    border-radius: 50%;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.team-member img:hover {
    transform: scale(1.15) rotate(3deg);
    box-shadow: 0 8px 25px var(--shadow);
}

/* Button hover animations */
.btn-primary, .btn-outline-primary {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Smooth scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Floating chatbot button */
#chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--btn-text-color);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

#chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px var(--shadow);
    background: var(--gradient-secondary);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px var(--shadow); }
    50% { box-shadow: 0 4px 20px var(--shadow), 0 0 0 10px rgba(102, 126, 234, 0.1); }
    100% { box-shadow: 0 4px 15px var(--shadow); }
}

/* Chatbot panel */
#chatbot-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-height: 400px;
    background-color: var(--nav-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 1001;
}

#chatbot-header {
    padding: 10px;
    background-color: var(--btn-bg-color);
    color: var(--btn-text-color);
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    max-height: 300px;
}

#chatbot-input {
    padding: 10px;
    border-top: 1px solid var(--text-color);
}

#chatbot-input input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

#chatbot-input button {
    margin-top: 5px;
    width: 100%;
}

/* Advanced Scroll Reveals */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-rotate {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active, .reveal-rotate.active {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1) rotate(0deg);
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Loading animation */
.loading {
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Unique fade-in and glow animation for hero tagline */
@keyframes fadeInGlow {
    0% {
        opacity: 0;
        text-shadow: 0 0 0 rgba(0,123,255,0);
    }
    50% {
        opacity: 0.5;
        text-shadow: 0 0 10px rgba(0,123,255,0.5);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(0,123,255,0.8), 0 0 30px rgba(0,123,255,0.6);
    }
}

/* Hero section */
.hero-section {
    text-align: center;
    padding: 120px 0;
    position: relative;
    z-index: 1;
    background: var(--gradient-primary);
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 50px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

.hero-section .hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-section .hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    animation: slideInFromTop 1s ease-out;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    border-radius: 2rem;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInFromTop 1s ease-out 0.2s both;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: slideInFromBottom 1s ease-out 0.5s both;
}

@keyframes slideInFromTop {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInFromBottom {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Services overview */
.services-overview {
    padding: 50px 0;
}

.services-overview .card {
    margin-bottom: 20px;
    background-color: var(--secondary-bg);
    transition: transform 0.3s ease;
}

.services-overview .card:hover {
    transform: translateY(-10px);
}

/* Team showcase */
.team-showcase {
    padding: 50px 0;
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1.2rem;
    }
    #chatbot-panel {
        width: 280px;
    }

    /* Portfolio Hero Enhancements */
    .portfolio-hero .hero-title {
        font-size: 2.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .portfolio-hero .hero-subtitle {
        font-size: 1.1rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .stat-item h3 {
        font-size: 2rem;
        text-align: center;
    }
    .stat-item p {
        text-align: center;
    }

    /* Portfolio Filter Enhancements */
    .portfolio-filter .nav-pills {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .portfolio-filter .nav-pills .nav-link {
        margin: 5px 0;
        width: auto;
    }

    /* Project Card Enhancements */
    .project-header {
        padding: 15px;
    }
    .project-content {
        padding: 15px;
    }
    .project-features ul {
        padding-left: 0;
    }
    .tech-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
    .project-links .btn {
        width: 100%;
    }
    .row.g-4 {
        margin: 0 -10px;
    }
    .col-lg-6, .col-lg-4 {
        padding: 0 10px;
    }
}
/* Services Section Tilt Effect */
.service-card {
    transition: transform 0.3s ease-in-out;
}

.service-card:hover {
    transform: perspective(500px) rotateX(5deg) rotateY(5deg) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* Course Section Tilt Effect */
.course-card {
    transition: transform 0.3s ease-in-out;
}

.course-card:hover {
    transform: perspective(500px) rotateX(5deg) rotateY(5deg) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* Team Section Tilt Effect */
.team-card {
    transition: transform 0.3s ease-in-out;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
/* Portfolio Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: slideInFromTop 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

/* Portfolio Filter */
.portfolio-filter {
    margin-bottom: 50px;
}

.portfolio-filter .nav-pills .nav-link {
    background: rgba(255, 255, 255, 0.1);
    color: #00c6ff;
    border: 2px solid #00c6ff;
    border-radius: 25px;
    padding: 10px 25px;
    margin: 0 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.portfolio-filter .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
}

.portfolio-filter .nav-pills .nav-link:hover {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    transform: translateY(-2px);
}

/* Enhanced Project Section Styles */
.portfolio-page {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    padding: 60px 0;
}

.portfolio-page h2 {
    font-size: 3rem;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.portfolio-page h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
}

.portfolio-page h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border-radius: 2px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00c6ff, #0072ff, #0099cc, #005c99);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.project-header {
    padding: 25px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.project-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.project-card:hover .project-header::after {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.project-header h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.tech-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    
    font-size: 4rem;
    color: #0072ff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.project-card:hover .project-placeholder {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

.project-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 25px;
    color: #333;
}

.project-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-features {
    margin-bottom: 25px;
}

.project-features h5 {
    color: #0072ff;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-features h5::before {
    content: '✨';
    font-size: 1.2rem;
}

.project-features ul {
    list-style: none;
    padding: 0;
}

.project-features li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
    transition: color 0.3s ease;
}

.project-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00c6ff;
    font-weight: bold;
}

.project-features li:hover {
    color: #0072ff;
}

.project-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.project-links .btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-links .btn-outline-primary {
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.project-links .btn-outline-primary:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

.project-links .btn-primary {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border: none;
    color: white;
}

.project-links .btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Project Stats */
.project-stats {
    margin-top: 60px;
}

.stat-card {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 198, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff9a9e, #fecfef);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.4);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-up:nth-child(odd) {
    animation-delay: 0.2s;
}

.animate-slide-up:nth-child(even) {
    animation-delay: 0.4s;
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .portfolio-page h2 {
        font-size: 2.5rem;
    }
    
    .project-card {
        margin-bottom: 30px;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .stat-card {
        margin-bottom: 20px;
        padding: 20px 15px;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

/* Video Editing Samples Enhancement */
.portfolio-page .video-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
}

.portfolio-page .video-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 154, 158, 0.3);
}

.portfolio-page .video-card .card-img-top {
    border-radius: 15px 15px 0 0;
    transition: transform 0.3s ease;
}

.portfolio-page .video-card:hover .card-img-top {
    transform: scale(1.1);
}

/* Custom hero banner */
.custom-hero-banner {
    text-align: center;
    padding: 120px 0;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

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

#animation-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.cube {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.face.front {
    transform: translateZ(100px);
    background-image: url('/static/images/logo.jpeg'), linear-gradient(45deg, #ff6b6b, #ffa500);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.face.back {
    transform: rotateY(180deg) translateZ(100px);
    background-image: url('/static/images/logo.jpeg'), linear-gradient(45deg, #6b73ff, #9b59b6);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.face.right {
    transform: rotateY(90deg) translateZ(100px);
    background-image: url('/static/images/logo.jpeg'), linear-gradient(45deg, #48cae4, #023e8a);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.face.left {
    transform: rotateY(-90deg) translateZ(100px);
    background-image: url('/static/images/logo.jpeg'), linear-gradient(45deg, #f72585, #7209b7);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.face.top {
    transform: rotateX(90deg) translateZ(100px);
    background-image: url('/static/images/logo.jpeg'), linear-gradient(45deg, #ffd60a, #ff8500);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
    background-image: url('/static/images/logo.jpeg'), linear-gradient(45deg, #06ffa5, #00b4d8);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Docs page sidebar enhancements */
#sidebar {
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    width: auto !important;
    float: none !important;
    margin-right: 0 !important;
}

#sidebar h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

#sidebar ul.components {
    list-style: none;
    padding: 0;
}

#sidebar ul.components li {
    margin-bottom: 10px;
}

#sidebar ul.components li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#sidebar ul.components li a:hover {
    background-color: var(--accent-color);
    color: white;
}

#content {
    margin-left: 0 !important;
}

/* Docs page additional styles */
.docs-page {
    padding: 20px;
    padding-top: 80px;
}

@media (max-width: 768px) {
    .docs-page {
        padding-top: 100px;
    }
}

.search-container {
    margin-bottom: 20px;
}

.copy-button {
    background-color: #f0f0f0;
    border: none;
    color: #333;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: #e0e0e0;
}

/* Rounded corners for code containers */
pre {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.copy-button {
    position: absolute;
    
    right: 5px;
    z-index: 1;
}

/* Enhance service card images */
.service-highlights img {
    width: 267px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}
.service-highlights2 img {
    width: 380px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    margin-top: 10px;
}

.service-highlights img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.service-highlights2 img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Fix spacing between buttons in call-to-action */
.call-to-action .btn {
    margin: 0 10px;
}

/* 3D Cube Timeline styles */
.timeline-cube {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: rotateCube 15s infinite linear;
}

.timeline-cube .face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.timeline-cube .face h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-cube .face p {
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Timeline card styles */
.timeline-card {
    background: var(--secondary-bg);
    color: var(--text-color);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.timeline-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.timeline-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #8b0000;
}

.timeline-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Additional Responsive Media Queries for previous_work.html */

/* Very Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .portfolio-hero {
        padding: 80px 0;
        min-height: 50vh;
    }
    .portfolio-hero .hero-title {
        font-size: 2rem;
    }
    .portfolio-hero .hero-subtitle {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 15px;
    }
    .stat-item h3 {
        font-size: 1.5rem;
    }
    .stat-item p {
        font-size: 0.9rem;
    }
    .portfolio-page {
        padding: 40px 0;
    }
    .portfolio-page h2, .portfolio-page h3 {
        font-size: 2rem;
    }
    .project-card {
        margin-bottom: 20px;
    }
    .project-header h3 {
        font-size: 1.3rem;
    }
    .project-content p {
        font-size: 0.9rem;
    }
    .project-features h5 {
        font-size: 1rem;
    }
    .project-features li {
        font-size: 0.9rem;
        padding: 5px 0;
    }
    .project-placeholder i {
        font-size: 3rem;
    }
    .portfolio-filter .nav-pills .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Tablet (min-width: 769px and max-width: 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-stats {
        gap: 30px;
    }
    .stat-item h3 {
        font-size: 2.2rem;
    }
    .portfolio-page h2 {
        font-size: 2.8rem;
    }
    .project-header {
        padding: 20px;
    }
    .project-content {
        padding: 20px;
    }
    .portfolio-filter .nav-pills {
        gap: 15px;
    }
    .portfolio-filter .nav-pills .nav-link {
        padding: 12px 20px;
    }
    .row.g-4 {
        gap: 2rem;
    }
}

/* Contact info single line */
.single-line {
    white-space: nowrap;
}

/* Fix email overflow on mobile */
@media (max-width: 768px) {
    .contact-page .single-line {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

