:root {
    /* Light Theme */
    --primary-color: #7c4dff;
    --secondary-color: #b388ff;
    --accent-color: #651fff;
    --text-color: #333;
    --text-color-light: #666;
    --bg-color: #ffffff;
    --light-bg: #f5f5f5;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-text: #333;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --dark-purple: #4a148c;
    --white: #ffffff;
}

[data-theme="dark"] {
    /* Dark Theme */
    --primary-color: #9d6eff;
    --secondary-color: #b388ff;
    --accent-color: #7c4dff;
    --text-color: #e0e0e0;
    --text-color-light: #a0a0a0;
    --bg-color: #121212;
    --light-bg: #1e1e1e;
    --card-bg: #242424;
    --nav-bg: rgba(18, 18, 18, 0.95);
    --nav-text: var(--text-color);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --dark-purple: #4a148c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Mono', monospace;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    width: 100%;
    background: var(--dark-purple);
    color: var(--white);
    padding: 2rem 0;
}


/* Navigation */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #7c4dff;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-text {
    font-size: 1.8rem;
    line-height: 1;
    color: #7c4dff;
}

.logo-subtext {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

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

.nav-link:hover,
.nav-link.active {
    color: #7c4dff;
}

.nav-cta {
    background: #7c4dff;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
    background: #651fff;
}


/* Mobile Menu Button */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    position: relative;
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.mobile-menu-btn.active .menu-icon {
    background: transparent;
}

.mobile-menu-btn.active .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .menu-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}


/* Navigation Scroll Effect */

nav.scrolled {
    background: var(--nav-bg);
    box-shadow: 0 2px 20px var(--shadow-color);
}

[data-theme="dark"] nav.scrolled {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}


/* Mobile Navigation */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--nav-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1001;
        transition: all 0.3s;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    .nav-link {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
        color: #333;
    }
    .nav-cta {
        margin-top: 2rem;
        width: 80%;
        text-align: center;
        font-size: 1.2rem;
    }
    body.menu-open {
        overflow: hidden;
    }
}


/* Sections */

section {
    padding: 5rem 2rem;
}

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


/* Hero Section */

#home {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-purple) 100%);
}

.home-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.95) 0%, rgba(74, 20, 140, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 4rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-top: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-button.primary {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
    background: #ffffff;
    color: var(--accent-color);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    opacity: 0.9;
    cursor: pointer;
    animation: bounce 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: #ffffff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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


/* Responsive Design for Home Section */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text {
        margin: 0 auto;
    }
    .cta-buttons {
        justify-content: center;
    }
    .hero-stats {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 2rem 7rem 2rem;
    }
    .hero-stats {
        margin-bottom: 5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-bottom: 7rem;
    }
}

#services {
    padding: 1rem;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding-left: 1rem;
}

.section-subtitle::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0;
    position: relative;
    display: inline-block;
    border: none;
}

.section-title::after {
    display: none;
}

