/* Base Styles */
:root {
    --primary: #6C63FF;
    --secondary: #4D44DB;
    --dark: #2F2E41;
    --light: #F8F9FA;
    --accent: #FF6584;
    --text: #333333;
    --text-light: #6C757D;
    --white: #FFFFFF;
    --black: #000000;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

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

section {
    padding: 80px 0;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark);
    position: relative;
}

.section-heading span {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background-color: rgba(47, 46, 65, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 15px 0;
    background-color: rgba(47, 46, 65, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    margin-right: 30px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    /* -webkit-background-clip: text; */
    -webkit-text-fill-color: transparent;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    margin-right: 25px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(47, 46, 65, 0.9), rgba(47, 46, 65, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-image-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid rgba(108, 99, 255, 0.2);
    box-shadow: 0 0 50px rgba(108, 99, 255, 0.3);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle-animation {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed var(--primary);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero .right {
    padding-left: 50px;
}

.typewriter-text {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    font-weight: 600;
    letter-spacing: 2px;
}

.typewriter-text::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--primary);
    bottom: -10px;
    left: 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.cta-buttons {
    margin-bottom: 40px;
}

.cta-buttons .btn {
    margin-right: 15px;
}

.social {
    display: flex;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down a {
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-image {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
    padding-left: 50px;
}

.about-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-content p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.skills {
    margin-bottom: 30px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    margin-bottom: 8px;
    font-weight: 600;
}

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

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    position: relative;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.about-buttons .btn {
    margin-right: 15px;
}

/* Services Section */
.services {
    background-color: var(--light);
}

.card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    perspective: 1000px;
    height: 300px;
}

.inner-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card.is-flipped .inner-card {
    transform: rotateY(180deg);
}

.front-card, .back-card {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 15px;
}

.front-card {
    background-color: var(--white);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.front-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.front-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.back-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: rotateY(180deg);
    padding: 30px;
}

.back-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.back-card ul {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
}

.back-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.back-card ul li i {
    position: absolute;
    left: 0;
    top: 5px;
}

/* Featured Apps Section */
.featured-apps {
    background-color: var(--white);
}

.app-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.app-card {
    display: flex;
    background-color: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.app-image {
    width: 250px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.app-details {
    flex: 1;
    padding: 30px;
}

.app-details h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.app-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.app-rating i {
    color: #FFC107;
    margin-right: 3px;
}

.app-rating span {
    margin-left: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.app-details p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.app-features span {
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.app-features i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.more-apps {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(77, 68, 219, 0.05));
    border-radius: 15px;
    border: 1px dashed var(--primary);
}

.more-apps h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.more-apps p {
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Portfolio Section */
.portfolio {
    background-color: var(--light);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

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

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
}

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

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

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

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-overlay p {
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.portfolio-link {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s, background-color 0.3s ease;
    text-decoration: none;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay a {
    transform: translateY(0);
}

.portfolio-link:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.info-item p {
    color: var(--text-light);
}

.contact-form {
    background-color: var(--light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo span {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    /* -webkit-background-clip: text; */
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.footer-links h4,
.footer-services h4,
.footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
}

.copyright span {
    color: var(--primary);
}

.back-to-top a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(108, 99, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero .left {
        margin-bottom: 50px;
    }
    
    .hero .right {
        padding-left: 0;
    }
    
    .about .container {
        flex-direction: column;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 50px;
    }
    
    .app-card {
        flex-direction: column;
    }
    
    .app-image {
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image-container {
        width: 250px;
        height: 250px;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .typewriter-text {
        font-size: 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .app-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}