/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Grayish color scheme with depth */
    --bg-primary: #1a1a1a;
    --bg-secondary: #121212;
    --bg-tertiary: #242424;
    --bg-card: rgba(36, 36, 36, 0.8);
    --text-primary: #f5f5f5;
    --text-secondary: #d0d0d0;
    --text-muted: #a0a0a0;
    --accent: #8a8a8a;
    --accent-hover: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --hover: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(120, 120, 120, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(100, 100, 100, 0.03) 0px, transparent 50%);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Modern Header Styles */
header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    background: linear-gradient(135deg, #f5f5f5 0%, #d0d0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    background-attachment: fixed;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-link:hover {
    filter: brightness(1.1);
    opacity: 1;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
    color: var(--text-primary);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: hsla(0, 0%, 35%, 1);
    background: linear-gradient(135deg, hsla(0, 0%, 32%, 1) 0%, hsla(0, 0%, 38%, 1) 50%, hsla(0, 0%, 55%, 1) 100%);
    background: -moz-linear-gradient(135deg, hsla(0, 0%, 32%, 1) 0%, hsla(0, 0%, 38%, 1) 50%, hsla(0, 0%, 55%, 1) 100%);
    background: -webkit-linear-gradient(135deg, hsla(0, 0%, 32%, 1) 0%, hsla(0, 0%, 38%, 1) 50%, hsla(0, 0%, 55%, 1) 100%);
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(138, 138, 138, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(160, 160, 160, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(138, 138, 138, 0.4) 20%, rgba(138, 138, 138, 0.6) 50%, rgba(138, 138, 138, 0.4) 80%, transparent 100%);
    opacity: 0.5;
}

@keyframes heroGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.8;
    }
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-line-1,
.hero-line-2 {
    display: block;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    line-height: 1;
}

.hero-line-1 {
    margin-bottom: 0.75rem;
    animation-delay: 0.1s;
    font-size: 0.5em;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hero-line-2 {
    animation-delay: 0.3s;
    position: relative;
}

.hero-line-2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(138, 138, 138, 0.8), transparent);
    animation: lineExpand 1.2s ease-out forwards;
    animation-delay: 0.8s;
}

@keyframes lineExpand {
    to {
        width: 150px;
    }
}


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

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

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    margin-top: 2rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
    position: relative;
    z-index: 1;
}

/* Main Content */
main {
    flex: 1;
    padding: 4rem 0 2rem;
}

.section {
    margin-bottom: 6rem;
    animation: fadeInUp 0.6s ease-out;
}

#instagram.section {
    margin-bottom: 2rem;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

/* Blog Section */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-post {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.blog-post:hover::before {
    transform: translateX(100%);
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-hover);
    background: rgba(36, 36, 36, 0.95);
}

.blog-post h3 {
    color: var(--text-primary);
    margin-bottom: 0.875rem;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.blog-post .meta {
    color: var(--text-muted);
    font-size: 0.813rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-post .excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.938rem;
    margin-bottom: 1.5rem;
}

.blog-post .read-more-link {
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.938rem;
    transition: all 0.3s ease;
    position: relative;
}

.blog-post .read-more-link::after {
    content: '→';
    transition: transform 0.3s ease;
    display: inline-block;
}

.blog-post .read-more-link:hover {
    color: var(--accent);
    gap: 0.75rem;
}

.blog-post .read-more-link:hover::after {
    transform: translateX(4px);
}

/* Instagram Section */
.instagram-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.instagram-button-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #808080 0%, #a0a0a0 50%, #c0c0c0 100%);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.instagram-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.instagram-button:hover::before {
    left: 100%;
}

.instagram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(128, 128, 128, 0.4);
    background: linear-gradient(135deg, #909090 0%, #b0b0b0 50%, #d0d0d0 100%);
    color: var(--text-primary);
}

.instagram-button:active {
    transform: translateY(-1px);
}

.instagram-button svg {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Loading State */
.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 4rem 2rem;
    font-style: italic;
    font-size: 1.125rem;
}

/* Modern Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 0;
}

footer p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(36, 36, 36, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.75rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    line-height: 1;
    padding: 0;
    font-weight: 300;
}

.modal-close:hover {
    background: rgba(160, 160, 160, 0.2);
    transform: rotate(90deg) scale(1.1);
    border-color: var(--border-hover);
}

.modal-header {
    padding: 2.5rem;
    padding-right: 5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: rgba(18, 18, 18, 0.5);
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.modal-meta {
    color: var(--text-muted);
    font-size: 0.938rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1rem;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.modal-body p {
    margin-bottom: 1.5rem;
}

.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4 {
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.modal-body h1 {
    font-size: 2rem;
}

.modal-body h2 {
    font-size: 1.75rem;
}

.modal-body h3 {
    font-size: 1.5rem;
}

.modal-body a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.modal-body a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent-hover);
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.modal-body ul,
.modal-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.75rem;
}

.modal-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
    background: rgba(138, 138, 138, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

.modal-body code {
    background: rgba(138, 138, 138, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.9em;
    color: var(--text-primary);
}

.modal-body pre {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.modal-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    header {
        padding: 1rem 0;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        gap: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }


    main {
        padding: 3rem 0 4rem;
    }

    .section {
        margin-bottom: 4rem;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .blog-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .instagram-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.938rem;
    }

    footer {
        padding: 2rem 0;
        margin-top: 0;
    }

    #instagram.section {
        margin-bottom: 2rem;
    }

    .modal-card {
        width: 95%;
        max-height: 95vh;
        border-radius: 20px;
    }

    .modal-header {
        padding: 1.5rem;
        padding-right: 3.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.375rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: clamp(2.25rem, 10vw, 4rem);
    }

    .hero-line-1 {
        font-size: 0.42em;
        margin-bottom: 0.5rem;
    }

    .hero-line-2::after {
        height: 2px;
    }

    @keyframes lineExpand {
        to {
            width: 80px;
        }
    }

    .hero-subtitle {
        margin-top: 1.5rem;
    }

    .section h2 {
        font-size: 1.75rem;
    }

    .blog-post {
        padding: 1.25rem;
    }

    .blog-post h3 {
        font-size: 1.25rem;
    }

    .instagram-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}
