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

:root {
    --primary-color: #ffffff;
    --secondary-color: #a1a1aa;
    --accent-color: #3b82f6;
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --bg-hover: #27272a;
    --border-color: #27272a;
    --text-primary: #e4e4e7;
    --text-secondary: #71717a;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated grain background */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* ========== HEADER STYLES ========== */
header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    animation: slideDown 0.8s var(--transition-smooth);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 {
    font-size: 3.5em;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: 2px;
    animation: fadeInScale 1s var(--transition-smooth) 0.2s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

header p {
    font-size: 1.2em;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 25px;
    font-family: 'Orbitron', sans-serif;
    animation: fadeInScale 1s var(--transition-smooth) 0.3s both;
}


.home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #a1a1aa;
    font-size: 1.2em;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 9999;
}

.home-btn:hover {
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.home-btn::after {
    display: none;
}

/* ========== AVAILABILITY BANNER ========== */
.availability-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.8) 0%, rgba(24, 24, 27, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    animation: fadeInScale 1s var(--transition-smooth) 0.4s both;
}

.status-label {
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
}

.status-value {
    font-size: 1.3em;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
}

.status-value.available {
    color: #22c55e;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.status-value.unavailable {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.current-time {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 5px;
}

/* ========== CARD STYLES ========== */
.card {
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.8) 0%, rgba(24, 24, 27, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    margin-bottom: 30px;
    transition: all var(--transition-normal);
    border-radius: 12px;
    animation: fadeInUp 0.6s var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.15);
}

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

.card h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.card h3 {
    color: var(--text-primary);
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 500;
    font-family: 'Orbitron', sans-serif;
}

.card p {
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.7;
}

/* ========== PROJECT OPTION SECTION ========== */
.project-option {
    text-align: center;
}

.project-option h2 {
    border-bottom: none;
    padding-bottom: 0;
}

.questionnaire-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    transition: all var(--transition-normal);
    font-size: 1em;
    letter-spacing: 1px;
    border-radius: 8px;
    margin-top: 10px;
}

.questionnaire-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
    text-align: center;
    position: relative;
    margin: 40px 0;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.section-divider::before {
    left: 0;
}

.section-divider::after {
    right: 0;
}

.section-divider span {
    background: var(--bg-dark);
    padding: 0 20px;
    color: var(--text-secondary);
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

/* ========== FORM STYLES ========== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95em;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1em;
    font-family: inherit;
    transition: all var(--transition-normal);
    border-radius: 8px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(9, 9, 11, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

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

::placeholder {
    color: var(--text-secondary);
}

.char-counter {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-top: 5px;
}

/* ========== FORM BUTTONS ========== */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 40px;
    font-size: 1em;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

button:hover::before {
    left: 100%;
}

button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-dark);
    flex: 1;
}

button[type="submit"]:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button[type="reset"] {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

button[type="reset"]:hover {
    background: rgba(63, 63, 70, 0.8);
    border-color: var(--primary-color);
}

/* ========== FORM MESSAGES ========== */
.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* ========== CONTACT INFO SECTION ========== */
.contact-info-section {
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.8) 0%, rgba(24, 24, 27, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    animation: fadeInUp 0.6s var(--transition-smooth);
}

.contact-info-section h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 25px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: var(--bg-dark);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.info-card h3 {
    margin-bottom: 10px;
}

.info-card p {
    color: var(--secondary-color);
    margin: 5px 0;
}

.info-card a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.info-card a:hover {
    color: var(--primary-color);
}

/* ========== SOCIAL SECTION ========== */
.social-section {
    text-align: center;
}

.social-section h2 {
    border-bottom: none;
    padding-bottom: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 1.4em;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width var(--transition-normal), height var(--transition-normal);
}

.social-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }

    header p {
        font-size: 1.1em;
    }

    .card {
        padding: 25px;
    }

    .card h2 {
        font-size: 1.5em;
    }

    .form-actions {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

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

    .social-links {
        flex-wrap: wrap;
    }

    .availability-banner {
        padding: 15px;
    }

    .status-value {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    header {
        padding: 40px 15px 30px;
    }

    .card {
        padding: 20px;
    }

    .section-divider::before,
    .section-divider::after {
        width: 40%;
    }
}

/* ========== SCROLL BEHAVIOR ========== */
html {
    scroll-behavior: smooth;
}

/* ========== FOCUS STATES ========== */
button:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