.section-description {
    width: 100%;
    color: var(--text-color-light);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-purple) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.service-card p {
    color: var(--text-color-light);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.service-features span {
    background: rgba(124, 77, 255, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.service-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    background: rgba(124, 77, 255, 0.08);
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

.service-cta i {
    transition: transform 0.3s ease;
}

.service-cta:hover i {
    transform: translateX(5px);
}


/* Service Card Animations */

.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Design for Services Section */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .service-card {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 2px 8px var(--shadow-color);
        padding: 0.75rem 1rem;
        margin: 0;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    .service-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.5rem;
    }
    .service-icon i {
        font-size: 1.1rem;
    }
    .service-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }
    .service-card p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    .service-features {
        gap: 0.15rem;
        margin-bottom: 0.5rem;
    }
    .service-features span {
        font-size: 0.75rem;
        padding: 0.18rem 0.5rem;
        border-radius: 12px;
    }
    .service-cta {
        width: 100%;
        font-size: 1rem;
        padding: 0.7rem 0;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 0.5rem 0.5rem;
        border-radius: 8px;
    }
    .service-features span {
        font-size: 0.7rem;
        padding: 0.15rem 0.35rem;
    }
}


/* About Section Layout Fix */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.about-media {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.about-features {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-media {
        order: -1;
    }
}

@media (max-width: 600px) {
    .about-content {
        gap: 1.2rem;
    }
    .about-features {
        gap: 1rem;
    }
}


/* About Section */

#about {
    padding: 3rem 1rem 3rem 1rem;
    background: var(--bg-color);
    overflow: hidden;
}

.about-description {
    color: var(--text-color);
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-features {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    background: rgba(124, 77, 255, 0.05);
    transform: translateX(5px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.feature-text h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-text p {
    color: var(--text-color-light);
    font-size: 0.95rem;
}

.about-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
    border: none;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.2);
}


/* Dark mode button styles */

[data-theme="dark"] .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}


/* Responsive button styles */

@media (max-width: 768px) {
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    .about-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .about-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

.about-media {
    position: relative;
}

.about-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(124, 77, 255, 0.3);
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-stats .stat-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.about-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about-stats .stat-label {
    color: var(--text-color-light);
    font-size: 0.9rem;
}


/* Responsive Design for About Section */

@media (max-width: 1024px) {
    .about-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-media {
        order: -1;
    }
    .experience-badge {
        left: 20px;
    }
    .about-cta {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}


/* Contact Section Styles */

#contact {
    padding: 1rem;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-purple) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.contact-card:hover::before {
    opacity: 0.02;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: rgba(124, 77, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.contact-card:hover .contact-icon i {
    color: var(--white);
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.contact-card p {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-cta {
    text-align: center;
    margin: 1rem;
}

.contact-cta p {
    font-size: 1.2rem;
    color: var(--text-color);
}

.contact-address {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-address:hover {
    transform: translateY(-5px);
}

.address-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
}

.address-text i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.address-text span {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .contact-address {
        padding: 0.8rem 1.5rem;
    }
    .address-text {
        gap: 0.5rem;
    }
    .address-text i {
        font-size: 1.2rem;
    }
    .address-text span {
        font-size: 1rem;
    }
}

.location-info {
    display: none;
    /* Hide the floating address */
}

.contact-address {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.contact-address p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-address i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.address-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}


/* Responsive Design for Contact Section */

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .contact-card {
        background: var(--card-bg);
        padding: 2rem;
        border-radius: 15px;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px var(--shadow-color);
    }
    .contact-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1.5rem;
    }
    .contact-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--text-color);
    }
    .contact-card p {
        font-size: 1rem;
        color: var(--text-color-light);
        margin-bottom: 1rem;
    }
    .contact-link {
        font-size: 1.1rem;
        color: var(--primary-color);
        text-decoration: none;
        display: inline-block;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    .contact-cta {
        text-align: center;
        margin: 2rem 0;
    }
    .contact-cta p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        color: var(--text-color);
    }
    .contact-address {
        background: var(--card-bg);
        padding: 1.5rem;
        border-radius: 12px;
        margin: 0;
        box-shadow: 0 4px 15px var(--shadow-color);
        border: 1px solid var(--border-color);
    }
    .address-text {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        color: var(--text-color);
    }
    .address-text i {
        font-size: 1.2rem;
        color: var(--primary-color);
    }
    .address-text span {
        font-size: 1rem;
        line-height: 1.4;
    }
}


/* Footer */

footer {
    background: var(--dark-purple);
    color: var(--white);
    padding: 2rem 0;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-icon {
    color: var(--white);
}

.footer-social .social-icon:hover {
    color: var(--secondary-color);
}


/* Responsive Design */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


/* Service Modal Styles */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    margin-top: 1rem;
}

.modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-details {
    display: grid;
    gap: 1.5rem;
}

.service-package {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.service-package h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-package ul {
    list-style-type: none;
    padding-left: 0;
}

.service-package li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-package li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.service-package .price {
    font-weight: 600;
    color: var(--white);
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
}


/* Theme Toggle Button */

.theme-toggle {
    background: #ffffff;
    border: 2px solid #7c4dff;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #7c4dff;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: #7c4dff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 77, 255, 0.3);
}

.theme-toggle i {
    position: absolute;
    transition: all 0.3s ease;
}

.light-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.dark-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .light-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .dark-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}


/* Make sure the toggle is visible on mobile */

@media (max-width: 768px) {
    .nav-right {
        gap: 1rem;
    }
    .theme-toggle {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
        font-size: 1rem;
    }
}


/* Update existing styles for dark mode compatibility */

.section-title,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Mono', monospace;
    color: var(--text-color);
}

.service-card,
.about-card,
.contact-card {
    background: var(--card-bg);
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.nav-link {
    color: var(--nav-text);
}

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


/* Section Backgrounds */

#services,
#contact {
    background-color: var(-bg-color);
}

#about {
    background: var(--bg-color);
    padding: 3rem 1rem 3rem 1rem;
}


