/* Variables */
:root {
    --primary-color: #8a2be2; /* Purple */
    --primary-light: #9d4eed; /* Lighter Purple */
    --primary-dark: #6a1cb2; /* Darker Purple */
    --secondary-color: #00ffff; /* Cyan */
    --secondary-light: #7fffff; /* Lighter Cyan */
    --dark-bg: #0a0a15;
    --darker-bg: #05050f;
    --light-bg: #131326;
    --card-bg: #0d0d1d;
    --dark-text: #333;
    --light-text: #fff;
    --gray-text: #b3b3b3;
    --border-color: rgba(138, 43, 226, 0.3);
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --purple-gradient: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--light-text);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--purple-gradient);
    color: var(--light-text);
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.button:hover::before {
    left: 100%;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-heading::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Header */
header {
    background-color: var(--darker-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 70px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.5));
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(138, 43, 226, 0.8));
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

/* Hero Section */
.hero {
    background: var(--darker-bg);
    color: var(--light-text);
    padding: 150px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--purple-gradient);
    opacity: 0.03;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 30px;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 60px;
    color: var(--gray-text);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-img {
    margin-top: 50px;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: all 0.5s ease;
    display: none; /* Hide the hero image to match the screenshot */
}

.hero-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.3);
}

/* Code Display in Hero */
.code-display {
    margin-top: 40px;
    max-width: 100%;
    overflow: auto;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
    z-index: 5;
}

.code-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}

.code-display pre {
    background-color: rgba(10, 10, 20, 0.8);
    border-radius: 10px;
    padding: 25px;
    margin: 0;
    overflow: auto;
    max-height: 360px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    position: relative;
}

.code-display pre::before {
    content: 'Nexurity Source Code';
    position: absolute;
    top: 5px;
    right: 15px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    color: var(--primary-light);
    opacity: 0.7;
}

.code-display code {
    color: #dcdcdc;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
}

/* Syntax highlighting for the code */
.code-display code .comment,
.code-display code ::selection {
    color: #608b4e;
}

.code-display code .string,
.code-display code [class*="string"] {
    color: #ce9178;
}

.code-display code .keyword,
.code-display code [class*="keyword"] {
    color: #569cd6;
}

.code-display code .function,
.code-display code [class*="function"] {
    color: #dcdcaa;
}

.code-display code .class,
.code-display code [class*="class"] {
    color: #4ec9b0;
}

.code-display code .number,
.code-display code [class*="number"] {
    color: #b5cea8;
}

.code-display code .operator,
.code-display code [class*="operator"] {
    color: #d4d4d4;
}

.code-display code .punctuation,
.code-display code [class*="punctuation"] {
    color: #d4d4d4;
}

.code-display code .constant,
.code-display code [class*="constant"] {
    color: #9cdcfe;
}

.code-display code .tag,
.code-display code [class*="tag"] {
    color: #569cd6;
}

.code-display code .attribute,
.code-display code [class*="attribute"] {
    color: #9cdcfe;
}

.code-display code .entity,
.code-display code [class*="entity"] {
    color: #569cd6;
}

.code-display code .namespace,
.code-display code [class*="namespace"] {
    color: #4ec9b0;
}

/* Apply specific styling to code elements */
.code-display code {
    color: #dcdcdc;
}

.code-display code span.comment {
    color: #608b4e;
}

.code-display code .highlight {
    color: var(--primary-light);
    font-weight: bold;
}

/* Simple syntax highlighting through specific terms */
.code-display code {
    color: #d4d4d4;
}

/* Comments */
.code-display code ::selection {
    background: var(--primary-dark);
    color: #fff;
}

/* Add a scanning effect */
@keyframes codeScan {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 0% 100%;
    }
}

.code-display pre {
    background-image: linear-gradient(transparent, transparent 50%, rgba(138, 43, 226, 0.05) 50%, transparent 51%);
    background-size: 100% 4em;
    animation: codeScan 60s linear infinite;
}

/* Features Section */
.features {
    padding: 120px 0;
    background-color: var(--darker-bg);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(138, 43, 226, 0.1), transparent 70%);
    pointer-events: none;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.4s ease;
    z-index: -1;
}

.feature-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.3);
}

.feature-item:hover::before {
    width: 100%;
    opacity: 0.05;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.feature-item p {
    color: var(--gray-text);
    line-height: 1.7;
}

/* Video Section */
.video {
    padding: 120px 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(138, 43, 226, 0.1), transparent 70%);
    pointer-events: none;
}

.video h2 {
    margin-bottom: 60px;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-size: 2.8rem;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.video-placeholder {
    background-color: rgba(0, 0, 0, 0.5);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.video-placeholder i {
    font-size: 6rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.7));
}

.video-placeholder i:hover {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* Technology Section */
.technology {
    padding: 120px 0;
    background-color: var(--darker-bg);
    position: relative;
}

.technology::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(138, 43, 226, 0.1), transparent 70%);
    pointer-events: none;
}

