/* Global Styles */
:root {
    --primary-color: #00ff9d;
    --secondary-color: #00b8ff;
    --accent-color: #7000ff;
    --text-color: #ffffff;
    --text-muted: #a0aec0;
    --bg-dark: #000000;
    --bg-darker: #0a0a0a;
    --card-bg: #111111;
    --border-color: #222222;
    --gradient-1: linear-gradient(135deg, #00ff9d 0%, #00b8ff 100%);
    --gradient-2: linear-gradient(135deg, #7000ff 0%, #00ff9d 100%);
    --neon-shadow: 0 0 10px rgba(0, 255, 157, 0.5),
                   0 0 20px rgba(0, 255, 157, 0.3),
                   0 0 30px rgba(0, 255, 157, 0.2);
    --primary-rgb: 0, 255, 157;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-dark);
    padding-top: 76px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Enhanced Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 255, 157, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.navbar-brand:hover i {
    transform: rotate(180deg);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler:hover {
    transform: scale(1.1);
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 24px;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--gradient-1);
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: 8px;
}

.navbar-toggler-icon::after {
    bottom: 8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar-nav {
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 0.1;
    transform: scale(1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
        border: 1px solid var(--border-color);
    }

    .nav-item {
        text-align: center;
    }

    .nav-link {
        padding: 1rem !important;
        margin: 0.5rem 0;
    }

    .nav-link::before {
        border-radius: 0.5rem;
    }
}

/* Enhanced Hero Section */
.hero-section {
    padding: 60px 0 25px;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.1) 0%, rgba(112, 0, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 184, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%2300ff9d" opacity="0.05"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    position: relative;
    animation: slideUp 1s ease-out;
}

.hero-section .lead {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
    animation: slideUp 1s ease-out 0.2s backwards;
    max-width: 600px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 255, 157, 0.2));
}

/* Enhanced Services Section */
.services-section {
    padding: 25px 0;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.services-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.1), transparent 50%),
        radial-gradient(circle at bottom left, rgba(112, 0, 255, 0.1), transparent 50%);
    opacity: 0.5;
    z-index: -1;
}

.service-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(112, 0, 255, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.service-icon i {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--gradient-1);
}

.service-card:hover .service-icon i {
    -webkit-text-fill-color: var(--bg-dark);
    transform: scale(1.1);
}

.service-title {
    color: var(--primary);
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-description {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-features li {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    font-size: 0.95rem;
}

.service-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--accent);
}

.service-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .services-section {
        padding: 30px 0;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    .service-title {
        font-size: 1.3rem;
    }
}

/* About Section */
.about-section {
    padding: 40px 0;
    background: var(--bg-darker);
}

.about-section img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.about-section img:hover {
    transform: scale(1.02);
}

#about h3 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

#about p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Contact Section */
#contact {
    background-color: var(--bg-darker);
    padding: 100px 0;
    position: relative;
}

/* Enhanced Form Controls */
.form-control {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 1.2rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.form-control.is-valid {
    border-color: var(--primary-color);
    background-image: none;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Enhanced Buttons */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--neon-shadow);
}

/* Form Loading State */
.loading .form-control,
.loading .btn {
    pointer-events: none;
    opacity: 0.7;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(0, 255, 157, 0.1);
    color: var(--primary-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Spinner */
.spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em;
}

/* Enhanced Footer */
footer {
    background-color: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-1);
    opacity: 0.2;
}

.footer-top {
    padding: 40px 0 20px;
    position: relative;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.footer-brand:hover i {
    transform: rotate(180deg);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    position: relative;
    color: var(--text-color);
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-1);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a i {
    font-size: 0.8rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--gradient-1);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: var(--neon-shadow);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background: var(--gradient-1);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.contact-item h6 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
}

.contact-item p,
.contact-item a {
    margin: 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom p {
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .footer-widget {
        text-align: center;
    }

    .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-info {
        align-items: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

/* Enhanced Stats Section */
.stats-section {
    background: var(--bg-darker);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    margin: 1rem 0;
    border-radius: 12px;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: rgba(17, 17, 17, 0.7);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), transparent);
    pointer-events: none;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-label {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.stat-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .stats-section {
        padding: 2rem 0;
    }

    .stat-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 5px;
    border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-2);
}

/* Glass Effect */
.glass-effect {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 255, 157, 0.1);
}

/* Neon Text Effect */
.neon-text {
    text-shadow: var(--neon-shadow);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-section .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        margin-top: 3rem;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-primary {
        width: 100%;
        margin-bottom: 1rem;
    }

    .btn-outline-light {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .portfolio-item {
        margin-bottom: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: var(--neon-shadow);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced Portfolio Section */
.portfolio-section {
    padding: 40px 0;
    background: var(--bg-darker);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 255, 157, 0.2), rgba(112, 0, 255, 0.2));
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--neon-shadow);
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 2rem;
    color: var(--text-color);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.portfolio-overlay p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--gradient-1);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
    z-index: 2;
}

.portfolio-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: var(--bg-dark);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-2);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top:hover::before {
    opacity: 1;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-shadow);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Enhanced Scroll Animations */
.fade-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-scroll.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Compact Section Spacing */
section {
    padding: 40px 0;
}

.hero-section {
    padding: 80px 0 40px;
    min-height: auto;
}

.stats-section {
    padding: 30px 0;
    margin: 0;
}

.services-section {
    padding: 40px 0;
}

.portfolio-section {
    padding: 40px 0;
}

.about-section {
    padding: 40px 0;
}

/* Compact Component Spacing */
.section-title {
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.row {
    --bs-gutter-y: 1rem;
}

.service-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.service-icon {
    margin-bottom: 1rem;
}

.service-title {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
}

.service-description {
    margin-bottom: 1rem;
}

.portfolio-item {
    margin-bottom: 1rem;
}

.stat-item {
    padding: 1.5rem 1rem;
}

.footer-top {
    padding: 40px 0 20px;
}

.footer-bottom {
    padding: 15px 0;
}

.contact-item {
    margin-bottom: 1rem;
}

/* Adjust spacing for mobile */
@media (max-width: 768px) {
    section {
        padding: 30px 0;
    }

    .hero-section {
        padding: 60px 0 30px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .stat-item {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Adjust container padding */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Service Features List */
.service-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Tech Stack Text */
.tech-stack-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.tech-stack-text span {
    font-weight: 500;
}

/* Stats Subtitle */
.stat-subtitle {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.stat-item:hover .stat-subtitle {
    color: var(--primary-color);
}

/* Section Description */
.section-description {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Enhanced Section Title Spacing */
.section-title {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
}

/* Adjust text colors for better visibility */
.text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Compact spacing adjustments */
section {
    padding: 20px 0;
}

.section-spacing {
    margin-bottom: 1.5rem;
}

.row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* Enhanced card spacing */
.service-card {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    height: 100%;
}

.service-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Portfolio spacing */
.portfolio-section .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.portfolio-item {
    margin-bottom: 0.75rem;
}

/* Stats section adjustments */
.stats-section {
    padding: 1.5rem 0;
    margin: 0.75rem 0;
}

.stat-item {
    padding: 1rem;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
} 