/* Card and Container Backgrounds */

.service-card,
.contact-card,
.about-stats .stat-item {
    background: var(--card-bg);
}


/* Text Colors */

p {
    color: #ffffff;
}

.section-description {
    color: var(--text-color-light);
}


/* Transitions for theme switching */

.service-card,
.contact-card,
.about-stats .stat-item,
.nav-link,
p,
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.section-description,
.feature-text p,
.contact-link,
.social-icon,
.btn {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}


/* Ensure smooth transitions */

body,
nav,
.service-card,
.contact-card,
.about-stats .stat-item,
.nav-link,
p,
h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.theme-toggle,
.feature-item,
.contact-link,
.logo-text,
.logo-subtext {
    transition: all 0.3s ease;
}


/* Update dark mode specific navigation styles */

[data-theme="dark"] nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .logo-text {
    color: var(--primary-color);
}

[data-theme="dark"] .logo-subtext {
    color: #000000;
}

[data-theme="dark"] .nav-link {
    color: var(--nav-text);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--primary-color);
}

[data-theme="dark"] .menu-icon,
[data-theme="dark"] .menu-icon::before,
[data-theme="dark"] .menu-icon::after {
    background: var(--nav-text);
}


/* Enhanced Mobile Responsiveness */


/* Base responsive adjustments */

@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
    .hero-content {
        gap: 2rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    /* Typography adjustments */
    .section-title {
        font-size: 2.2rem;
    }
    .hero-text h1 {
        font-size: 2.8rem;
    }
    /* Layout adjustments */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-media {
        order: -1;
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navigation improvements */
    .nav-container {
        padding: 1rem;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        padding: 2rem;
        z-index: 1000;
    }
    .nav-links.active {
        right: 0;
    }
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    /* Hero section adjustments */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 2rem 7rem 2rem;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text p {
        font-size: 1.1rem;
    }
    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    /* Services section adjustments */
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 1.5rem;
    }
    /* About section improvements */
    .about-features {
        grid-template-columns: 1fr;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
    .about-cta {
        flex-direction: column;
        gap: 1rem;
    }
    /* Contact section refinements */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-card {
        padding: 1.5rem;
    }
    .contact-address {
        width: 100%;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* Further refinements for smaller devices */
    section {
        padding: 3rem 1rem;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .service-features {
        flex-wrap: wrap;
    }
    .service-features span {
        font-size: 0.8rem;
    }
    .about-image-container {
        margin: 0 -1rem;
    }
    .experience-badge {
        padding: 0.8rem;
        right: 1rem;
        bottom: 1rem;
    }
    .experience-badge .years {
        font-size: 1.5rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}


/* Animation Improvements for Mobile */

@media (max-width: 768px) {
    .animate-text {
        animation-duration: 0.5s;
    }
    .service-card,
    .contact-card {
        transform: none;
        transition: transform 0.3s ease;
    }
    .service-card:hover,
    .contact-card:hover {
        transform: translateY(-5px);
    }
}


/* Touch Device Optimizations */

@media (hover: none) {
    .nav-link::after {
        display: none;
    }
    .service-card:hover,
    .contact-card:hover,
    .feature-item:hover {
        transform: none;
        box-shadow: var(--shadow-color);
    }
    .btn:hover,
    .nav-cta:hover {
        transform: none;
    }
}


/* Landscape Mode Optimizations */

@media (max-height: 600px) and (orientation: landscape) {
    #home {
        min-height: auto;
        padding: 6rem 0;
    }
    .hero-content {
        gap: 2rem;
    }
    .nav-links {
        padding: 1rem;
        gap: 1rem;
    }
    .scroll-indicator {
        display: none;
    }
}


/* High-DPI Screen Optimizations */

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .service-icon,
    .feature-icon,
    .contact-icon {
        border: 0.5px solid var(--border-color);
    }
}


/* Dark Mode Transition Improvements */

.nav-container,
.hero-content,
.service-card,
.contact-card,
.about-content,
.feature-item,
.contact-address {
    transition: all 0.3s ease;
}


/* Loading State */

.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loaded {
    opacity: 1;
}


/* Update dark mode navigation variables */

[data-theme="dark"] {
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-text: #000000;
}


/* Ensure smooth transitions */

nav {
    transition: all 0.3s ease;
}


/* Navigation dark mode specific styles */

[data-theme="dark"] nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-link {
    color: var(--nav-text);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--primary-color);
}

[data-theme="dark"] .logo-text {
    color: var(--primary-color);
}

[data-theme="dark"] .logo-subtext {
    color: #000000;
}

[data-theme="dark"] .menu-icon,
[data-theme="dark"] .menu-icon::before,
[data-theme="dark"] .menu-icon::after {
    background: var(--nav-text);
}

[data-theme="dark"] .mobile-menu-btn.active .menu-icon {
    background: transparent;
}

[data-theme="dark"] .nav-links {
    border-color: var(--border-color);
}


/* Body styles when mobile menu is open */

body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    .mobile-menu-btn {
        display: block;
        margin-left: 1rem;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        padding: 2rem;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-link {
        font-size: 1.2rem;
        opacity: 0.9;
    }
    .nav-link:hover {
        opacity: 1;
    }
    .nav-cta {
        margin-top: 1rem;
    }
}


/* Dark mode specific styles for contact section */

[data-theme="dark"] .contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .contact-address {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}


/* Extra small devices */

@media (max-width: 480px) {
    .contact-card {
        padding: 1.5rem;
    }
    .contact-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    .contact-card h3 {
        font-size: 1.3rem;
    }
    .contact-card p {
        font-size: 0.9rem;
    }
    .contact-link {
        font-size: 1rem;
    }
    .contact-address {
        padding: 1.2rem;
    }
    .address-text {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .address-text i {
        font-size: 1.5rem;
    }
}


/* Navigation Styles */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
}


/* Contact Form Styles */

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px var(--shadow-color);
    max-width: 500px;
    margin: 0 auto 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .contact-form {
        padding: 1rem;
        border-radius: 10px;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
        padding: 0.6rem;
    }
}


