/* styles.css */
:root {
  --primary: #6C4AB6;
  --primary-dark: #5a3d9d; /* New darker shade for better contrast */
  --secondary: #8D72E1;
  --accent: #B9E0FF;
  --light: #F8F6F4;
  --dark: #2D2727;
}

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

html {
    scroll-behavior: smooth;
}

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

header {
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255,255,255,0.97);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
}

nav {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 1rem;
}

nav a:hover {
    background-color: var(--accent);
}

.nav-cta {
    background-color: var(--primary);
    color: white !important;
}

.hero {
    padding: 120px 5% 60px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--accent);
    color: var(--dark);
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 30px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta-button:hover, .cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.features {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 5px;
    background: var(--accent);
    bottom: -10px;
    left: 25%;
    border-radius: 3px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

/* Add to styles.css */
.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
}
.portfolio {
    padding: 100px 5%;
    background-color: var(--light);
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45,48,71,0.85), transparent);
    padding: 20px;
    color: white;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.testimonials {
    padding: 100px 5%;
    background-color: var(--dark);
    color: white;
    text-align: center;
}

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

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    transition: all 0.3s;
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.2;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    margin: 0;
    font-weight: 700;
}

.author-info p {
    margin: 5px 0 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

.contact {
    padding: 100px 5%;
    text-align: center;
    background-color: var(--light);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-option {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 280px;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--dark);
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.telegram-option {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
}

.telegram-option .contact-icon {
    color: white;
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 5% 30px;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 800;
    color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

.dev-credit {
    margin-top: 10px;
    font-size: 0.9rem;
}

.dev-credit a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 5%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
        flex-direction: column;
    }
    
    nav.active {
        display: flex;
    }
    
    nav a {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    .hero {
        padding: 100px 5% 40px;
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .feature-cards, .portfolio-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for feature icons */
.feature-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}