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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('../images/background.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Desktop için fixed background */
@media only screen and (min-width: 769px) {
    body {
        background-attachment: fixed;
    }
}

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

header {
    background: #1a1a1a;
    background: rgba(26, 26, 26, 0.95);
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

header h1 {
    color: #dc143c;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    color: #ffffff;
    font-size: 1.1rem;
}

main {
    margin-bottom: 2rem;
}

.appointment-form,
.appointments-list {
    background: #1a1a1a;
    background: rgba(26, 26, 26, 0.9);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.appointments-list {
    margin-top: 2rem;
}

h2 {
    color: #dc143c;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

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

@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

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

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid #333;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background: #2a2a2a;
    color: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #dc143c;
}

select:disabled {
    background-color: #1a1a1a;
    cursor: not-allowed;
    opacity: 0.5;
}

textarea {
    resize: vertical;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0.5rem;
    background: #2a2a2a;
    border: 2px solid #333;
    border-radius: 5px;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    font-weight: normal;
    font-size: 0.9rem;
}

.checkbox-label:hover {
    border-color: #dc143c;
    background: #333;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: #dc143c;
}

.checkbox-label input[type="checkbox"]:checked ~ span {
    color: #dc143c;
    font-weight: 600;
}

.checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: #dc143c;
    background: #1a1a1a;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #dc143c;
    background: -webkit-gradient(linear, left top, right bottom, from(#dc143c), to(#1a1a1a));
    background: -o-linear-gradient(top left, #dc143c 0%, #1a1a1a 100%);
    background: linear-gradient(135deg, #dc143c 0%, #1a1a1a 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
    transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
    -o-transition: transform 0.2s, box-shadow 0.2s;
    transition: transform 0.2s, box-shadow 0.2s;
    transition: transform 0.2s, box-shadow 0.2s, -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
}

.btn-submit:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

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

.appointment-card {
    background: #2a2a2a;
    background: rgba(42, 42, 42, 0.95);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #333;
    border-left: 4px solid #dc143c;
}

.appointment-card h3 {
    color: #dc143c;
    margin-bottom: 0.5rem;
}

.appointment-card p {
    margin: 0.3rem 0;
    color: #ffffff;
}

.appointment-card .service-badge {
    display: inline-block;
    background: #dc143c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.btn-delete {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.btn-delete:hover {
    background: #000000;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #888;
}

footer {
    background: #1a1a1a;
    background: rgba(26, 26, 26, 0.95);
    padding: 1.5rem 0;
    text-align: center;
    color: #888;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.success-message {
    background: #dc143c;
    color: #ffffff;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #dc143c;
}

.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 35px;
    height: 35px;
    color: white;
}

@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-button svg {
        width: 30px;
        height: 30px;
    }
}

/* Yılbaşı Kar Animasyonu */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: #fff;
    font-size: 1.5em;
    opacity: 0.8;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
    font-size: 1.2em;
}

.snowflake:nth-child(2) {
    left: 20%;
    animation-duration: 12s;
    animation-delay: 2s;
    font-size: 1.8em;
}

.snowflake:nth-child(3) {
    left: 30%;
    animation-duration: 8s;
    animation-delay: 4s;
    font-size: 1.5em;
}

.snowflake:nth-child(4) {
    left: 40%;
    animation-duration: 14s;
    animation-delay: 1s;
    font-size: 2em;
}

.snowflake:nth-child(5) {
    left: 50%;
    animation-duration: 11s;
    animation-delay: 3s;
    font-size: 1.3em;
}

.snowflake:nth-child(6) {
    left: 60%;
    animation-duration: 9s;
    animation-delay: 5s;
    font-size: 1.7em;
}

.snowflake:nth-child(7) {
    left: 70%;
    animation-duration: 13s;
    animation-delay: 2s;
    font-size: 1.4em;
}

.snowflake:nth-child(8) {
    left: 80%;
    animation-duration: 10s;
    animation-delay: 4s;
    font-size: 1.6em;
}

.snowflake:nth-child(9) {
    left: 90%;
    animation-duration: 12s;
    animation-delay: 1s;
    font-size: 1.9em;
}

.snowflake:nth-child(10) {
    left: 15%;
    animation-duration: 11s;
    animation-delay: 3s;
    font-size: 1.1em;
}

.snowflake:nth-child(11) {
    left: 65%;
    animation-duration: 9s;
    animation-delay: 5s;
    font-size: 2.1em;
}

.snowflake:nth-child(12) {
    left: 85%;
    animation-duration: 13s;
    animation-delay: 2s;
    font-size: 1.3em;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.header-text {
    flex: 1;
}

.christmas-message {
    font-size: 2.5rem;
    color: #dc143c;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(220, 20, 60, 0.8);
    }
    to {
        text-shadow: 0 0 20px rgba(220, 20, 60, 1), 0 0 30px rgba(220, 20, 60, 0.8);
    }
}

/* Gerçekçi Kar Birikme Efekti */
.snow-ready::before {
    content: '';
    position: absolute;
    top: -25px;
    left: calc(-10px - 10%);
    right: calc(-10px - 10%);
    width: calc(100% + 20px + 20%);
    height: 40px;
    background-image: url('../images/snow.png'), url('../images/snow.png'), url('../images/snow.png'), url('../images/snow.png');
    background-size: 30% 100%, 30% 100%, 30% 100%, 30% 100%;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: 13% top, 38% top, 63% top, 88% top;
    border-radius: 12px 12px 0 0;
    opacity: 0;
    animation: realSnowAccumulate 5s ease-out forwards;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

@keyframes realSnowAccumulate {
    0% {
        opacity: 0;
        height: 0px;
        top: -5px;
    }
    25% {
        opacity: 0.4;
        height: 15px;
        top: -10px;
    }
    50% {
        opacity: 0.7;
        height: 25px;
        top: -15px;
    }
    75% {
        opacity: 0.85;
        height: 35px;
        top: -18px;
    }
    100% {
        opacity: 0.9;
        height: 40px;
        top: -20px;
    }
}

/* Kartlara pozisyon ver */
.appointment-form,
.appointments-list,
.service-info-card,
.info-banner {
    position: relative;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .christmas-message {
        font-size: 2rem;
    }
}



.services-info {
    background: #1a1a1a;
    background: rgba(26, 26, 26, 0.9);
    padding: 4rem 0;
    margin-top: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    color: #dc143c;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.service-info-card {
    background: #2a2a2a;
    background: rgba(42, 42, 42, 0.9);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid #333;
    border-left: 4px solid #dc143c;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.service-info-card h3 {
    color: #dc143c;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-info-card p {
    color: #ffffff;
    line-height: 1.8;
    font-size: 1rem;
}

.info-banner {
    background: #dc143c;
    background: linear-gradient(135deg, #dc143c 0%, #1a1a1a 100%);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #dc143c;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.info-banner h3 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-banner p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .service-info-grid {
        grid-template-columns: 1fr;
    }
    
    .services-info {
        padding: 2rem 0;
    }
}

/* Yıldız Patlaması Animasyonu */
@keyframes starExplosion {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(calc(-50% + var(--end-x)), calc(-50% + var(--end-y))) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--end-x)), calc(-50% + var(--end-y))) scale(0) rotate(360deg);
        opacity: 0;
    }
}
