/* ============================================
   STUNNING CONTACT PAGE WITH ADVANCED EFFECTS
   ============================================ */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Advanced Effects */
:root {
    --glow-color: rgba(0, 255, 255, 0.6);
    --glow-size: 20px;
    --particle-color: rgba(0, 255, 255, 0.4);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --pulse-color: rgba(0, 255, 255, 0.3);
}

/* Theme-specific glow effects */
.theme-dark {
    --glow-color: rgba(0, 255, 255, 0.6);
    --particle-color: rgba(0, 255, 255, 0.4);
    --pulse-color: rgba(0, 255, 255, 0.3);
}

.theme-light {
    --glow-color: rgba(210, 105, 30, 0.6);
    --particle-color: rgba(210, 105, 30, 0.4);
    --pulse-color: rgba(210, 105, 30, 0.3);
}

/* Main Layout */
.main-content {
    margin-top: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.contact-main {
    background: var(--bg-primary);
    position: relative;
}

/* ============================================
   PARTICLE BACKGROUND SYSTEM
   ============================================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--particle-color);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
    opacity: 0;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* ============================================
   HERO SECTION WITH INTERACTIVE NAME
   ============================================ */
.contact-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 255, 255, 0.05) 0%,
        transparent 70%
    );
}

.hero-content {
    text-align: center;
    position: relative;
}

/* Name Display with Simple Letters */
.name-display {
    margin-bottom: 3rem;
    position: relative;
}

.name-line {
    display: block;
    margin-bottom: 1rem;
}

.name-line.english {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-shadow: 0 0 30px var(--glow-color);
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.name-part {
    display: inline-flex;
    position: relative;
}

.letter {
    display: inline-block;
    position: relative;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
}

.letter:hover {
    transform: translateY(-10px) scale(1.1);
    text-shadow: 0 10px 30px var(--glow-color);
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */
.contact-two-column {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 1.2rem;
    max-width: 1900px;
    width: 98%;
    margin: 0 auto;
    padding: 0.8rem;
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 10;
}

.left-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0.8rem;
    text-align: left;
}

.right-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
}

/* ============================================
   LEFT COLUMN: NAME DISPLAY & MAIN CONTENT
   ============================================ */
.name-display-section {
    margin-bottom: 2.5rem;
    width: 100%;
}

.main-page-content {
    max-width: 1000px;
    width: 100%;
}

.intro-section {
    margin-bottom: 2rem;
}

.intro-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.15rem;
    text-align: left;
    margin-bottom: 1.5rem;
    max-width: 950px;
    width: 100%;
}

.skills-preview h3 {
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-start;
}

.tech-tag {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(var(--accent-rgb), 0.2);
    transform: translateY(-2px);
}

/* ============================================
   ENHANCED FLOATING ARABIC NAMES SYSTEM - MORE MESSY!
   ============================================ */
.floating-names {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-name {
    position: absolute;
    font-family: 'Amiri', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--glow-color);
    opacity: 0.5;
    transition: all 0.1s ease-out;
    user-select: none;
    white-space: nowrap;
    direction: rtl;
    transform-origin: center;
}

