/* Contact Page Styles */

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-primary);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 20px) scale(1.05);
    }
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Contact Hero Section */
.contact-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

/* Glitch Text Effect */
.glitch-text {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 20px;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: #00ffff;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: #ff00ff;
    z-index: -2;
}

@keyframes glitch-1 {
    0% {
        clip: rect(44px, 450px, 56px, 0);
        transform: translate(0);
    }
    20% {
        clip: rect(10px, 450px, 90px, 0);
        transform: translate(-2px, -2px);
    }
    40% {
        clip: rect(30px, 450px, 70px, 0);
        transform: translate(-2px, 0);
    }
    60% {
        clip: rect(80px, 450px, 20px, 0);
        transform: translate(2px, 0);
    }
    80% {
        clip: rect(25px, 450px, 75px, 0);
        transform: translate(0, -2px);
    }
    100% {
        clip: rect(44px, 450px, 56px, 0);
        transform: translate(0);
    }
}

@keyframes glitch-2 {
    0% {
        clip: rect(65px, 450px, 35px, 0);
        transform: translate(0);
    }
    20% {
        clip: rect(90px, 450px, 10px, 0);
        transform: translate(2px, 2px);
    }
    40% {
        clip: rect(45px, 450px, 55px, 0);
        transform: translate(2px, 0);
    }
    60% {
        clip: rect(15px, 450px, 85px, 0);
        transform: translate(-2px, 0);
    }
    80% {
        clip: rect(70px, 450px, 30px, 0);
        transform: translate(0, 2px);
    }
    100% {
        clip: rect(65px, 450px, 35px, 0);
        transform: translate(0);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }
    10% {
        transform: skew(-1deg);
    }
    20% {
        transform: skew(0deg);
    }
    30% {
        transform: skew(1deg);
    }
    40% {
        transform: skew(0deg);
    }
    100% {
        transform: skew(0deg);
    }
}

/* Typewriter Effect */
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

.typewriter {
    font-family: 'Fira Code', monospace;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent-color);
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 13px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Main Contact Section */
.contact-section {
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Glassmorphism Effect */
.glass-morphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Form Card */
.form-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.form-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Styles */
.contact-form {
    position: relative;
}

.form-group {
    position: relative;
    margin-bottom: 35px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    outline: none;
    transition: all 0.3s ease;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--accent-color);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.4s ease;
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
    left: 0;
}

/* Submit Button */
.submit-btn {
    position: relative;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.submit-btn:hover .btn-bg {
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.send-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .send-icon {
    transform: translate(3px, -3px);
}

/* Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--accent-color);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--accent-color);
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.info-card:hover .card-icon {
    transform: rotateY(180deg);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    transform: scale(1.05);
}

.copy-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.copy-btn:hover {
    background: var(--accent-color);
    color: white;
}

.copy-text,
.copied-text {
    transition: all 0.3s ease;
}

.copied-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.copy-btn.copied .copy-text {
    opacity: 0;
}

.copy-btn.copied .copied-text {
    opacity: 1;
}

.card-hover-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    pointer-events: none;
}

.info-card:hover .card-hover-effect {
    width: 300px;
    height: 300px;
}

/* CTA Section */
.cta-section {
    padding: 30px;
    text-align: center;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 25px;
    color: #10b981;
    font-weight: 500;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Quick Connect Section */
.quick-connect {
    padding: 60px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.03);
}

.quick-connect h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    color: var(--accent-color);
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.link-bg {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: top 0.3s ease;
    z-index: -1;
}

.social-link:hover .link-bg {
    top: 0;
}

.social-link:hover {
    color: white;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .form-card {
        padding: 30px 20px;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .glass-morphism {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .quick-connect {
    background: rgba(255, 255, 255, 0.02);
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form-wrapper,
.contact-info-wrapper {
    animation: fadeIn 0.8s ease-out;
}

.contact-info-wrapper {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* Tilt Effect Styles */
[data-tilt] {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

[data-tilt]:hover {
    transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

/* Email Button Styles */
.contact-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-actions {
    text-align: center;
    padding: 30px 0;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.email-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.email-icon {
    width: 24px;
    height: 24px;
}

.or-divider {
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.or-divider span {
    background: var(--bg-secondary);
    padding: 0 20px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.or-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.direct-email {
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.email-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.email-link:hover {
    text-decoration: underline;
}

.response-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}