/* --- UNIVERSAL MOBILE CENTER FIX: Counter Title + 2x2 Grid --- */
@media (max-width: 768px) {
    .counter-section {
        display: block !important;
    }

    .countdown-container,
    .counter-container,
    #countdown,
    .stats-container,
    .counter-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 15px !important;
        width: 100% !important;
        max-width: 360px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-items: center !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
    }

    .counter-section h2,
    .stats-container h2,
    .counter-wrapper h2 {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        justify-self: center !important;
        text-align: center !important;
        margin: 0 0 12px 0 !important;
        background: transparent !important;
        border: none !important;
    }

    .time-box,
    .counter-item,
    .counter-box,
    .countdown-item,
    .stat-item {
        width: 100% !important;
        max-width: 160px !important;
        min-width: 140px !important;
        min-height: 100px !important;
        padding: 12px !important;
        border-radius: 16px !important;
        /* Doğa-style radius */
        margin: 0 !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .time-box span,
    .counter-value,
    .counter-number,
    .time-value,
    .stat-number {
        font-size: 2.2rem !important;
        line-height: 1 !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
    }

    .time-box p,
    .counter-label,
    .time-label,
    .stat-label,
    .label {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        opacity: 0.9 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
}

/* --- GLOBAL MOBILE FIX: 2x2 Grid Layout (Forced Standard) --- */
@media (max-width: 768px) {

    .counter-section,
    .counter-wrapper,
    .stats-container,
    #countdown,
    .countdown-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        justify-content: center !important;
        height: auto !important;
    }

    .counter-box,
    .stat-item,
    .time-box,
    .countdown-item {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 5px !important;
        min-height: 100px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        border-radius: 15px !important;
    }

    .count,
    .number,
    .stat-number,
    .counter-number,
    .time-value {
        font-size: 2.2rem !important;
        line-height: 1 !important;
        margin-bottom: 5px !important;
        font-weight: 700 !important;
    }

    .label,
    .stat-label,
    .counter-label,
    .time-label {
        font-size: 0.8rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        opacity: 0.9 !important;
        white-space: nowrap !important;
    }
}

/* Mobile grid title span fix */
@media (max-width: 768px) {

    .counter-section h2,
    .stats-container h2,
    .counter-wrapper h2 {
        grid-column: 1 / -1 !important;
        justify-self: center !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }
}

:root {
    /* Morning Haze Palette (Adapted for Doğa Structure) */
    --primary-color: #2c3e50;
    /* Deep Charcoal/Navy */
    --secondary-color: #fcfcfc;
    /* Pure White Background */
    --accent-color: #d4af37;
    /* Rich Gold */
    --text-color: #333333;
    /* Dark Grey */
    --card-bg: rgba(255, 255, 255, 0.95);
    /* Solid White Glass */
    --font-script: 'Playfair Display', serif;
    --font-main: 'Inter', sans-serif;

    /* Doğa-style Shadows & Transitions */
    --shadow-soft: 0 10px 30px rgba(44, 62, 80, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--secondary-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #fcfcfc 0%, #f0f0f0 100%);
}

/* Animated Background Bubbles (kept as user liked them) */
#particles-js::before,
#particles-js::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    animation: drift 25s infinite alternate ease-in-out;
}

#particles-js::before {
    top: -100px;
    left: -100px;
}

#particles-js::after {
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.05);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 20px;
    flex-direction: column;
}

.title {
    font-family: var(--font-script);
    font-size: 5.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    animation: fadeInDown 2s ease;
    text-shadow: 2px 2px 0px rgba(212, 175, 55, 0.1);
    /* Subtle gold shadow */
    position: relative;
}

.title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    color: #666;
    animation: fadeInUp 2s ease 0.5s forwards;
    opacity: 0;
    letter-spacing: 1px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Cards (Doğa Style) */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle dark border */
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    margin: 20px auto;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.15);
    /* Stronger shadow on hover */
}

/* Sections */
.gallery-section,
.story-section,
.timeline-section,
.video-section,
.counter-section,
.faq-section {
    padding: 100px 20px;
    text-align: center;
}

h2 {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    display: block;
    /* Force full width */
}

h2::before,
h2::after {
    content: '✦';
    /* Minimal star icon instead of leaf */
    font-size: 0.6em;
    vertical-align: middle;
    margin: 0 15px;
    color: var(--accent-color);
    opacity: 0.8;
}

/* Timeline */
.timeline-section {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical Line - Solid & Colored */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    /* Navy Line */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    opacity: 0.8;
}

/* Container */
.timeline-container {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

/* Dots */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: #fff;
    border: 4px solid var(--accent-color);
    /* Gold border */
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition-smooth);
}

.right::after {
    left: -10px;
}

.timeline-container:hover::after {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Content */
.timeline-content {
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition-smooth);
    text-align: left;
    /* Doğa alignment */
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.timeline-content:hover {
    transform: translateY(-5px);
}

/* Arrows */
.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    /* Doğa Position */
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    /* Doğa Position */
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.timeline-content img {
    width: 100%;
    /* Doğa Width */
    max-height: 180px;
    /* Much smaller height */
    object-fit: cover;
    /* Crop to fit */
    margin-bottom: 15px;
    border-radius: 12px;
    /* Doğa Radius */
    transition: transform 0.5s ease;
    box-shadow: none;
    border: none;
    display: block;
}

.timeline-content:hover img {
    transform: scale(1.02);
}

.timeline-text h3 {
    color: var(--primary-color);
    font-family: var(--font-script);
    font-size: 2rem;
    /* Doğa Size */
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left;
}

.timeline-text p {
    text-align: left;
    color: #666;
    font-size: 1rem;
    /* Doğa Size */
    line-height: 1.6;
    margin-bottom: 0;
}

/* Counter */
.counter-section {
    background: #fff;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.time-box {
    background: #fff;
    border: 2px solid var(--primary-color);
    /* Navy Border */
    color: var(--primary-color);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 120px;
    padding: 20px;
}

.time-box span {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: none;
    display: block;
}

.time-box p {
    color: var(--accent-color);
    /* Gold */
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Buttons */
.love-btn,
#new-note-btn {
    background: var(--primary-color);
    color: white;
    font-family: var(--font-main);
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.love-btn:hover,
#new-note-btn:hover {
    background: #1a252f;
    /* Darker navy */
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.4);
}

.heart-container {
    padding: 80px 20px;
    text-align: center;
}

/* Footer */
footer {
    padding: 40px 20px;
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.vinyl-record {
    width: 60px;
    height: 60px;
    background: #2c3e50;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.vinyl-record:hover {
    transform: scale(1.1);
}

.vinyl-record i {
    color: var(--accent-color);
}

/* MOBİL UYUMLULUK */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Arrows for mobile */
    .timeline-container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .left::after,
    .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }

    .timeline-content img {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .title {
        font-size: 3.5rem !important;
    }

    .glass-card {
        padding: 25px;
    }

    h2 {
        font-size: 2.5rem;
    }

    h2::before,
    h2::after {
        display: none;
    }
}