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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: #333;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    bottom: 40%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Main Content - Compact Landscape Layout */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem 3rem;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    min-height: 60vh;
    max-height: 95vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 1s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
}

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

/* Logo Section - Reduced spacing */
.logo-section {
    margin-bottom: 1rem;
}

.logo-container {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.logo-svg {
    width: 60px;
    height: 60px;
    animation: logoAnimation 2s ease-in-out infinite;
}

.logo-circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 2s ease-in-out forwards;
}

.logo-check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 2s ease-in-out 1s forwards;
}

.logo-inner {
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    animation: drawInner 2s ease-in-out 0.5s forwards;
}

@keyframes logoAnimation {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawInner {
    to {
        stroke-dashoffset: 0;
    }
}

/* Hero Section - Compact spacing */
.hero-section {
    margin-bottom: 1.5rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.title-line {
    display: inline;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

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

/* Progress Section - Compact spacing */
.progress-section {
    margin-bottom: 2rem;
}

.progress-container {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    width: 0%;
    animation: progressFill 3s ease-in-out 2s forwards;
}

@keyframes progressFill {
    to {
        width: 75%;
    }
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6366f1;
}

.progress-label {
    color: #666;
}

/* Contact Section - Improved and Feasible */
.contact-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: transparent;
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    background: transparent;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #6366f1;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
}

.input-group input::placeholder {
    color: #999;
    font-style: italic;
}

.input-group button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 60px;
}

.input-group button:hover {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    transform: scale(1.05);
}

.input-group button:active {
    transform: scale(0.95);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Footer - Enhanced and Integrated */
.footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.footer-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.made-with-love {
    font-size: 1rem;
    color: #333;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart-icon {
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
    font-size: 1.1rem;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.webspace-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.2rem 0;
}

.webspace-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
}

.webspace-link:hover {
    color: #8b5cf6;
    transform: translateY(-1px);
}

.webspace-link:hover::after {
    width: 100%;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    border-radius: 1px;
    opacity: 0.6;
}

/* Responsive Design - Compact Layout */
@media (max-width: 1200px) {
    .main-content {
        max-width: 1000px;
        padding: 1.5rem 2.5rem;
        min-height: 65vh;
        max-height: 95vh;
        overflow: visible;
    }
    
    .contact-section {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .input-group {
        max-width: 350px;
    }
}

@media (max-width: 992px) {
    .main-content {
        max-width: 900px;
        padding: 1.5rem 2rem;
        min-height: 70vh;
        max-height: 95vh;
    }
    
    .contact-section {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .input-group {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
        max-width: 100%;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .contact-section {
        padding: 1rem;
        margin-bottom: 1rem;
        background: transparent;
    }
    
    .contact-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .input-group {
        max-width: 100%;
        border-radius: 20px;
        flex-direction: row;
        background: transparent;
    }
    
    .input-group input,
    .input-group button {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .social-links {
        gap: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .footer-brand {
        padding: 0.8rem 1.5rem;
    }
    
    .made-with-love {
        font-size: 0.9rem;
    }
    
    .shape {
        display: none;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 1rem 0.8rem;
        border-radius: 15px;
    }
    
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .logo-svg {
        width: 50px;
        height: 50px;
    }
    
    .progress-section {
        margin-bottom: 1rem;
    }
    
    .progress-bar {
        height: 5px;
    }
    
    .progress-percentage {
        font-size: 1.3rem;
    }
    
    .contact-section {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
        background: transparent;
    }
    
    .contact-section h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 15px;
        max-width: 100%;
        background: transparent;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }
    
    .input-group input,
    .input-group button {
        border-radius: 0;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .input-group input {
        border-bottom: 1px solid #e5e7eb;
        border-radius: 15px 15px 0 0;
    }
    
    .input-group button {
        border-radius: 0 0 15px 15px;
        min-width: auto;
        width: 100%;
    }
    
    .social-links {
        gap: 0.6rem;
        margin-top: 0.8rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 0.8rem;
        margin-top: 0.8rem;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .footer-brand {
        padding: 0.6rem 1rem;
    }
    
    .made-with-love {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
    
    .webspace-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.8rem 0.6rem;
        border-radius: 12px;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .logo-svg {
        width: 45px;
        height: 45px;
    }
    
    .contact-section h2 {
        font-size: 1.2rem;
    }
    
    .input-group input,
    .input-group button {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .footer-brand {
        padding: 0.5rem 0.8rem;
    }
    
    .made-with-love {
        font-size: 0.75rem;
    }
    
    .webspace-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 0.6rem 0.4rem;
        border-radius: 10px;
    }
    
    .main-title {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .logo-svg {
        width: 40px;
        height: 40px;
    }
    
    .contact-section {
        padding: 0.6rem;
    }
    
    .contact-section h2 {
        font-size: 1.1rem;
    }
    
    .input-group input,
    .input-group button {
        padding: 0.6rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .footer {
        padding: 0.6rem;
    }
    
    .footer-brand {
        padding: 0.4rem 0.6rem;
    }
    
    .made-with-love {
        font-size: 0.7rem;
    }
    
    .webspace-link {
        font-size: 0.75rem;
    }
}

/* Ensure form visibility on all devices */
.contact-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10;
}

.newsletter-form {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.input-group {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-section {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid #333;
    }
    
    .input-group {
        border: 2px solid #333;
        background: white;
    }
    
    .input-group input {
        color: #000;
        background: white;
    }
    
    .input-group button {
        background: #333;
        color: white;
        border: 2px solid #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .contact-section,
    .input-group,
    .input-group button {
        transition: none;
    }
    
    .input-group:focus-within {
        transform: none;
    }
    
    .input-group button:hover {
        transform: none;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content {
        min-height: auto;
        max-height: none;
        padding: 1rem 2rem;
    }
    
    .logo-section {
        margin-bottom: 0.5rem;
    }
    
    .hero-section {
        margin-bottom: 0.8rem;
    }
    
    .progress-section {
        margin-bottom: 0.8rem;
    }
    
    .contact-section {
        margin-bottom: 0.8rem;
        padding: 1rem;
    }
    
    .footer {
        margin-top: 0.8rem;
        padding: 1rem;
    }
}
