/* MySeren Cloud - Modern Minimalist Theme */
:root {
    --primary-color: #6366F1; /* Indigo */
    --secondary-color: #8B5CF6; /* Purple */
    --accent-color: #EC4899; /* Pink */
    --success-color: #10B981; /* Emerald */
    --warning-color: #F59E0B; /* Amber */
    --error-color: #EF4444; /* Red */
    --light-bg: #FAFAFA;
    --lighter-bg: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #1F2937; /* Gray-800 */
    --text-muted: #6B7280; /* Gray-500 */
    --text-dim: #9CA3AF; /* Gray-400 */
    --border-color: rgba(99, 102, 241, 0.15);
    --shadow-soft: 0 4px 20px rgba(99, 102, 241, 0.08);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --gradient-secondary: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-accent: linear-gradient(135deg, #EC4899 0%, #6366F1 100%);
    --gradient-bg: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #E2E8F0 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-tech: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--gradient-bg);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Modern Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--gradient-bg);
}

/* Minimalist Grid */
.tech-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
}

.grid-line {
    position: absolute;
    background: var(--primary-color);
    animation: gridFloat 12s ease-in-out infinite;
}

.grid-line:nth-child(1) {
    width: 1px;
    height: 100%;
    left: 25%;
    animation-delay: 0s;
}

.grid-line:nth-child(2) {
    width: 1px;
    height: 100%;
    left: 50%;
    animation-delay: 2s;
}

.grid-line:nth-child(3) {
    width: 1px;
    height: 100%;
    left: 75%;
    animation-delay: 4s;
}

.grid-line:nth-child(4) {
    width: 100%;
    height: 1px;
    top: 25%;
    animation-delay: 6s;
}

.grid-line:nth-child(5) {
    width: 100%;
    height: 1px;
    top: 50%;
    animation-delay: 8s;
}

.grid-line:nth-child(6) {
    width: 100%;
    height: 1px;
    top: 75%;
    animation-delay: 10s;
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: particleDrift 20s linear infinite;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.particle:nth-child(1) {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    top: 25%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    bottom: 35%;
    left: 30%;
    animation-delay: 6s;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    top: 65%;
    right: 25%;
    animation-delay: 9s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    bottom: 25%;
    right: 45%;
    animation-delay: 12s;
    animation-duration: 14s;
}

.particle:nth-child(6) {
    top: 45%;
    left: 55%;
    animation-delay: 15s;
    animation-duration: 11s;
}

.particle:nth-child(7) {
    bottom: 55%;
    left: 75%;
    animation-delay: 18s;
    animation-duration: 17s;
}

.particle:nth-child(8) {
    top: 75%;
    right: 35%;
    animation-delay: 21s;
    animation-duration: 13s;
}

/* Modern Overlay */
.tech-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.02) 0%, transparent 70%);
    animation: overlayPulse 15s ease-in-out infinite;
}

/* Animation Keyframes */
@keyframes gridFloat {
    0%, 100% {
        opacity: 0.03;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.08;
        transform: scaleY(1.05);
    }
}

@keyframes particleDrift {
    0% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
    20% {
        transform: translateY(-30px) translateX(15px) scale(1);
        opacity: 1;
    }
    40% {
        transform: translateY(-60px) translateX(-10px) scale(1.1);
        opacity: 0.8;
    }
    60% {
        transform: translateY(-30px) translateX(8px) scale(0.9);
        opacity: 0.6;
    }
    80% {
        transform: translateY(-10px) translateX(-5px) scale(0.7);
        opacity: 0.4;
    }
    100% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

/* Coming Soon Container */
.coming-soon-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlideIn 1.5s ease-out;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    animation: subtitleFadeIn 1.5s ease-out 0.3s both;
    text-transform: uppercase;
}

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

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

/* Contact Section */
.contact-section {
    margin-bottom: 4rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Contact Cards */
.contact-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.6s;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.25);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.card-icon i {
    color: white;
    font-size: 1.25rem;
}

.card-content h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-container {
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
    animation: containerSlideUp 1.5s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.6s;
}

.contact-container:hover::before {
    left: 100%;
}

.contact-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

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

/* Contact Page Styles */
.contact-page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

/* Contact Info Sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.info-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.6s;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.25);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-header i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: var(--shadow-soft);
}

.info-header h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.page-header {
    margin-bottom: 4rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlideIn 1.5s ease-out;
}

.page-subtitle {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    animation: subtitleFadeIn 1.5s ease-out 0.3s both;
    text-transform: uppercase;
}

.contact-form-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.6s;
}

.contact-form-card:hover::before {
    left: 100%;
}

.contact-form-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.25);
}

/* Form Header */
.form-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    animation: iconPulse 3s ease-in-out infinite;
}

.form-icon i {
    color: white;
    font-size: 1.5rem;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-soft);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-glow);
    }
}

.form-title h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.form-title p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
    font-family: var(--font-primary);
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Enhanced Form Groups */
.contact-form .form-group {
    margin-bottom: 2rem;
}

.contact-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-family: var(--font-primary);
}

.contact-form .form-label i {
    width: 16px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-color);
    backdrop-filter: blur(10px);
    font-weight: 400;
    font-family: var(--font-primary);
    width: 100%;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
    font-family: var(--font-primary);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-primary);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: var(--shadow-soft);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit::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 0.6s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(3px);
}

/* New Message Button */
.btn-new-message {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    cursor: pointer;
}

.btn-new-message::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 0.6s;
}

.btn-new-message:hover::before {
    left: 100%;
}

.btn-new-message:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.contact-form {
    position: relative;
    z-index: 1;
}

.success-message {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-top: 2rem;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.success-icon {
    margin-bottom: 2rem;
}

.success-icon i {
    font-size: 4rem;
    color: var(--success-color);
    animation: pulse 2s ease-in-out infinite;
}

.success-message h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.5rem;
    font-family: var(--font-display);
}

.success-message p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    font-family: var(--font-primary);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
    }
    
    .card-icon i {
        font-size: 1.1rem;
    }
    
    .card-content h4 {
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .form-icon {
        width: 50px;
        height: 50px;
    }
    
    .form-icon i {
        font-size: 1.25rem;
    }
    
    .form-title h3 {
        font-size: 1.75rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .info-header i {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .contact-container {
        padding: 2rem;
    }

    .page-title {
        font-size: 3.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.75rem;
    }

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

    .contact-container {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 2.75rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .contact-form-card {
        padding: 2rem;
    }

    .contact-form .form-control {
        padding: 0.875rem 1rem;
    }

    .btn-submit {
        padding: 0.875rem 1.5rem;
    }

    .success-message {
        padding: 2rem;
    }

    .success-icon i {
        font-size: 3rem;
    }

    .success-message h4 {
        font-size: 1.25rem;
    }

    .success-message p {
        font-size: 0.9rem;
    }
}