/* Blog Section Styles */

#blog {
    padding: 3rem 0;
    background: var(--#121212);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(124, 77, 255, 0.15);
    transform: translateY(-6px) scale(1.02);
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.blog-date {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-color);
    margin-bottom: 1.2rem;
    flex: 1;
}

.blog-readmore {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    align-self: flex-start;
}

.blog-readmore:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .blog-card {
        padding: 1.2rem 0.8rem;
        border-radius: 10px;
    }
    .blog-title {
        font-size: 1.1rem;
    }
}


/* Testimonials Section Styles */

#testimonials {
    padding: 3rem 0;
    background: var(--bg-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s, transform 0.3s;
}

.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(124, 77, 255, 0.15);
    transform: translateY(-6px) scale(1.02);
}

.testimonial-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-card figcaption {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}


/* Portfolio Section Styles */

#portfolio {
    padding: 3rem 0;
    background: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-color);
    padding: 1.5rem 1.2rem 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s, transform 0.3s;
}

.portfolio-card:hover {
    box-shadow: 0 8px 32px rgba(124, 77, 255, 0.15);
    transform: translateY(-6px) scale(1.02);
}

.portfolio-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.portfolio-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.portfolio-desc {
    color: var(--text-color);
    margin-bottom: 1.2rem;
    flex: 1;
}

.portfolio-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

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

@media (max-width: 600px) {
    .testimonial-card,
    .portfolio-card {
        padding: 1.2rem 0.8rem;
        border-radius: 10px;
    }
    .portfolio-image {
        height: 120px;
    }
}


/* Portfolio Header Flex Alignment */

.portfolio-header-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.portfolio-header-flex .btn {
    margin-bottom: 0;
}

.portfolio-header-flex .section-header {
    flex: 1;
    text-align: center;
    margin: 0;
}

@media (max-width: 700px) {
    .portfolio-header-flex {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .portfolio-header-flex .section-header {
        text-align: center;
    }
}


/* About Page Styles */

#about-hero {
    padding: 120px 0 60px;
    background: var(--light-bg);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.founder-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px var(--shadow-color);
}

.founder-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.founder-card:hover .founder-image img {
    transform: scale(1.05);
}

.founder-info {
    padding: 1.5rem;
}

.founder-info h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.founder-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.founder-bio {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.founder-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.value-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-card p {
    color: var(--text-color-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .founders-grid {
        grid-template-columns: 1fr;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    .founder-image {
        height: 250px;
    }
}


/* Process Section Styles */

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.process-card:hover {
    transform: translateY(-5px);
}

.process-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    right: 1rem;
    line-height: 1;
}

.process-card h3 {
    color: var(--text-color);
    margin: 1rem 0;
    font-size: 1.3rem;
}

.process-card p {
    color: var(--text-color-light);
    line-height: 1.6;
}


/* CTA Section Styles */

#cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-purple) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-content .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.cta-content .btn-primary:hover {
    background: var(--white);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
    .cta-content p {
        font-size: 1.1rem;
    }
}


/* Products Page Styles */

.products-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 2rem;
}

