* {
    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;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    animation: heartbeat 2s infinite;
}

.title i {
    color: #ff6b9d;
    animation: pulse 1.5s infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: #f0f0f0;
    font-weight: 300;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    animation: slideInLeft 0.8s ease-out;
}

.form-card h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

.upload-preview {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: auto;
    max-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-item img,
.preview-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.effects-section {
    margin-top: 30px;
}

.effects-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.effect-category {
    margin-bottom: 20px;
}

.effect-category h4 {
    color: #555;
    margin-bottom: 10px;
    font-size: 1rem;
}

.effect-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.effect-btn,
.style-btn,
.animation-btn {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.effect-btn:hover,
.style-btn:hover,
.animation-btn:hover {
    border-color: #667eea;
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.effect-btn.active,
.style-btn.active,
.animation-btn.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.create-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.create-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.greeting-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    animation: slideInRight 0.8s ease-out;
    position: relative;
    min-height: 600px;
}

.card-background {
    position: relative;
    padding: 40px;
    min-height: 600px;
    background: linear-gradient(135deg, #ffeef8 0%, #f0f8ff 100%);
}

.effects-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.card-content {
    position: relative;
    z-index: 2;
}

.friend-name {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.media-container {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.5);
}

.placeholder-media {
    text-align: center;
    color: #999;
}

.placeholder-media i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.media-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: auto;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-item img,
.media-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.memories-section,
.message-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
    border-left: 4px solid #ff6b9d;
}

.memories-section h3,
.message-section h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.memories-section p,
.message-section p {
    line-height: 1.6;
    color: #555;
}

.friendship-quote {
    text-align: center;
    font-style: italic;
    color: #764ba2;
    font-size: 1.1rem;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.action-btn {
    padding: 12px 20px;
    border: 2px solid #667eea;
    border-radius: 25px;
    background: #fff;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.action-btn:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.create-own-btn {
    animation: popIn 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.create-own-btn::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.5s;
}

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

.create-own-btn i {
    margin-right: 10px;
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
        transform: scale(1.02);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px #667eea, 0 0 10px #667eea, 0 0 15px #667eea;
    }
    50% {
        text-shadow: 0 0 10px #667eea, 0 0 20px #667eea, 0 0 30px #667eea;
    }
}

@keyframes rainbow {
    0% { color: #ff0000; }
    16% { color: #ff8000; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    66% { color: #0080ff; }
    83% { color: #8000ff; }
    100% { color: #ff0000; }
}

/* Effect Classes */
.bounce-animation {
    animation: bounce 2s infinite;
}

.glow-animation {
    animation: glow 2s infinite;
}

.rainbow-animation {
    animation: rainbow 3s infinite;
}

.typewriter-animation {
    overflow: hidden;
    border-right: 2px solid #667eea;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #667eea; }
}

/* Card Styles */
.classic-style {
    background: linear-gradient(135deg, #ffeef8 0%, #f0f8ff 100%);
}

.modern-style {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.vintage-style {
    background: linear-gradient(135deg, #f4e4bc 0%, #e8d5b7 100%);
    filter: sepia(20%);
}

.neon-style {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #00ffff;
}

/* Floating Effects */
.heart {
    position: absolute;
    color: #ff6b9d;
    font-size: 20px;
    animation: float 6s infinite linear;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    color: #ffd700;
    font-size: 16px;
    animation: sparkle 3s infinite;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b9d;
    animation: confetti-fall 3s infinite linear;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: bubble-rise 4s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

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

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes bubble-rise {
    0% {
        transform: translateY(100vh);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-credits {
    margin-bottom: 20px;
}

.footer-credits p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.footer-credits strong {
    font-weight: 600;
    color: #fff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.instagram-btn:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.linkedin-btn:hover {
    background: #0077b5;
    border-color: transparent;
}

.social-btn i {
    font-size: 18px;
}

.social-btn span {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .friend-name {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .action-btn {
        flex: 1 !important;
        min-width: 90px !important;
        max-width: 110px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    
    .effect-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .footer-social {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
    }
    
    .social-btn {
        flex: 1 !important;
        max-width: 160px !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    
    .social-btn span {
        font-size: 11px !important;
    }
    
    .social-btn i {
        font-size: 14px !important;
    }
}

/* Additional mobile breakpoint for very small screens */
@media (max-width: 480px) {
    .action-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
    }
    
    .action-btn {
        flex: 1 !important;
        min-width: 80px !important;
        max-width: 100px !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
    
    .footer-social {
        flex-direction: row !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
    
    .social-btn {
        flex: 1 !important;
        max-width: 140px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    .social-btn span {
        font-size: 10px !important;
    }
    
    .social-btn i {
        font-size: 12px !important;
    }
}