/* Base Variables */
:root {
    --primary: #7928CA;
    --secondary: #00D4FF;
    --accent: #FF4D4D;
    --dark: #0F0F0F;
    --darker: #070707;
    --light: #F8F8F8;
    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --font-main: 'Quicksand', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Header */
header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(121, 40, 202, 0.2);
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
}

.logo-shape {
    fill: var(--primary);
    stroke: var(--secondary);
    stroke-width: 2;
}

.logo-text {
    fill: var(--text);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: bold;
}

h1 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0;
}

h1 span {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient);
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary);
}

.main-nav a:hover:before {
    width: 100%;
}

.nav-cta {
    background: var(--gradient);
    color: var(--dark) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.nav-cta:before {
    display: none;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    padding: 0 1.5rem;
    min-width: 300px;
    z-index: 2;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-content h2 span {
    display: block;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: var(--dark);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(121, 40, 202, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(121, 40, 202, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(121, 40, 202, 0);
    }
}

.tech-badge {
    display: flex;
    align-items: center;
    background: rgba(121, 40, 202, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(121, 40, 202, 0.3);
}

.badge-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.badge-bg {
    fill: rgba(0, 212, 255, 0.2);
    stroke: var(--secondary);
    stroke-width: 1;
}

.badge-check {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 2;
}

.hero-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.glow-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(121, 40, 202, 0.3) 0%, rgba(121, 40, 202, 0) 70%);
    filter: blur(30px);
    border-radius: 50%;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.tech-graphic {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.tech-circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    animation: circleAnim 3s ease forwards;
}

@keyframes circleAnim {
    to {
        stroke-dashoffset: 0;
    }
}

.tech-shape {
    fill: rgba(0, 212, 255, 0.1);
    stroke: var(--secondary);
    stroke-width: 2;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform-origin: center;
        transform: rotate(0deg);
    }
    to {
        transform-origin: center;
        transform: rotate(360deg);
    }
}

.tech-core {
    fill: var(--primary);
    opacity: 0.8;
}

.tech-text {
    fill: var(--text);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: bold;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-header h2 span {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.section-header h2 span:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.about-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 0 1.5rem;
}

.about-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: linear-gradient(145deg, #131313, #0a0a0a);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

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

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

.about-card:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient);
    transition: height 0.5s ease;
}

.about-card:hover:after {
    height: 100%;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.icon-bg {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
}

.icon-path {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 2;
}

.icon-detail {
    fill: var(--secondary);
}

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

.about-card p {
    color: var(--text-secondary);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: #0a0a0a;
}

.section-header.alt h2 span:after {
    background: var(--accent);
}

.feature-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.feature-item {
    display: flex;
    margin-bottom: 2.5rem;
    position: relative;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    flex: 0 0 60px;
    margin-right: 1.5rem;
}

.feature-icon-bg {
    fill: rgba(121, 40, 202, 0.1);
    stroke: var(--primary);
    stroke-width: 1;
}

.feature-icon-detail {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 2;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-secondary);
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.gallery-content {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.ai-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--text);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

.gallery-svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-bg {
    fill: #131313;
}

.gallery-shape {
    fill: rgba(0, 212, 255, 0.1);
    stroke: var(--secondary);
    stroke-width: 2;
}

.gallery-detail {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 7, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item:hover .gallery-svg {
    transform: scale(1.1);
}

.gallery-overlay p {
    color: var(--text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.view-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--text);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.gallery-cta {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(121, 40, 202, 0.1);
    border-radius: 10px;
    margin: 0 1.5rem;
}

.gallery-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.gallery-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    text-align: center;
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.cta-section h2 span {
    color: var(--accent);
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: var(--darker);
    border-top: 1px solid rgba(121, 40, 202, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.logo.small {
    width: 30px;
    height: 30px;
    margin-right: 0.5rem;
}

.footer-brand h3 {
    font-size: 1.2rem;
    margin: 0;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-nav h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: var(--text-secondary);
}

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

.copyright {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.copyright p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 0 2rem;
    }
    
    .hero-content, .hero-visual {
        flex: 100%;
    }
    
    .hero-content {
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        max-width: 320px;
        background: var(--darker);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    nav.active {
        right: 0;
    }
    
    .main-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav li {
        margin: 0;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .about-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .about-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}
