/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles and Variables */
:root {
    --dark-bg: #0c0c15;
    --darker-bg: #060611;
    --lighter-bg: #13131f;
    --primary: #8e44ad;
    --primary-light: #9b59b6;
    --primary-dark: #6c3483;
    --secondary: #3498db;
    --accent: #2ecc71;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --border-color: #2a2a2a;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --glow: 0 0 15px rgba(142, 68, 173, 0.5);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
}

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

section {
    padding: 100px 0;
    position: relative;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 14px 34px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transition: all 0.5s ease;
    z-index: -1;
    border-radius: 50px;
}

.btn:hover:before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 3px;
    background: var(--primary);
    bottom: -10px;
    left: 35%;
    border-radius: 3px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    margin-top: 25px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto;
    border-radius: 3px;
    position: relative;
}

.section-divider::before, 
.section-divider::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--primary-light);
    border-radius: 50%;
    top: -1px;
}

.section-divider::before {
    left: -10px;
}

.section-divider::after {
    right: -10px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(6, 6, 17, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    transition: var(--transition);
}

nav.scrolled {
    padding: 15px 0;
    background-color: rgba(6, 6, 17, 0.95);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
}

.s2 {
    color: var(--primary);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.s2::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: rgba(142, 68, 173, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 2s infinite;
}

.soft {
    color: white;
    font-weight: 800;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

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

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

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* About Hero Section */
.about-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(12, 12, 21, 0.9), rgba(142, 68, 173, 0.3));
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, var(--darker-bg) 120%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    animation: fadeInUp 1s ease-out;
}

/* Tech Animation Background */
.tech-animation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Binary Animation for Hero */
#binary-container-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    overflow: hidden;
}

.binary-code {
    position: absolute;
    font-family: monospace;
    font-size: 12px;
    color: var(--primary-light);
    opacity: 0.7;
    white-space: nowrap;
    animation: binary-fall linear infinite;
}

@keyframes binary-fall {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(1000px);
    }
}

/* About Content Section */
.about-content-section {
    background-color: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.about-content-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    border-top: 3px solid var(--primary);
    border-left: 3px solid var(--primary);
    z-index: 1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    border-bottom: 3px solid var(--primary);
    border-right: 3px solid var(--primary);
    z-index: 1;
}

.about-image img {
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    filter: brightness(0.9);
}

.about-image:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 3px;
    background: var(--primary);
    bottom: -10px;
    left: 0;
    border-radius: 3px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    position: relative;
}

/* Stats Section */
.stats-section {
    background-color: var(--lighter-bg);
    position: relative;
    overflow: hidden;
}

.stats-section::before,
.stats-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.stats-section::before {
    top: -150px;
    left: -150px;
}

.stats-section::after {
    bottom: -150px;
    right: -150px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background-color: rgba(19, 19, 31, 0.7);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    font-size: 16px;
    color: var(--text-muted);
    position: relative;
    display: inline-block;
}

.stat-label::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.stat-item:hover .stat-label::after {
    width: 50%;
}

/* Team Section */
.team-section {
    background-color: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%238e44ad' fill-opacity='0.03'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h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10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.team-member {
    text-align: center;
    padding: 20px;
    background: linear-gradient(145deg, rgba(19, 19, 31, 0.8), rgba(12, 12, 21, 0.8));
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(142, 68, 173, 0.1), transparent);
    transition: all 0.5s ease;
}

.team-member:hover::before {
    top: 100%;
    left: 100%;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.team-member img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
    transition: var(--transition);
    filter: grayscale(20%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.team-member:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.team-member h3 {
    font-size: 24px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.team-member h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.team-member:hover h3::after {
    width: 50%;
}

.team-member p {
    font-size: 16px;
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

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

.footer-logo .s2 {
    color: var(--primary);
    font-weight: 800;
}

.footer-logo .soft {
    color: white;
    font-weight: 800;
}

.footer-logo p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 15px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--primary);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.footer-column a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.footer-column a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.back-to-top:hover::before {
    opacity: 1;
}

.back-to-top i {
    position: relative;
    z-index: 1;
}

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

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

/* Keyframes for Animations */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .about-image::before,
    .about-image::after {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}