/* Eye Of Web - AI-Focused Stylesheet */

:root {
    --primary-color: #0d47a1;
    --secondary-color: #1565c0;
    --accent-color: #00bcd4;
    --ai-blue: #4fc3f7;
    --ai-cyan: #26c6da;
    --ai-purple: #7c4dff;
    --ai-green: #64ffda;
    --dark-color: #0a0e1a;
    --darker-color: #050810;
    --light-color: #f0f4f8;
    --gray-color: #546e7a;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --gradient-bg: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #00bcd4 100%);
    --ai-gradient: linear-gradient(45deg, #4fc3f7 0%, #7c4dff 50%, #26c6da 100%);
    --tech-gradient: linear-gradient(135deg, #0a0e1a 0%, #1a237e 50%, #0d47a1 100%);
    --shadow: 0 8px 32px rgba(0,0,0,0.12);
    --ai-shadow: 0 8px 32px rgba(79, 195, 247, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s ease;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #263238;
    background: var(--light-color);
    overflow-x: hidden;
}

/* AI Neural Network Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(79, 195, 247, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 77, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(38, 198, 218, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Header Styles */
.header {
    background: var(--tech-gradient);
    color: white;
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--ai-shadow);
    min-height: 70px;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    white-space: nowrap;
    min-width: fit-content;
    flex-shrink: 0;
    height: 40px;
    background: var(--ai-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .eye-icon {
    font-size: 2rem;
    margin-right: 8px;
    color: var(--ai-cyan);
    filter: drop-shadow(0 0 10px rgba(38, 198, 218, 0.5));
    transition: all 0.3s ease;
}

.logo .eye-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(38, 198, 218, 0.7));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
    height: 40px;
}

.nav-menu li {
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 40px;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.faces-online {
    background: linear-gradient(45deg, var(--accent-color), #e91e63);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    color: white !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    white-space: nowrap;
    height: 40px;
    cursor: default;
}

.faces-online:hover {
    background: linear-gradient(45deg, #e91e63, var(--accent-color));
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.4);
}

.faces-online-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.2rem;
}

.login-btn {
    background: var(--accent-color);
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    flex-shrink: 0;
}

.login-btn:hover {
    background: #e91e63;
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 40px;
    align-items: center;
    justify-content: center;
    height: 40px;
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: var(--gradient-bg);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: var(--light-color);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.screenshot-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.screenshot-item img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.screenshot-caption {
    padding: 1.5rem;
    text-align: center;
}

.screenshot-caption h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.screenshot-caption p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Platforms Section */
.platforms {
    padding: 100px 0;
    background: white;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.platform-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.platform-card:hover {
    border-color: var(--secondary-color);
    background: white;
    box-shadow: var(--shadow);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--gradient-bg);
    color: white;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    margin-bottom: 2rem;
}

.telegram-contact {
    background: #0088cc;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-block;
    margin: 1rem;
    font-weight: bold;
    transition: var(--transition);
}

.telegram-contact:hover {
    background: #006699;
    transform: translateY(-2px);
}

/* Developers Section */
.developers {
    padding: 100px 0;
    background: #f8f9fa;
}

.developers-grid {
    max-width: 900px;
    margin: 0 auto;
}

.developer-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
}

.developer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #4fc3f7, #7c4dff);
    border-radius: 12px 12px 0 0;
}

.developer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.developer-image {
    text-align: center;
    margin-bottom: 2rem;
}

.developer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4fc3f7, #7c4dff);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.3);
}

.developer-info h3 {
    font-size: 2rem;
    color: #0d47a1;
    margin-bottom: 0.5rem;
    text-align: center;
}

.developer-title {
    font-size: 1.2rem;
    color: #26c6da;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

.developer-bio {
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.developer-bio p {
    margin-bottom: 1rem;
    color: #546e7a;
    font-size: 1.05rem;
}

.developer-skills,
.developer-projects {
    margin-bottom: 2.5rem;
}

.developer-skills h4,
.developer-projects h4 {
    color: #0d47a1;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #4fc3f7;
    padding-left: 1rem;
}

.skills-grid {
    display: block;
}

.skill-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.skill-category h5 {
    color: #4fc3f7;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category li {
    padding: 0.3rem 0;
    color: #546e7a;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.2rem;
}

.skill-category li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #26c6da;
    font-weight: bold;
}

.project-list {
    display: block;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.project-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.project-item i {
    color: #26c6da;
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.project-item span {
    color: #546e7a;
    font-weight: 500;
}

.developer-contact {
    text-align: center;
    margin-top: 2rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(45deg, #4fc3f7, #7c4dff);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.3);
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.4);
}

.contact-link i {
    font-size: 1.2rem;
}

/* Responsive */
@media (min-width: 769px) {
    .skills-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .skill-category {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .developers {
        padding: 60px 0;
    }
    
    .developer-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .developer-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .developer-info h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .developer-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .developer-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .developer-info h3 {
        font-size: 1.4rem;
    }
    
    .developer-title {
        font-size: 1rem;
    }
    
    .project-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .header {
        padding: 0.5rem 0;
        min-height: 60px;
    }
    
    .navbar {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
        gap: 1rem;
    }
    
    .logo {
        order: 1;
        font-size: 1.1rem;
    }
    
    .logo .eye-icon {
        font-size: 1.5rem;
    }
    
    .login-btn {
        order: 2;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-top: 0;
        display: inline-block;
        width: auto;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.2);
        order: 4;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        text-align: center;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 0.5rem;
        width: 100%;
        display: block;
    }
    
    .faces-online {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        margin-top: 80px;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }
    
    .logo .eye-icon {
        font-size: 1.2rem;
    }
    
    .login-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--accent-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: #e91e63;
    transform: scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.screenshot-item {
    cursor: pointer;
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Image optimization for SEO */
.screenshot-item img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Other images keep their normal display */
img:not(.screenshot-item img):not(.logo .eye-icon) {
    max-width: 100%;
    height: auto;
}

/* Images always visible - Lazy loading disabled for better UX */
img {
    opacity: 1 !important;
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

/* Focus management for accessibility */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
}

.skip-link:focus {
    top: 6px;
}

/* Print styles for SEO */
@media print {
    .header,
    .footer,
    .lightbox,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    .feature-card,
    .screenshot-item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support - only when explicitly requested */
@media (prefers-contrast: high) {
    .feature-card,
    .platform-card,
    .screenshot-item {
        border: 1px solid #ccc;
    }
}

/* Performance optimizations */
.hero::before {
    will-change: transform;
    transform: translateZ(0);
}

.feature-card:hover,
.screenshot-item:hover {
    will-change: transform;
}

/* Content visibility for better performance */
.screenshots-grid,
.features-grid,
.platforms-grid {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .lightbox-close {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .lightbox-caption {
        bottom: -60px;
        font-size: 0.9rem;
        padding: 0.8rem;
    }
} 