.technology h2 {
    text-align: center;
    margin-bottom: 20px;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin: 0 auto;
    width: 100%;
    font-size: 2.8rem;
}

.subtitle {
    text-align: center;
    margin-bottom: 80px;
    font-size: 1.2rem;
    color: var(--gray-text);
}

.tech-item {
    display: flex;
    align-items: center;
    margin-bottom: 120px;
    gap: 70px;
}

.tech-item:last-child {
    margin-bottom: 0;
}

.tech-item.reversed {
    flex-direction: row-reverse;
}

.tech-content {
    flex: 1;
}

.tech-content h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.tech-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.tech-item.reversed .tech-content h3::after {
    left: auto;
    right: 0;
}

.tech-content p {
    color: var(--gray-text);
    line-height: 1.8;
    font-size: 1.1rem;
}

.tech-image {
    flex: 1;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    overflow: hidden;
}

.tech-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(138, 43, 226, 0.25);
}

.tech-image img {
    border-radius: 10px;
    transition: all 0.5s ease;
}

.tech-image:hover img {
    transform: scale(1.03);
}

/* Pricing Section */
.pricing {
    padding: 120px 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(138, 43, 226, 0.1), transparent 70%);
    pointer-events: none;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 80px;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin: 0 auto 80px;
    width: 100%;
    font-size: 2.8rem;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.price-item {
    background-color: var(--card-bg);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.price-item::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: var(--purple-gradient);
    top: -90%;
    left: -25%;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
}

.price-item.featured {
    background: var(--card-bg);
    transform: scale(1.05);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary-color);
}

.price-item.featured::after {
    content: 'BEST VALUE';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-color);
    color: var(--light-text);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 40px;
    transform: rotate(45deg);
}

.price-item h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--light-text);
    position: relative;
    z-index: 1;
}

.price-item ul {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.price-item ul li {
    margin-bottom: 18px;
    position: relative;
    padding-left: 30px;
    color: var(--gray-text);
    text-align: left;
}

.price-item ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.price-item .button {
    width: 100%;
    position: relative;
    z-index: 1;
}

.price-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(138, 43, 226, 0.3);
}

.price-item:hover::before {
    opacity: 0.05;
    top: -50%;
}

.price-item.featured:hover {
    transform: scale(1.08) translateY(-15px);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    color: var(--gray-text);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    font-size: 1.1rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 992px) {
    .tech-item {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .tech-item.reversed {
        flex-direction: column;
    }

    .tech-content, .tech-image {
        width: 100%;
    }
    
    .tech-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .tech-item.reversed .tech-content h3::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .code-display pre {
        padding: 20px;
        max-height: 280px;
    }

    .code-display code {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 0 10px;
    }
    
    .section-heading h2, 
    .video h2, 
    .technology h2, 
    .pricing h2 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .price-item.featured {
        transform: scale(1);
    }

    .price-item.featured:hover {
        transform: translateY(-15px);
    }
    
    .feature-grid,
    .price-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-item,
    .price-item {
        padding: 30px 25px;
    }

    .code-display pre {
        padding: 15px;
        max-height: 240px;
    }

    .code-display code {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero {
        padding: 100px 0 80px;
    }
    
    .features,
    .video,
    .technology,
    .pricing {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-heading h2, 
    .video h2, 
    .technology h2, 
    .pricing h2 {
        font-size: 1.8rem;
    }
    
    .tech-content h3 {
        font-size: 1.6rem;
    }
    
    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .code-display pre {
        padding: 12px;
        max-height: 200px;
    }

    .code-display code {
        font-size: 10px;
    }
}

/* Security Visualization */
.security-visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border-radius: 20px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    transition: all 0.3s ease;
}

.security-visualization::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    animation: securityScan 3s infinite;
}

.security-visualization:hover {
    transform: scale(1.02);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.3);
}

.shield-container {
    position: relative;
    margin-bottom: 30px;
}

.shield-icon {
    font-size: 4rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    animation: shieldPulse 2s infinite;
}

.security-layers {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.layer {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: layerExpand 3s infinite;
}

.layer-1 {
    width: 80px;
    height: 80px;
    border-color: rgba(138, 43, 226, 0.6);
    animation-delay: 0s;
}

.layer-2 {
    width: 120px;
    height: 120px;
    border-color: rgba(138, 43, 226, 0.4);
    animation-delay: 0.5s;
}

.layer-3 {
    width: 160px;
    height: 160px;
    border-color: rgba(138, 43, 226, 0.2);
    animation-delay: 1s;
}

.security-text {
    text-align: center;
}

.security-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-text);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.status-bypassed {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff4444, #ff6666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: statusBlink 2s infinite;
}