/* Theme-specific styling for floating names */
.theme-dark .floating-name {
    color: var(--accent-color);
    text-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

.theme-light .floating-name {
    color: var(--accent-color);
    text-shadow: 0 0 25px rgba(210, 105, 30, 0.6);
}

/* More scattered and messy positioning for Arabic names */
.floating-name.name-ahmad {
    top: 10%;
    left: 5%;
    transform: rotate(-8deg);
    animation: messyFloat1 20s ease-in-out infinite;
}

.floating-name.name-yehya {
    top: 80%;
    right: 8%;
    transform: rotate(12deg);
    animation: messyFloat2 25s ease-in-out infinite;
}

.floating-name.name-ahmad-2 {
    top: 40%;
    left: 80%;
    transform: rotate(15deg);
    animation: messyFloat3 18s ease-in-out infinite;
    opacity: 0.3;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.floating-name.name-yehya-2 {
    top: 25%;
    right: 30%;
    transform: rotate(-12deg);
    animation: messyFloat4 22s ease-in-out infinite;
    opacity: 0.4;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
}

.floating-name.name-ahmad-3 {
    top: 65%;
    left: 25%;
    transform: rotate(7deg);
    animation: messyFloat5 16s ease-in-out infinite;
    opacity: 0.35;
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}

/* Messy floating animations */
@keyframes messyFloat1 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(-8deg); 
    }
    20% { 
        transform: translateY(-60px) translateX(40px) rotate(-15deg); 
    }
    40% { 
        transform: translateY(30px) translateX(-30px) rotate(-3deg); 
    }
    60% { 
        transform: translateY(-20px) translateX(60px) rotate(-12deg); 
    }
    80% { 
        transform: translateY(50px) translateX(-20px) rotate(-6deg); 
    }
}

@keyframes messyFloat2 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(12deg); 
    }
    25% { 
        transform: translateY(45px) translateX(-50px) rotate(20deg); 
    }
    50% { 
        transform: translateY(-35px) translateX(35px) rotate(5deg); 
    }
    75% { 
        transform: translateY(25px) translateX(-25px) rotate(18deg); 
    }
}

@keyframes messyFloat3 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(15deg); 
    }
    30% { 
        transform: translateY(-40px) translateX(-60px) rotate(25deg); 
    }
    70% { 
        transform: translateY(35px) translateX(40px) rotate(8deg); 
    }
}

@keyframes messyFloat4 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(-12deg); 
    }
    40% { 
        transform: translateY(55px) translateX(45px) rotate(-25deg); 
    }
    80% { 
        transform: translateY(-30px) translateX(-35px) rotate(-5deg); 
    }
}

@keyframes messyFloat5 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(7deg); 
    }
    50% { 
        transform: translateY(-45px) translateX(50px) rotate(18deg); 
    }
}

.floating-name:hover {
    opacity: 0.8;
    transform: scale(1.15);
}

/* ============================================
   RESPONSIVE DESIGN FOR TWO COLUMN LAYOUT
   ============================================ */
@media (max-width: 768px) {
    .contact-two-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
        width: 95%;
    }
    
    .left-column,
    .right-column {
        padding: 1rem;
    }
    
    .left-column {
        text-align: center;
        align-items: center;
    }
    
    .main-page-content {
        max-width: 100%;
    }
    
    .intro-description {
        text-align: center;
    }
    
    .tech-tags {
        justify-content: center;
    }
    
    .name-display-section {
        margin-bottom: 1.5rem;
    }
    
    .intro-title {
        font-size: 1.8rem;
    }
    
    .intro-description {
        font-size: 1rem;
    }
    
    /* Make contact methods stack on mobile */
    .contact-methods-minimal {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .contact-method-minimal {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        gap: 0.8rem;
    }
    
    .method-content-minimal {
        text-align: left;
    }
    
    /* Adjust floating names for mobile */
    .floating-name.name-ahmad-2,
    .floating-name.name-yehya-2,
    .floating-name.name-ahmad-3 {
        display: none; /* Hide extra names on mobile */
    }
}

/* Mini Robot in Bottom Left with Theme Support */
.mini-robot {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    pointer-events: none;
    animation: robotFloat 3s ease-in-out infinite;
}

.robot-body {
    position: relative;
}

.robot-head {
    width: 40px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: 8px 8px 5px 5px;
    position: relative;
    margin-bottom: 2px;
    box-shadow: 0 0 15px var(--accent-color);
}

