/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --text-color: #374151;
    --bg-color: #f0f9ff;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(to bottom, var(--bg-color), var(--white));
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header and Logo styles */
.header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    position: relative;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.logo-icon:hover {
    transform: scale(1.1);
}

.status-dot {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary-color), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 4px 0;
    transition: 0.3s;
}

/* Hero section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Countdown styles */
.countdown-container {
    margin: 2rem 0;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.countdown-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.timer-icon {
    width: 1.5rem;
    height: 2.5rem;
    margin: 0 auto 0.5rem;
    position: relative;
    overflow: hidden;
}

.timer-icon svg {
    color: var(--primary-color);
    position: absolute;
    top: 0;
    left: 0;
    animation: hourglass 3s infinite linear;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.timer-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Project Intro section */
.project-intro {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--white), var(--bg-color));
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.intro-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.intro-item .icon {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.intro-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.intro-item p {
    color: var(--gray-600);
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.intro-image:hover img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.overlay-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.overlay-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Features section */
.features {
    padding: 4rem 0;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--gray-800);
}

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

.feature-card {
    background: var(--gray-50);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

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

.card-image {
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem;
    color: var(--gray-800);
    transition: color 0.3s;
}

.feature-card:hover h3 {
    color: var(--primary-color);
}

.feature-card p {
    color: var(--gray-600);
    margin: 0 1rem 1rem;
}

/* Subscribe section */
.subscribe {
    padding: 4rem 0;
    background: var(--bg-color);
    text-align: center;
}

.subscribe h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.subscribe p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.subscribe-form button {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subscribe-form button:hover {
    background-color: #2563eb;
}

.subscribe-form button svg {
    transition: transform 0.3s;
}

.subscribe-form button:hover svg {
    transform: translateX(3px);
}

/* Footer Styles */
footer {
    border-top: 1px solid rgba(229, 231, 235, 1);
    background-color: #fff;
    padding: 2rem 0;
}

footer .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

footer .flex {
    display: flex;
}

footer .flex-col {
    flex-direction: column;
}

footer .items-center {
    align-items: center;
}

footer .space-x-6 > * + * {
    margin-left: 1.5rem;
}

footer .mb-4 {
    margin-bottom: 1rem;
}

footer .text-gray-400 {
    color: #9CA3AF;
}

footer .text-gray-500 {
    color: #6B7280;
}

footer .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

footer .text-center {
    text-align: center;
}

footer .hover\:text-gray-500:hover {
    color: #6B7280;
}

footer .transition-colors {
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

footer .mb-2 {
    margin-bottom: 0.5rem;
}

footer .text-blue-600 {
    color: #2563EB;
}

footer .hover\:text-blue-700:hover {
    color: #1D4ED8;
}

footer .ml-2 {
    margin-left: 0.5rem;
}

footer a {
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

footer .social-link svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: transform 0.2s ease-in-out;
}

footer .social-link:hover svg {
    transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 640px) {
    footer {
        padding: 1.5rem 0;
    }
    
    footer .space-x-6 > * + * {
        margin-left: 1rem;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-image {
        order: -1;
    }

    .image-overlay {
        bottom: 1rem;
        right: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
    }

    .form-group {
        flex-direction: column;
        padding: 0 1rem;
    }

    .subscribe-form button {
        width: 100%;
        justify-content: center;
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes hourglass {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}
