* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 70px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    body {
        align-items: center;
    }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 0;
}

header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
    padding: 0 10px;
}

@media (min-width: 768px) {
    header {
        margin-bottom: 40px;
    }
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.logo-accent {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 1px;
}

main {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.quotes-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .quotes-container {
        gap: 20px;
        margin-bottom: 30px;
    }
}

.quote-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-color);
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.quote-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

@media (min-width: 768px) {
    .quote-card {
        border-radius: 20px;
        padding: 30px 35px;
    }
    
    .quote-card:hover {
        transform: translateY(-3px);
    }
}

@media (hover: none) {
    .quote-card:hover {
        transform: none;
    }
}

.quote-card.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 12px;
    font-style: italic;
    position: relative;
    padding-left: 24px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quote-text::before {
    content: '"';
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.25;
    position: absolute;
    font-family: Georgia, serif;
    left: 0;
    top: -8px;
    line-height: 1;
}

@media (min-width: 480px) {
    .quote-text {
        font-size: 1.2rem;
        line-height: 1.65;
        padding-left: 28px;
    }
    
    .quote-text::before {
        font-size: 2.8rem;
    }
}

@media (min-width: 768px) {
    .quote-text {
        font-size: 1.3rem;
        line-height: 1.7;
        margin-bottom: 15px;
        padding-left: 30px;
    }
    
    .quote-text::before {
        font-size: 3rem;
        top: -10px;
    }
}

.quote-author {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-style: normal;
    padding-left: 24px;
    word-wrap: break-word;
}

.quote-author::before {
    content: '— ';
    opacity: 0.6;
}

.quote-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 24px;
}

@media (min-width: 480px) {
    .quote-author {
        font-size: 0.95rem;
        padding-left: 28px;
    }
    
    .quote-category {
        font-size: 0.8rem;
        letter-spacing: 1.2px;
        padding-left: 28px;
    }
}

@media (min-width: 768px) {
    .quote-author {
        font-size: 1rem;
        margin-bottom: 8px;
        padding-left: 30px;
    }
    
    .quote-category {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        padding-left: 30px;
    }
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .controls {
        margin-bottom: 30px;
    }
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn::before {
    content: '';
    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;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.info {
    text-align: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.info-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .info {
        margin-bottom: 30px;
    }
    
    .info-text {
        font-size: 0.95rem;
    }
}

.info-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 300;
    padding: 20px 10px 10px;
    line-height: 1.5;
    position: relative;
}

.contact-info {
    margin-top: 10px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.visitor-counter {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    margin: 0;
    text-align: left;
}

.visitor-counter:hover {
    opacity: 1;
}

@media (min-width: 768px) {
    footer {
        font-size: 0.85rem;
        padding-top: 20px;
    }
    
    .contact-info {
        font-size: 0.8rem;
    }
    
    .visitor-counter {
        font-size: 0.75rem;
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .visitor-counter {
        font-size: 0.65rem;
        bottom: 8px;
        left: 8px;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.quote-card.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Design */
/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .logo {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }

    .tagline {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

/* Large mobile devices */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    
    .logo {
        font-size: 2rem;
        margin-bottom: 6px;
        letter-spacing: -0.5px;
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }

    .controls {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .quotes-container {
        gap: 14px;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    body {
        padding: 10px;
    }
    
    .logo {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 0.85rem;
    }
    
    header {
        margin-bottom: 20px;
    }
    
    .quote-card {
        padding: 18px 15px;
        border-radius: 14px;
    }
    
    .quote-text {
        font-size: 1rem;
        padding-left: 22px;
    }
    
    .quote-text::before {
        font-size: 2.2rem;
        top: -6px;
    }
    
    .quote-author {
        font-size: 0.85rem;
        padding-left: 22px;
    }
    
    .quote-category {
        font-size: 0.7rem;
        padding-left: 22px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
    }
    
    header {
        margin-bottom: 15px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .quotes-container {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .quote-card {
        padding: 15px 18px;
    }
    
    .quote-text {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .quote-author {
        margin-bottom: 4px;
    }
    
    .info {
        margin-bottom: 15px;
    }
    
    footer {
        padding-top: 10px;
    }
}

/* Prevent text size adjustment on iOS */
@media screen and (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

