/* HOMEBASE v4.0 - Drift Nexus Style */

:root {
    --primary: #4FC3F7;
    --secondary: #FFA726;
    --dark: #0a1929;
    --darker: #020916;
    --card: rgba(10, 25, 41, 0.7);
    --border: rgba(79, 195, 247, 0.2);
    --text: #E3F2FD;
    --text-muted: #90CAF9;
    --accent: #FFB74D;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--darker);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Geometric background */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(79, 195, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 195, 247, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: -1;
    pointer-events: none;
}

/* Snow effect - BEHIND CONTENT */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: fixed;
    top: -10px;
    color: rgba(227, 242, 253, 0.9);
    font-size: 1em;
    z-index: 0;
    pointer-events: none;
    animation: snowfall linear infinite;
    text-shadow: 0 0 8px rgba(79, 195, 247, 0.5);
}

@keyframes snowfall {
    0% { 
        transform: translateY(-10px) rotate(0deg); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(100vh) rotate(360deg); 
        opacity: 0.3; 
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Header */
.header {
    padding: 30px 60px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(79, 195, 247, 0.3);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.2);
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

/* Hero */
.hero {
    padding: 100px 60px;
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 120px;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: 8px;
    color: #fff;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* About Section - Drift Nexus Style */
.about {
    padding: 80px 60px;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    position: relative;
    padding: 60px 50px;
    border: 1px solid var(--border);
    background: rgba(10, 25, 41, 0.4);
}

.about-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.about-corners .corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent);
}

.about-corners .corner.tl { 
    top: -2px; 
    left: -2px; 
    border-right: none; 
    border-bottom: none; 
}
.about-corners .corner.tr { 
    top: -2px; 
    right: -2px; 
    border-left: none; 
    border-bottom: none; 
}
.about-corners .corner.bl { 
    bottom: -2px; 
    left: -2px; 
    border-right: none; 
    border-top: none; 
}
.about-corners .corner.br { 
    bottom: -2px; 
    right: -2px; 
    border-left: none; 
    border-top: none; 
}

.about-label {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 600;
    text-align: right;
}

.about-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    padding: 0 60px;
}

.section-icon {
    font-size: 24px;
    color: var(--accent);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
}

/* Services */
.services {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 60px;
}

.service-card {
    position: relative;
    padding: 40px 30px;
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
}

.card-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.card-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.card-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.card-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(79, 195, 247, 0.2);
}

.service-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: rgba(79, 195, 247, 0.1);
    margin-bottom: 20px;
}

.service-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Workflow */
.workflow {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.workflow-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 60px;
}

.workflow-item {
    position: relative;
    padding-left: 80px;
}

.workflow-line {
    position: absolute;
    left: 30px;
    top: 60px;
    width: 1px;
    height: calc(100% + 40px);
    background: linear-gradient(180deg, var(--primary), transparent);
}

.workflow-item:last-child .workflow-line {
    display: none;
}

.workflow-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    background: var(--darker);
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.2);
}

.workflow-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.workflow-content p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* CTA */
.cta {
    margin: 80px 60px;
    padding: 60px;
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.05), rgba(255, 167, 38, 0.05));
    border: 1px solid var(--border);
}

.cta-corners {
    position: absolute;
    inset: 0;
}

.cta-corners .corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--accent);
}

.cta-corners .corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.cta-corners .corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.cta-corners .corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.cta-corners .corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.cta-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.4;
}

/* Contact */
.contact {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.telegram-cta {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 60px;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.telegram-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.telegram-btn:hover {
    color: var(--darker);
    box-shadow: 0 0 30px rgba(79, 195, 247, 0.3);
}

.telegram-btn:hover::before {
    transform: translateX(0);
}

.btn-icon {
    font-size: 20px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 60px auto;
    max-width: 600px;
    padding: 0 60px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.divider span {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 60px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    padding: 15px 20px;
    background: rgba(10, 25, 41, 0.5);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.1);
    background: rgba(10, 25, 41, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 18px 40px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.submit-btn:hover:not(:disabled) {
    color: var(--darker);
}

.submit-btn:hover:not(:disabled)::before {
    transform: translateX(0);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loader svg {
    animation: spin 1s linear infinite;
}

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

/* Messages */
.message {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 30px;
    text-align: center;
    border: 2px solid;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.success {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.message.error {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.message h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.message.success h3 { color: #4CAF50; }
.message.error h3 { color: #f44336; }

.message p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px;
    margin-top: 80px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header, .section-header, .services-grid, .workflow-list, .contact-form, .telegram-cta, .divider {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero { 
        padding: 60px 20px; 
        max-width: 100%;
    }
    .hero-title { font-size: 48px; letter-spacing: 2px; }
    .hero-subtitle { font-size: 14px; }
    
    .about {
        padding: 60px 20px;
        max-width: 100%;
    }
    .about-content { padding: 40px 25px; }
    .about-title { font-size: 22px; }
    
    .cta { margin: 60px 20px; padding: 40px 20px; }
    .cta-title { font-size: 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .workflow-item { padding-left: 60px; }
}