/* --- style.css --- */

/* --- 1. Global Styles & NEW Gradient Theme --- */
:root {
    --light-bg: #f4f7f9;
    --primary-accent: #d800a8; 
    --secondary-accent: #00a0c0; 
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow-color: rgba(111, 66, 193, 0.15); 
}

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

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

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

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1, h2, h3 {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

section {
    padding: 100px 0;
}

#demo h2,
#features h2,
#examples h2,
#security h2,
#languages h2 {
    text-align: center;
    margin-bottom: 60px;
}


/* --- 2. Dynamic Canvas Background --- */
#dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* --- 3. Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    background: transparent;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    -webkit-text-fill-color: initial;
    position: relative;
    animation: glitch-skew 5s infinite linear;
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-bg); 
}

.hero-title::before {
    left: 2px;
    -webkit-text-fill-color: var(--secondary-accent);
    animation: glitch-effect 5s infinite linear;
}

.hero-title::after {
    left: -2px;
    -webkit-text-fill-color: var(--primary-accent);
    animation: glitch-effect 5.2s infinite linear;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 10px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.hero-description {
    margin: 30px auto 0 auto;
    max-width: 800px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: bold; 
    line-height: 1.8;
}

.hero-description p:first-child {
    margin-bottom: 1rem;
}


/* --- 4. 3D Cover Flow Slider Section --- */
.slider{
    height: 720px;
    margin-top: -50px;
    position: relative;
}
.slider .list .item{
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: .5s;
    cursor: pointer;
}
.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider .list .item:nth-child(1){
    transform: translateY(0) scale(1);
    z-index: 5;
    opacity: 1;
}
.slider .list .item:nth-child(2){
    transform: translateY(10%) scale(0.9);
    z-index: 4;
    opacity: 0.8;
}
.slider .list .item:nth-child(3){
    transform: translateY(20%) scale(0.8);
    z-index: 3;
    opacity: 0.6;
}
.slider .list .item:nth-child(4){
    transform: translateY(30%) scale(0.7);
    z-index: 2;
    opacity: 0.4;
}
.slider .list .item:nth-child(n + 5){
    transform: translateY(40%) scale(0.6);
    z-index: 1;
    opacity: 0;
}
.slider.active .list .item:nth-child(1){
    transform: translateY(40%) scale(0.6);
    opacity: 0;
}
.slider.active .list .item:nth-child(2){
    transform: translateY(0) scale(1);
    z-index: 5;
    opacity: 1;
}
.slider.active .list .item:nth-child(3){
    transform: translateY(10%) scale(0.9);
    z-index: 4;
    opacity: 0.8;
}
.slider.active .list .item:nth-child(4){
    transform: translateY(20%) scale(0.8);
    z-index: 3;
    opacity: 0.6;
}
.slider.active .list .item:nth-child(5){
    transform: translateY(30%) scale(0.7);
    z-index: 2;
    opacity: 0.4;
}
.slider.active .list .item:nth-child(n + 6){
    transform: translateY(40%) scale(0.6);
    z-index: 1;
    opacity: 0;
}
.slider .buttons{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
}
.slider .buttons button{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.7);
    border: none;
    font-family: monospace;
    font-weight: bold;
    font-size: 1.5rem;
    color: #212529;
    cursor: pointer;
    transition: 0.3s;
}
.slider .buttons button:hover{
    background-color: #fff;
    transform: scale(1.1);
}
.slider .dots{
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}
.slider .dots li{
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 5px;
    transition: 0.5s;
}
.slider .dots li.active{
    background-color: #fff;
    width: 30px;
    border-radius: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1400px;
    animation-name: zoom;
    animation-duration: 0.6s;
}
@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* --- 5. Features Section --- */
.features-grid {
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-accent);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.feature-card p {
    color: var(--text-secondary);
}

/* --- 6. Interactive Feature Examples Section (NEW STYLES) --- */
.example-content {
    margin-top: 20px; 
    border-top: 1px solid var(--border-color); 
    padding-top: 20px; 
}

.example-content h4 {
    font-family: 'Roboto', sans-serif;
    text-transform: none; 
    letter-spacing: normal;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary); 
    background: none; 
    -webkit-text-fill-color: initial; 
    margin-bottom: 10px;
}

.example-content code {
    display: inline-block;
    background-color: var(--light-bg); 
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    word-wrap: break-word; 
    width: 100%;
}


/* --- 7. Security Section --- */
#security {
    background-color: transparent;
    padding: 120px 0;
}
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.security-card {
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.security-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: var(--primary-accent);
}
.security-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.security-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.security-card p {
    color: var(--text-secondary);
}

/* --- 8. Languages Section --- */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px 20px;
    justify-items: center;
}
.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}
.language-item:hover { transform: scale(1.1); }
.language-item img { width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 4px 8px rgba(0,0,0,0.1); object-fit: cover; }
.language-item span { font-size: 0.9rem; color: var(--text-secondary); }

/* --- 9. Call to Action Section --- */
.cta-section {
    text-align: center;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}
.cta-section h2 { margin-bottom: 30px; }
.cta-description {
    margin-bottom: 30px;
}

/* --- 10. Footer --- */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
}
footer a { color: var(--secondary-accent); text-decoration: none; margin: 0 10px; }

/* --- 11. Scroll Animations & Keyframes --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@keyframes glitch-effect {
  0% { clip-path: inset(85% 0 5% 0); transform: none; }
  2% { transform: translate(-2px, -1px); }
  4% { transform: translate(2px, 1px); clip-path: inset(15% 0 70% 0); }
  6% { transform: translate(0); }
  8% { clip-path: inset(75% 0 5% 0); }
  10% { clip-path: inset(45% 0 45% 0); }
  12% { transform: translate(-3px, 1px); }
  14% { transform: translate(3px, -1px); }
  16% { clip-path: inset(15% 0 70% 0); }
  18% { clip-path: inset(90% 0 2% 0); }
  20% { transform: translate(2px, 1px); }
  22% { transform: translate(-2px, -1px); }
  24% { clip-path: inset(55% 0 30% 0); }
  25% { clip-path: none; transform: none; }
  100% { clip-path: none; transform: none; }
}

@keyframes glitch-skew {
  0% { transform: skew(0); }
  15% { transform: skew(0); }
  16% { transform: skew(2deg); }
  17% { transform: skew(-3deg); }
  18% { transform: skew(1deg); }
  19% { transform: skew(-1deg); }
  20% { transform: skew(0); }
  21% { transform: skew(0); }
  100% { transform: skew(0); }
}


/* --- 12. Responsive Design --- */
@media (max-width: 1200px) {
    .features-grid, .interactive-features-grid, .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .languages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .slider{ height: 400px; }
    .hero-title { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-tagline { font-size: 1.2rem; }
    .features-grid, .interactive-features-grid, .security-grid {
        grid-template-columns: 1fr;
    }
    .languages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .modal-content {
        width: 95%;
    }
}