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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #fefefe;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #6c63ff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.highlight {
    color: #6c63ff;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: rgba(108, 99, 255, 0.2);
    bottom: 5px;
    left: 0;
    z-index: -1;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #6c63ff;
    color: white;
}

.btn-primary:hover {
    background-color: #5a52d5;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    border-color: #6c63ff;
    color: #6c63ff;
    transform: translateY(-3px);
}

/* Logo Styles */
.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #222;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.logo span {
    color: #6c63ff;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: #6c63ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #6c63ff;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

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

/* Contact Button in Navigation - CORRECTED */
.contact-btn {
    background-color: #6c63ff;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #6c63ff;
    display: inline-block;
}

.contact-btn:hover {
    background-color: transparent;
    color: #6c63ff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

.contact-btn::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #6c63ff;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #222;
}

.hero-role {
    font-size: 32px;
    font-weight: 600;
    color: #555;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 500px;
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: 500px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #6c63ff;
    border-radius: 30px;
    top: 20px;
    right: -20px;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-size: 14px;
    color: #888;
    letter-spacing: 2px;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: #6c63ff;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 500px;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.about-text p {
    font-size: 17px;
    color: #666;
    margin-bottom: 30px;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 42px;
    font-weight: 800;
    color: #6c63ff;
    margin-bottom: 5px;
}

.stat p {
    font-size: 16px;
    color: #777;
    margin: 0;
}

.about-skills {
    margin-top: 40px;
}

.skill {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-header span {
    font-weight: 600;
    color: #333;
}

.skill-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: #6c63ff;
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

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

.service-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 28px;
    color: #6c63ff;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c63ff;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 25px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #6c63ff;
    color: white;
}

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

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(108, 99, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 30px;
}

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

.portfolio-info {
    text-align: center;
    color: white;
}

.portfolio-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 16px;
    opacity: 0.9;
}

.portfolio-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c63ff;
    text-decoration: none;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-link {
    transform: translateY(0);
    opacity: 1;
}

/* Testimonials Section */
.testimonials {
    background-color: #f9f9ff;
}

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

.testimonial-card {
    background-color: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.testimonial-content {
    margin-bottom: 40px;
}

.testimonial-content p {
    font-size: 20px;
    font-style: italic;
    color: #555;
    line-height: 1.8;
    position: relative;
    padding-left: 30px;
}

.testimonial-content p::before {
    content: '"';
    font-size: 80px;
    color: #6c63ff;
    opacity: 0.2;
    position: absolute;
    top: -30px;
    left: -10px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #222;
}

.author-info p {
    color: #777;
}

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

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    border-color: #6c63ff;
    color: #6c63ff;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #6c63ff;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
}

.contact-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
    color: #6c63ff;
}

.contact-details h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.contact-details p {
    color: #666;
    margin-bottom: 10px;
}

.email-link, .phone-link {
    display: inline-block;
    color: #6c63ff;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
    margin-top: 5px;
}

.contact-cta {
    background-color: #f9f9ff;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
}

.contact-cta h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.contact-cta p {
    color: #666;
    margin-bottom: 30px;
    font-size: 17px;
}

.contact-cta .btn {
    padding: 16px 40px;
    font-size: 18px;
}

.contact-cta .btn i {
    margin-right: 8px;
}

/* Footer */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand p {
    max-width: 400px;
    color: #aaa;
}

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

.footer-social a {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #6c63ff;
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 15px;
    color: #888;
}

.footer-bottom i {
    color: #ff6b6b;
    margin: 0 5px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #6c63ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

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

.back-to-top:hover {
    background-color: #5a52d5;
    transform: translateY(-5px);
}

/* Image Fallback Styles */
img:not([src]) {
    visibility: hidden;
}

img[src=""] {
    visibility: hidden;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .section-title {
        font-size: 40px;
    }
    
    .hero-container, .about-content {
        flex-direction: column;
        gap: 50px;
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .image-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-role {
        font-size: 26px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filter {
        flex-wrap: wrap;
    }
    
    .testimonial-card {
        padding: 30px;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .contact-btn {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .nav-menu {
        gap: 15px;
    }
}