/* Theme-specific robot styling */
.theme-dark .robot-head {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.theme-light .robot-head {
    box-shadow: 0 0 15px rgba(210, 105, 30, 0.3);
}

.robot-eye {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 12px;
    animation: robotBlink 4s infinite;
}

.robot-eye.left {
    left: 10px;
}

.robot-eye.right {
    right: 10px;
}

.robot-torso {
    width: 35px;
    height: 30px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    position: relative;
    margin: 0 auto;
}

.robot-btn {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: robotPulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

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

@keyframes robotBlink {
    0%, 95% { opacity: 1; }
    96%, 99% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes robotPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 5px var(--accent-color);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 15px var(--accent-color);
    }
}

/* Arabic Name Styling */
.name-line.arabic {
    font-family: 'Amiri', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 1rem;
    direction: rtl;
    text-align: center;
}

.arabic-name {
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--glow-color);
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.arabic-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.8;
}

/* Typing Animation */
.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 2rem;
    text-align: center;
    width: 100%;
}

.typing-text {
    opacity: 0;
    animation: typeWriter 3s steps(40) 1s forwards;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--accent-color);
    font-weight: bold;
}

@keyframes typeWriter {
    0% { width: 0; opacity: 1; }
    99% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   SECTION HEADER WITH ANIMATIONS
   ============================================ */
.contact-section {
    position: relative;
    z-index: 5;
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--accent-color) !important;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.title-icon {
    color: var(--accent-color);
    opacity: 0;
    transform: scale(0);
    animation: iconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.title-icon:first-child {
    animation-delay: 0.2s;
}

.title-icon:last-child {
    animation-delay: 0.6s;
}

.title-text {
    animation: titleSlide 0.8s ease-out 0.4s both;
}

@keyframes iconPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.section-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.section-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Contact Content Layout */
.contact-content {
    max-width: 1200px; /* Consistent with other sections */
    margin: 0 auto;
    width: 100%;
}

.contact-intro {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

/* ============================================
   COMPACT FORM STYLING WITH ICONS
   ============================================ */
.form-container {
    position: relative;
    width: 100%;
    margin-bottom: 0.3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Form Row for Side-by-Side Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.form-group {
    position: relative;
}

.form-group.half {
    position: relative;
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    color: var(--accent-color);
}

/* Updated Input Wrapper */
.input-wrapper {
    position: relative;
    overflow: hidden;
}

/* ============================================
   CONTACT LINKS SECTION (underneath form)
   ============================================ */
.contact-links-section {
    width: 100%;
    margin-top: 0.6rem;
}

.contact-links-section .contact-card {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.theme-light .contact-links-section .contact-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Ultra-Minimal 3-Column Contact Methods */
.contact-methods-minimal {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
}

.contact-method-minimal {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    gap: 0.8rem;
}

.theme-light .contact-method-minimal {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-method-minimal:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.theme-light .contact-method-minimal:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.method-icon-minimal {
    font-size: 1.4rem;
    color: var(--accent-color);
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-content-minimal {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
}

.method-content-minimal .method-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.method-content-minimal .method-detail {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.method-content-minimal a.method-detail:hover {
    color: var(--accent-color);
}

.contact-form {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
}

.theme-light .contact-form {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Form Groups - More Minimal */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

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

.form-label i {
    color: var(--accent-color);
    font-size: 1rem;
}

.required {
    color: #ff6b6b;
    font-weight: bold;
}

/* Minimal Input Styling */
.input-wrapper {
    position: relative;
    overflow: hidden;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.6rem 0.8rem 0.6rem 2.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.theme-light .form-input,
.theme-light .form-textarea {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(var(--accent-color), 0.1);
}

.theme-light .form-input:focus,
.theme-light .form-textarea:focus {
    background: rgba(0, 0, 0, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Error Styling - Minimal */
.form-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    min-height: 1rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.form-error.show {
    opacity: 1;
    transform: translateY(0);
}

/* Minimal Submit Button */
.form-actions {
    text-align: center;
    margin-top: 0.4rem;
}

.submit-btn {
    position: relative;
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
    padding: 0.9rem 2.4rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 160px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--accent-secondary);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Button Ripple Effect */
.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Loading Animation */
.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.submit-btn.loading .btn-loading {
    display: block;
}

/* Form Feedback */
.form-feedback {
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: slideInUp 0.5s ease-out;
}

.form-feedback.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    color: #22c55e;
    border: 2px solid rgba(34, 197, 94, 0.3);
    display: block;
}

.form-feedback.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
    display: block;
}

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

/* ============================================
   MINIMAL CONTACT SIDEBAR
   ============================================ */
.contact-sidebar {
    position: relative;
}

.contact-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    transition: all 0.3s ease;
}

.theme-light .contact-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-card-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-card-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Minimal Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.theme-light .contact-method {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.theme-light .contact-method:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

.method-icon {
    width: 35px;
    height: 35px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.method-content {
    flex: 1;
}

.method-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-size: 1rem;
    font-weight: 500;
}

.method-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.method-action {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.method-action:hover {
    text-decoration: underline;
    color: var(--accent-secondary);
}

.method-action.coming-soon {
    color: var(--text-muted);
    font-style: italic;
}

/* Minimal Contact Footer */
.contact-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-light .contact-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.response-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.response-time i {
    color: var(--accent-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-sidebar {
        order: -1;
    }
    
    .contact-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .name-line.english {
        font-size: clamp(2rem, 6vw, 4rem);
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .intro-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-methods {
        gap: 1rem;
    }
    
    .contact-method {
        padding: 1rem;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Responsive Form Layout */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .contact-two-column {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 80px);
        padding: 0.5rem;
        overflow-x: hidden;
    }
    
    .left-column {
        padding: 0.5rem;
        width: 100%;
        overflow-x: hidden;
    }
    
    .form-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .contact-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
    }
    
    .form-group.half {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        min-height: 40vh;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 0.8rem;
        margin: 0;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.8rem 0.6rem 0.8rem 2.2rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .input-icon {
        left: 8px;
        font-size: 0.8rem;
    }
    
    .submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .intro-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .contact-two-column {
        padding: 0.3rem;
        gap: 1rem;
        min-height: calc(100vh - 60px);
        width: 100%;
        margin: 0;
    }
    
    .left-column {
        padding: 0.3rem;
    }
    
    .name-display-section {
        margin-bottom: 1rem;
    }
    
    .intro-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .intro-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .contact-links-section {
        margin-top: 1rem;
    }
    
    .contact-methods-minimal {
        gap: 0.4rem;
    }
    
    .contact-method-minimal {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    
    .method-icon-minimal {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .method-label {
        font-size: 0.85rem;
    }
    
    .method-detail {
        font-size: 0.8rem;
    }
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px var(--glow-color); }
    50% { text-shadow: 0 0 30px var(--glow-color), 0 0 40px var(--glow-color); }
}

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

@keyframes borderGlow {
    0%, 100% { border-color: rgba(0, 255, 255, 0.2); }
    50% { border-color: rgba(0, 255, 255, 0.6); }
}

/* Extra small devices (phones in landscape, very small phones) */
@media (max-width: 360px) {
    .contact-two-column {
        padding: 0.2rem;
        gap: 0.5rem;
    }
    
    .left-column {
        padding: 0.2rem;
    }
    
    .contact-form {
        padding: 0.5rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.7rem 0.5rem 0.7rem 2rem;
        font-size: 0.85rem;
    }
    
    .input-icon {
        left: 6px;
        font-size: 0.75rem;
    }
    
    .submit-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .intro-title {
        font-size: 1.3rem;
    }
    
    .intro-description {
        font-size: 0.85rem;
    }
    
    .name-line.english {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }
    
    .method-icon-minimal {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .method-label {
        font-size: 0.8rem;
    }
    
    .method-detail {
        font-size: 0.75rem;
    }
}

/* Honeypot (hidden) */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
