/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, #fefefe, #f0f8ff);
    color: #2a89d6;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.nav h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #2a89d6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: white;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #1a237e;
    padding: 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 99;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background: rgba(255,255,255,0.1);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #2196f3;
    border: solid 2px white;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.btn:hover::before {
    left: 100%;
}

/* Features Section */
.features {
    padding: 5rem 1rem;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, transparent 49%, #e3f2fd 49%, #e3f2fd 51%, transparent 51%);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
}

.features > div {
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 49%, rgba(33, 150, 243, 0.1) 49%, rgba(33, 150, 243, 0.1) 51%, transparent 51%);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.feature-card:hover img {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a237e;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: #f5f5f5;
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, transparent 49%, rgba(33, 150, 243, 0.1) 49%, rgba(33, 150, 243, 0.1) 51%, transparent 51%);
    background-size: 30px 30px;
    opacity: 0.5;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a237e;
}

.contact p {
    color: #666;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.form-input::placeholder {
    color: #aaa;
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #8ac1ef, #3b94dc);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.footer p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.8rem 2rem;
    }

    .code-window {
        margin: 2rem 1rem;
        font-size: 0.9rem;
    }

    .code-content {
        padding: 1.5rem;
    }

    .features h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-form {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .form-input {
        padding: 0.7rem;
    }
}

/* Animation for larger screens */
@media (min-width: 769px) {
    .feature-card {
        opacity: 0;
        transform: translateY(20px);
    }

    .feature-card.visible {
        animation: fadeInUp 0.6s forwards;
    }

    .feature-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .feature-card:nth-child(3) {
        animation-delay: 0.4s;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .features,
    .contact {
        background: #1a1a1a;
    }

    .feature-card {
        background: #2d2d2d;
        color: #fff;
    }

    .feature-card h3 {
        color: #4a9eff;
    }

    .feature-card p {
        color: #ddd;
    }

    .contact h2 {
        color: #4a9eff;
    }

    .contact p {
        color: #ddd;
    }

    .contact-form {
        background: #2d2d2d;
    }

    .form-label {
        color: #fff;
    }

    .form-input {
        background: #3d3d3d;
        border-color: #4d4d4d;
        color: #fff;
    }

    .form-input::placeholder {
        color: #888;
    }

    .form-input:focus {
        border-color: #4a9eff;
        box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-menu,
    .hero,
    .code-window,
    .footer {
        display: none;
    }

    .features,
    .contact {
        padding: 1rem;
        background: none;
    }

    .features::before,
    .contact::before {
        display: none;
    }

    .feature-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .contact-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .submit-btn {
        background: none;
        border: 1px solid #000;
        color: #000;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(33, 150, 243, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.tech-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.tech-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle,
        rgba(33, 150, 243, 0.4) 0%,
        transparent 70%
    );
    animation: pulse 2s infinite;
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2196f3;
    position: relative;
    display: inline-block;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2196f3, transparent);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .feature-card {
        background: rgba(30, 30, 30, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .feature-card p {
        color: #aaa;
    }
    
    .tech-glow {
        background: radial-gradient(
            circle,
            rgba(33, 150, 243, 0.6) 0%,
            transparent 70%
        );
    }
}