.products-description {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-features {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-cta {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Mate9 Product Page Styles */

.mate9-hero {
    background: linear-gradient(135deg, #7c4dff 0%, #121212 100%);
    color: #fff;
    text-align: left;
    padding-left: 10%;
    padding-right: 10%;
}

.mate9-logo {
    width: 80px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(124, 77, 255, 0.15);
}

.mate9-hero-content h1 {
    font-size: 1rem;
    line-height: 1;
    padding-top: 1rem;
}

.mate9-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.mate9-cta-btn {
    background: #fff;
    color: #7c4dff;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
    margin-top: 1rem;
}

.mate9-cta-btn:hover {
    background: #b388ff;
    color: #fff;
}

.mate9-section-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.mate9-problem {
    background: var(--light-bg);
    padding: 3rem 0;
}

.mate9-problem-text {
    flex: 1;
    min-width: 250px;
}

.mate9-problem-img {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.mate9-features {
    background: var(--bg-color);
    padding: 3rem;
}

.mate9-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 4fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.mate9-feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.mate9-demo {
    background: var(--light-bg);
    padding: 3rem 0;
}

.mate9-demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.mate9-demo-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.mate9-demo-item img {
    width: 100%;
    max-width: 260px;
    margin-bottom: 0.7rem;
    border-radius: 8px;
    background: #f5f5f5;
}

.mate9-benefits {
    background: var(--bg-color);
    padding: 3rem 0;
}

.mate9-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mate9-benefit-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: left;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.mate9-benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
}

.mate9-why {
    background: var(--light-bg);
    padding: 3rem 0;
    margin-top: 1rem;
}

.mate9-why-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.mate9-why-text {
    flex: 2;
    padding: 1rem;
    margin-bottom: 1rem;
    min-width: 250px;
}

.mate9-why-img {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.mate9-cta {
    background: linear-gradient(135deg, #7c4dff 0%, #121212 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 2rem 2rem 2rem;
}

.mate9-cta-social {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.mate9-cta-hashtag {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #b388ff;
}

@media (max-width: 900px) {
    .mate9-section-flex,
    .mate9-why-flex {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }
    .mate9-problem-text {
        padding-left: 1rem;
        font-size: 0.8rem;
    }
    .mate9-why-text {
        padding-left: 1rem;
        font-size: 0.8rem;
    }
    .mate9-get-started-text {
        padding-left: 1rem;
        font-size: 0.8rem;
    }
    .mate9-why-img,
    .mate9-problem-img {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .mate9-hero-content h1 {
        font-size: 1.5rem;
    }
    .mate9-hero-content p {
        font-size: 0.8rem;
    }
    .mate9-hero {
        padding: 2rem 0.5rem 1rem 0.5rem;
    }
    .mate9-cta {
        padding: 2rem 0.5rem 1rem 0.5rem;
    }
    .mate9-feature-card,
    .mate9-benefit-card {
        padding: 1rem 0.5rem;
        font-size: 0.8rem;
    }
}


/* Improved Mate9 Hero Section */

.mate9-hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: linear-gradient(135deg, #7c4dff 0%, #121212 100%);
    color: #fff;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 17%;
    padding-right: 17%;
}

.mate9-hero-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mate9-logo-large {
    width: 390px;
    height: 390px;
    object-fit: contain;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(124, 77, 255, 0.18);
}

.mate9-hero-content-right {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 260px;
}

.mate9-hero-content-right h1 {
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #fff;
}

.mate9-hero-desc {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .mate9-hero-flex {
        flex-direction: column;
        padding: 3rem 1rem 1.5rem 1rem;
        gap: 2rem;
        text-align: center;
    }
    .mate9-hero-content-right {
        align-items: center;
        line-height: 1.3;
    }
    .mate9-hero-content-right h1 {
        font-size: 2rem;
    }
    .mate9-logo-large {
        width: 200px;
        height: 200px;
        padding-top: 1rem;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.product-title {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.product-link {
    background: var(--primary-color);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

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

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .product-card {
        padding: 1rem;
    }
    .product-title {
        font-size: 1.5rem;
    }
    .product-image {
        max-width: 90%;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1rem;
    }
    .product-desc {
        font-size: 0.8rem;
    }
    .product-card {
        padding: 0.5rem;
    }
    .product-link {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
}