:root {
    --primary-color: #5e17eb;
    --secondary-color: #131417;
    --accent-color: #63cdda;
    --text-color: #333;
    --light-color: #f4f4f4;
    --dark-color: #222;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    background: #16e000;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

section {
    padding: 5rem 0;
}

/* Navbar */
.navbar {
    background: var(--secondary-color);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: rgba(19, 20, 23, 0.9);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.navbar .logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-color) 50%, var(--light-color) 50%);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('') no-repeat center center/cover;
    opacity: 0.05;
}

.hero-content {
    display: flex;
    align-items: center;
}

.hero-text {
    flex: 1;
    color: white;
    padding-right: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text .btn {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-top: 0;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-text .highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInImage 2s ease forwards;
}

@keyframes fadeInImage {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-down i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    transform: translateX(-50%) translateY(-5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Section */
#about {
    background: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 2;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill {
    background: #f0f0f0;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}



.typewriter {
    position: relative;
    display: inline-block;
    border-right: 2px solid;
    /* overflow: hidden; */
    white-space: nowrap;
    animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: currentColor; }
}

/* Services Section */
#services {
    background: #f9f9f9;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-box p {
    color: #666;
}

/* Portfolio Section */
#portfolio {
    background: white;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    margin: 0 10px 10px 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 250px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(94, 23, 235, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 1rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.portfolio-overlay .btn {
    margin-top: 1.5rem;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.2s;
    background: white;
    color: var(--primary-color);
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .btn {
    transform: translateY(0);
}

/* Testimonials Section */
#testimonials {
    background: #f9f9f9;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: none;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-content {
    text-align: center;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 6rem;
    position: absolute;
    top: -70px;
    left: 0;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.author-info p {
    color: #777;
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.control-btn {
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: white;
    bottom: 0;
    left: 0;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info-list i {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    background: white;
    color: var(--primary-color);
}

.contact-form .btn:hover {
    background: var(--accent-color);
    color: var(--dark-color);
}

.social-links {
    display: flex;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    transition: var(--transition);
}

.social-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-text {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 1.5rem;
}

.footer-text p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.9rem;
    color: #999;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #4a00e0;
    transform: translateY(-5px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    max-width: 900px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
}

.modal-body {
    padding: 3rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.modal-description {
    margin-bottom: 2rem;
    color: #555;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 2rem;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.detail-item p {
    color: #666;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        order: 2;
    }

    .skills {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #hero {
        background: var(--secondary-color);
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-top: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    .testimonial {
        padding: 2rem 1.5rem;
    }

    .service-box {
        margin-bottom: 1.5rem;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }

    .modal-details {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        margin: 0 5px 10px;
        padding: 5px 15px;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}