/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

/* Background animations */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

/* Main container */
.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 1;
    position: relative;
    animation: slideUp 1s ease-out;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
.logo {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3rem);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 30px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #ffffff);
    border-radius: 3px;
    width: 0%;
    animation: loadProgress 3s ease-out forwards;
}

@keyframes loadProgress {
    to { 
        width: 25%; 
    }
}

.progress-text {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-top: 10px;
    opacity: 0.8;
}

/* Contact section */
.contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact p {
    margin-bottom: 10px;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.email {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-word;
}

.email:hover {
    color: #ffffff;
}

/* Social links */
.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    margin: 5px;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Sparkle animation */
@keyframes sparkle {
    0% { 
        opacity: 0; 
        transform: scale(0); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1); 
    }
    100% { 
        opacity: 0; 
        transform: scale(0); 
    }
}

/* Responsive design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        max-width: 550px;
        padding: 35px 25px;
    }
    
    .shape:nth-child(1) {
        width: 70px;
        height: 70px;
    }
    
    .shape:nth-child(2) {
        width: 50px;
        height: 50px;
    }
    
    .shape:nth-child(3) {
        width: 80px;
        height: 80px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        max-width: 100%;
        padding: 30px 25px;
        border-radius: 15px;
        margin: 0;
    }
    
    h1 {
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    
    .subtitle {
        max-width: 100%;
        margin-bottom: 25px;
    }
    
    .contact {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .shape:nth-child(1) {
        width: 60px;
        height: 60px;
        top: 15%;
        left: 5%;
    }
    
    .shape:nth-child(2) {
        width: 40px;
        height: 40px;
        top: 70%;
        left: 85%;
    }
    
    .shape:nth-child(3) {
        width: 70px;
        height: 70px;
        top: 85%;
        left: 15%;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    body {
        padding: 10px;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .container {
        padding: 25px 20px;
        border-radius: 12px;
        min-height: auto;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    h1 {
        margin-bottom: 15px;
        letter-spacing: 1px;
    }
    
    .subtitle {
        margin-bottom: 20px;
    }
    
    .progress-bar {
        margin: 25px 0;
        height: 5px;
    }
    
    .contact {
        margin-top: 25px;
        padding-top: 20px;
    }
    
    .contact p {
        margin-bottom: 8px;
    }
    
    .social-links {
        margin-top: 15px;
        gap: 8px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 2px;
    }
    
    /* Hide floating shapes on very small screens to reduce clutter */
    .shape {
        display: none;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    body {
        padding: 8px;
        padding-top: 30px;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .container {
        backdrop-filter: blur(15px);
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        align-items: center;
        padding-top: 20px;
    }
    
    .container {
        padding: 20px 25px;
    }
    
    .subtitle {
        margin-bottom: 20px;
    }
    
    .contact {
        margin-top: 20px;
        padding-top: 15px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .shape {
        animation: none;
    }
    
    .progress-fill {
        animation: none;
        width: 65%;
    }
    
    .container {
        animation: none;
    }
}