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

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

nav li {
    margin: 0 2rem;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #6a9bd1;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="a"><stop offset="0" stop-color="%23fff" stop-opacity=".1"/><stop offset="1" stop-color="%23fff" stop-opacity="0"/></radialGradient></defs><circle cx="50" cy="50" r="50" fill="url(%23a)"/></svg>') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.angel-wings {
    font-size: 3rem;
    margin: 2rem 0;
    animation: float 3s ease-in-out infinite;
}

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

.dates {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.message {
    font-size: 1.1rem;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 5rem 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #4a5568;
}

/* About Section */
.about-section {
    background: white;
}

.twins-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.twin-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.twin-card:hover {
    transform: translateY(-5px);
}

.twin-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.birth-info, .life-info {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.story {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.story p {
    margin-bottom: 1rem;
}

/* Memories Section */
.memories-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.memory-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.memory-card h4 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Guestbook Section */
.guestbook-section {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.guestbook-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #6a9bd1;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
}

.messages {
    max-width: 800px;
    margin: 0 auto;
}

.message-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.message-author {
    font-weight: 600;
    color: #6a9bd1;
    margin-bottom: 0.5rem;
}

.message-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    section {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 2rem;
    }
}

.char-counter {
    text-align: right;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.char-counter.warning {
    color: #ff6b35;
}

.char-counter.error {
    color: #e74c3c;
}

/* Gallery Link Section */
.gallery-link-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
}

.gallery-invitation {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-invitation h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2em;
}

.gallery-invitation p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.gallery-note {
    font-style: italic;
    font-size: 0.9em;
    color: #888;
    border-left: 3px solid #667eea;
    padding-left: 15px;
    margin: 20px 0;
}

.gallery-button-container {
    margin-top: 30px;
}

.gallery-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.gallery-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.gallery-icon {
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .gallery-invitation {
        margin: 0 20px;
        padding: 30px 20px;
    }
    
    .gallery-invitation h2 {
        font-size: 1.5em;
    }
    
    .gallery-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}

