/* ================================================
   ALBUS DO - Modern Landing Page Styles
   ================================================ */

/* CSS Variables */
:root {
    --color-white: #FFFFFF;
    --color-light-gray: #F6F6F6;
    --color-accent: #6C5CE7;
    --color-accent-hover: #5B4BC7;
    --color-accent-glow: rgba(108, 92, 231, 0.4);
    --color-text: #1E1E1E;
    --color-text-light: #666666;
    --color-border: #E0E0E0;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #a890fe 100%);
    --gradient-animated: linear-gradient(-45deg, #6C5CE7, #a890fe, #fd79a8, #6C5CE7);
    --font-heading: 'Unbounded', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 10px 30px var(--color-accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--color-accent-glow);
    filter: brightness(1.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-small {
    padding: 10px 24px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 18px 48px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -1px;
}

.logo-highlight {
    color: var(--color-accent);
}

.code-icon {
    display: inline-block;
    font-size: 24px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

.contact-btn svg {
    width: 18px;
    height: 18px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-animated);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.05;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 20vw;
    font-weight: 900;
    color: var(--color-accent);
    opacity: 0.03;
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--color-text);
}

.accent-text {
    color: var(--color-accent);
    text-shadow: 0 0 40px var(--color-accent-glow);
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--color-text-light);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Sections Common */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Portfolio Section */
.portfolio {
    background: var(--color-light-gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(108, 92, 231, 0.95), rgba(108, 92, 231, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--color-white);
    font-size: 24px;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: transform var(--transition-normal) 0.1s;
}

.portfolio-card:hover .portfolio-overlay p {
    transform: translateY(0);
}

.portfolio-overlay .btn {
    align-self: flex-start;
    transform: translateY(20px);
    transition: transform var(--transition-normal) 0.2s;
}

.portfolio-card:hover .portfolio-overlay .btn {
    transform: translateY(0);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 20px;
    border: 2px solid var(--color-border);
    transition: all var(--transition-normal);
    position: relative;
}

.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-card.featured {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-white);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--color-text-light);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.service-price {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 24px;
}

/* About Stats Section */
.about {
    background: var(--gradient-primary);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.1;
    pointer-events: none;
}

.about .section-title,
.about .section-subtitle {
    color: var(--color-white);
}

.about .section-subtitle {
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 900;
    margin-bottom: 10px;
    background: var(--color-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Subscribe Section */
.subscribe {
    background: var(--color-light-gray);
}

.subscribe-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-white);
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.subscribe-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

.subscribe-text {
    color: var(--color-text-light);
    font-size: 18px;
    margin-bottom: 40px;
}

.subscribe-form .form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-glow);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-light);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-accent);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label a {
    color: var(--color-accent);
    text-decoration: underline;
}

.checkbox-label a:hover {
    text-decoration: none;
}

/* Contacts Section */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background: var(--color-light-gray);
    padding: 40px;
    border-radius: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .checkbox-label {
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-requisites ul {
    list-style: none;
}

.footer-requisites li {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.8;
    line-height: 1.5;
}

.footer-requisites strong {
    opacity: 1;
}

.footer-link {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.fade-in-delay.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.fade-in-delay-2.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glow Effect on Hover */
.glow-on-hover:hover {
    filter: drop-shadow(0 0 20px var(--color-accent-glow));
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .contact-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .subscribe-form .form-group {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        gap: 30px;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
