:root {
    --dtu-red: #990000;
    --dtu-dark-red: #770000;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --error: #ef4444;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --bright-blue: #3D82AE;
    --dark-blue: #003160;
    --ocean-blue: #215888;
    --light-blue: #F6FAFC;
    --bright-orange: #FD8369;
    --gradient-1: linear-gradient(135deg, #3D82AE 0%, #215888 100%);
    --gradient-2: linear-gradient(135deg, #FD8369 0%, #3D82AE 100%);
    --gradient-3: linear-gradient(135deg, #215888 0%, #003160 100%);
    --gradient-4: linear-gradient(135deg, #3D82AE 0%, #FD8369 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gray);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #3D82AE, #215888, #003160, #3D82AE);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    padding: 1rem 2rem;
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: float 6s ease-in-out infinite;
}

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

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #F6FAFC;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto 0.5rem;
}

.about-link-btn-corner {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-link-btn-corner:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-modal-content {
    max-width: 700px !important;
    padding: 3rem !important;
    position: relative;
}

.about-modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close-x {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close-x:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.about-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(61, 130, 174, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(61, 130, 174, 0.15);
    transform: translateY(-3px);
}

.service-link {
    text-decoration: none;
    color: inherit;
}

.service-link:hover {
    background: rgba(61, 130, 174, 0.25);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 4px 12px rgba(61, 130, 174, 0.2);
}

.service-icon {
    font-size: 2rem;
}

.service-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.about-focus {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

.signup-section {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.signup-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.signup-card:hover {
    transform: translateY(-5px) rotateX(2deg);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border-color);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3D82AE 0%, #FD8369 100%);
    width: 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(61, 130, 174, 0.5);
}

.signup-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-align: center;
}

.form-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--bright-blue);
    box-shadow: 0 0 0 3px rgba(61, 130, 174, 0.1);
}

.input-wrapper input:valid {
    border-color: var(--success);
}

.input-wrapper input:invalid:not(:placeholder-shown) {
    border-color: var(--error);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

.error-message {
    display: block;
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.error-message.show {
    opacity: 1;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #FD8369 0%, #3D82AE 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 131, 105, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(253, 131, 105, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(253, 131, 105, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(253, 131, 105, 0.4);
    }
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #3D82AE 0%, #FD8369 100%);
    box-shadow: 0 10px 30px rgba(61, 130, 174, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-text {
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    opacity: 1;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.benefits {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.benefit-icon {
    font-size: 2rem;
}

.benefit-item:nth-child(1) .benefit-icon { --delay: 0s; }
.benefit-item:nth-child(2) .benefit-icon { --delay: 0.2s; }
.benefit-item:nth-child(3) .benefit-icon { --delay: 0.4s; }

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

.stats {
    text-align: center;
    animation: fadeIn 1s ease-out 0.4s both;
}

.stat-item {
    display: inline-block;
    background: var(--bg-white);
    padding: 1.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.3));
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.success-animation {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    position: relative;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success);
    position: relative;
    animation: scaleIn 0.4s ease;
}

.checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 24px;
    height: 40px;
    border: solid white;
    border-width: 0 4px 4px 0;
    animation: drawCheck 0.4s ease 0.3s both;
}

@keyframes drawCheck {
    from {
        height: 0;
    }
    to {
        height: 40px;
    }
}

.modal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.success-email {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.countdown-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.countdown-text span {
    font-weight: 700;
    color: var(--primary);
}

.close-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--border-color);
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .hero {
        margin-bottom: 2rem;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-link-btn-corner {
        top: 1rem;
        right: 1rem;
        padding: 0.625rem 1.5rem;
        font-size: 0.85rem;
    }

    .about-modal-content {
        padding: 2rem 1.5rem !important;
    }

    .about-modal-content h2 {
        font-size: 1.5rem;
    }

    .about-intro {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .service-item {
        padding: 0.75rem;
    }

    .service-icon {
        font-size: 1.5rem;
    }

    .service-name {
        font-size: 0.75rem;
    }

    .about-focus {
        font-size: 0.875rem;
    }

    .modal-close-x {
        top: 1rem;
        right: 1rem;
        font-size: 1.75rem;
    }

    .signup-card {
        padding: 2rem 1.5rem;
    }

    .benefits {
        gap: 1rem;
    }

    .benefit-item {
        font-size: 0.75rem;
    }

    .benefit-icon {
        font-size: 1.25rem;
    }

    .stat-item {
        padding: 1.25rem 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .modal-content {
        padding: 2rem;
    }
}

.submit-btn {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: ripple-effect 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-effect {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}