@keyframes securityScan {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes layerExpand {
    0% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes statusBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Responsive adjustments for security visualization */
@media (max-width: 768px) {
    .security-visualization {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .shield-icon {
        font-size: 3rem;
    }
    
    .layer-1 { width: 60px; height: 60px; }
    .layer-2 { width: 90px; height: 90px; }
    .layer-3 { width: 120px; height: 120px; }
    
    .security-label {
        font-size: 1rem;
    }
    
    .status-bypassed {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .security-visualization {
        padding: 25px 15px;
        min-height: 200px;
    }
    
    .shield-icon {
        font-size: 2.5rem;
    }
    
    .layer-1 { width: 50px; height: 50px; }
    .layer-2 { width: 75px; height: 75px; }
    .layer-3 { width: 100px; height: 100px; }
    
    .security-label {
        font-size: 0.9rem;
    }
    
    .status-bypassed {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

/* Compiler Visualization */
.compiler-visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border-radius: 20px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    transition: all 0.3s ease;
}

.compiler-visualization:hover {
    transform: scale(1.02);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.3);
}

.compiler-core {
    position: relative;
    margin-bottom: 30px;
}

.core-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    position: relative;
    z-index: 2;
    animation: coreProcess 3s infinite;
}

.processing-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 4s linear infinite;
}

.ring-1 {
    width: 80px;
    height: 80px;
    border-color: rgba(0, 255, 255, 0.6);
    animation-delay: 0s;
}

.ring-2 {
    width: 120px;
    height: 120px;
    border-color: rgba(0, 255, 255, 0.4);
    animation-delay: 0.5s;
    animation-direction: reverse;
}

.ring-3 {
    width: 160px;
    height: 160px;
    border-color: rgba(0, 255, 255, 0.2);
    animation-delay: 1s;
}

.code-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stream {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--secondary-color), transparent);
    animation: streamFlow 2s infinite;
}

.stream-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.stream-2 {
    top: 30%;
    right: 15%;
    animation-delay: 0.5s;
}

.stream-3 {
    bottom: 25%;
    left: 20%;
    animation-delay: 1s;
}

.stream-4 {
    bottom: 35%;
    right: 10%;
    animation-delay: 1.5s;
}

.compiler-text {
    text-align: center;
}

.process-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-text);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.status-active {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ffff, #7fffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: statusPulse 2s infinite;
}

/* Transformation Visualization */
.transformation-visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border-radius: 20px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    transition: all 0.3s ease;
}

.transformation-visualization:hover {
    transform: scale(1.02);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.3);
}

.code-matrix {
    margin-bottom: 30px;
}

.matrix-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

.code-block {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.code-block.original {
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.3), rgba(138, 43, 226, 0.5));
    animation: codeFlicker 2s infinite;
}

.code-block.transformed {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.3), rgba(0, 255, 255, 0.5));
    animation: codeTransform 2s infinite;
    animation-delay: 0.5s;
}

.transform-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: arrowPulse 2s infinite;
}

.encryption-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: waveMove 3s infinite;
}

.wave-1 {
    top: 30%;
    animation-delay: 0s;
}

.wave-2 {
    top: 50%;
    animation-delay: 1s;
}

.wave-3 {
    top: 70%;
    animation-delay: 2s;
}

.transformation-text {
    text-align: center;
}

.transform-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-text);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.status-encrypted {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #8a2be2, #9d4eed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: encryptionBlink 2s infinite;
}

/* Animations for Compiler Visualization */
@keyframes coreProcess {
    0%, 100% { transform: scale(1); color: var(--secondary-color); }
    50% { transform: scale(1.1); color: var(--primary-color); }
}

@keyframes ringRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes streamFlow {
    0% { opacity: 0; transform: translateY(-20px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(20px); }
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Animations for Transformation Visualization */
@keyframes codeFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes codeTransform {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

@keyframes arrowPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes waveMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes encryptionBlink {
    0%, 70% { opacity: 1; }
    71%, 100% { opacity: 0.5; }
}

/* Responsive adjustments for new visualizations */
@media (max-width: 768px) {
    .compiler-visualization,
    .transformation-visualization {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .core-icon {
        font-size: 3rem;
    }
    
    .ring-1 { width: 60px; height: 60px; }
    .ring-2 { width: 90px; height: 90px; }
    .ring-3 { width: 120px; height: 120px; }
    
    .code-block {
        width: 50px;
        height: 35px;
    }
    
    .matrix-row {
        gap: 15px;
        margin-bottom: 12px;
    }
    
    .process-label,
    .transform-label {
        font-size: 1rem;
    }
    
    .status-active,
    .status-encrypted {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .compiler-visualization,
    .transformation-visualization {
        padding: 25px 15px;
        min-height: 200px;
    }
    
    .core-icon {
        font-size: 2.5rem;
    }
    
    .ring-1 { width: 50px; height: 50px; }
    .ring-2 { width: 75px; height: 75px; }
    .ring-3 { width: 100px; height: 100px; }
    
    .code-block {
        width: 40px;
        height: 30px;
    }
    
    .matrix-row {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .transform-arrow {
        font-size: 1.2rem;
    }
    
    .process-label,
    .transform-label {
        font-size: 0.9rem;
    }
    
    .status-active,
    .status-encrypted {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
} 