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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
}

::selection {
    background-color: rgba(147, 51, 234, 0.3);
    color: #ffffff;
}

*:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9333ea, #7c3aed);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a855f7, #8b5cf6);
}

/* Container */
.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, #c084fc, #a78bfa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.white-text {
    color: #ffffff;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    background: transparent;
}

#header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #c084fc, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
    padding: 0;
}

.nav-link:hover {
    color: #c084fc;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle .close-icon {
    display: none;
}

.mobile-menu-toggle.active .menu-icon {
    display: none;
}

.mobile-menu-toggle.active .close-icon {
    display: block;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(147, 51, 234, 0.3);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile .nav-link {
    text-align: left;
}

/* Button Styles */
.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.375rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    min-height: 44px;
    box-sizing: border-box;
    line-height: 1.5;
    vertical-align: middle;
}

.btn:active,
a.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(to right, #9333ea, #7c3aed);
    color: #ffffff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(to right, #7e22ce, #6d28d9);
}

.btn-outline {
    background: transparent;
    color: #c084fc;
    border: 1px solid #9333ea;
}

.btn-outline:hover {
    background: rgba(147, 51, 234, 0.1);
}

.btn-lg {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    min-height: 56px;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1508361727343-ca787442dcd7?crop=entropy&cs=srgb&fm=jpg&ixid=M3w4NjA1NzV8MHwxfHNlYXJjaHwxfHxtb2Rlcm4lMjB0ZWNobm9sb2d5fGVufDB8fHx8MTc2OTMyMDg5N3ww&ixlib=rb-4.1.0&q=85');
    background-size: cover;
    background-position: center;
}

.hero-overlay-1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 1));
}

.hero-overlay-2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(88, 28, 135, 0.2), rgba(91, 33, 182, 0.2));
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 5rem;
}

.hero-text {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.hero-buttons .btn {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator-container {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid #c084fc;
    border-radius: 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
}

.scroll-indicator-dot {
    width: 0.25rem;
    height: 0.75rem;
    background: #c084fc;
    border-radius: 0.25rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(0.5rem);
    }
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: #9ca3af;
    max-width: 42rem;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    background: linear-gradient(to bottom, #000000, #111827);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.service-card:hover {
    border-color: rgba(147, 51, 234, 0.5);
    transform: scale(1.05);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: linear-gradient(to bottom right, #9333ea, #7c3aed);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(to bottom right, #a855f7, #8b5cf6);
}

.service-icon svg {
    color: #ffffff;
}

.service-title {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-description {
    color: #9ca3af;
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-section {
    background: linear-gradient(to bottom, #111827, #000000);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.why-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(to bottom right, rgba(147, 51, 234, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.why-card:hover .why-icon {
    border-color: #9333ea;
}

.why-icon svg {
    color: #c084fc;
    transition: color 0.3s ease;
}

.why-card:hover .why-icon svg {
    color: #d8b4fe;
}

.why-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.why-description {
    color: #9ca3af;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-section {
    background: #000000;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1f2937;
    color: #9ca3af;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background: #374151;
}

.filter-btn.active {
    background: linear-gradient(to right, #9333ea, #7c3aed);
    color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #1f2937;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

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

.portfolio-info {
    padding: 1.5rem;
    width: 100%;
}

.portfolio-category {
    color: #c084fc;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.portfolio-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(to bottom, #000000, #111827);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(147, 51, 234, 0.5);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    color: #c084fc;
}

.testimonial-text {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    padding-top: 1rem;
}

.author-name {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-company {
    color: #c084fc;
    font-size: 0.875rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(to bottom, #111827, #000000);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 80rem;
    margin: 0 auto;
}

.contact-form-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #111827;
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input {
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9333ea;
}

.form-group textarea {
    resize: vertical;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    background: linear-gradient(to bottom right, rgba(147, 51, 234, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    color: #c084fc;
}

.info-label {
    color: #9ca3af;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.info-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-link:hover {
    color: #c084fc;
}

.newsletter-card {
    background: linear-gradient(to bottom right, rgba(88, 28, 135, 0.3), rgba(91, 33, 182, 0.3));
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.newsletter-text {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    background: #111827;
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    min-height: 44px;
    box-sizing: border-box;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #9333ea;
}

.newsletter-form .btn {
    width: 100%;
}

/* Footer */
.footer {
    background: #000000;
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #c084fc, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-text {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #9ca3af;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    font-size: 1rem;
}

.footer-link:hover {
    color: #c084fc;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(to bottom right, rgba(147, 51, 234, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #9333ea;
}

.social-link svg {
    color: #c084fc;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-contact-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: #c084fc;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-legal-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #c084fc;
}

.footer-bottom {
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: #9ca3af;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1f2937;
    border: 1px solid rgba(147, 51, 234, 0.5);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(200%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    max-width: 24rem;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-description {
    color: #d1d5db;
    font-size: 0.875rem;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-mobile {
        display: none !important;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: row;
        align-items: center;
    }
    
    .newsletter-form .btn {
        width: auto;
        flex-shrink: 0;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}