:root {
    --primary-blue: #1a365d;
    --secondary-blue: #2d3748;
    --accent-blue: #3182ce;
    --light-blue: #4299e1;
    --bright-blue: #63b3ed;
    --light-bg: #f7fafc;
    --dark-text: #2d3748;
    --light-text: #ffffff;
    --border-color: #e2e8f0;
    
    /* Card colors - all blue variations */
    --poem-color: #2b6cb0;
    --philosophy-color: #2c5282;
    --micro-poem-color: #3182ce;
    --story-color: #4299e1;
}

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

html {
    font-size: 18px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Hind Siliguri", sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--light-bg);
    overflow-x: hidden;
    width: 100%;
}

.bengali-font {
    font-family: "Noto Serif Bengali", serif;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--light-text);
    padding: 18px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 18px;
    border-radius: 8px;
    filter: brightness(0) invert(1);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 4px;
}

nav ul li a:hover {
    color: var(--light-text);
    background-color: rgba(255,255,255,0.15);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    width: 100%;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

/* Content Links Section */
.content-links {
    padding: 70px 0;
    background-color: white;
    width: 100%;
}

.link-section {
    margin-bottom: 50px;
    text-align: center;
}

.link-section h3 {
    font-size: 2rem;
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
    color: var(--primary-blue);
}

.link-section h3::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent-blue);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Individual Card Styles with Blue Variations */
.link-card {
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    color: white;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.link-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.link-card:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(10%, 10%);
}

.link-card.poem {
    background: linear-gradient(135deg, var(--poem-color), #2c5282);
}

.link-card.poem::before {
    background-color: #1a365d;
}

.link-card.philosophy {
    background: linear-gradient(135deg, var(--philosophy-color), #2a4365);
}

.link-card.philosophy::before {
    background-color: #1a365d;
}

.link-card.micro-poem {
    background: linear-gradient(135deg, var(--micro-poem-color), #3182ce);
}

.link-card.micro-poem::before {
    background-color: #2b6cb0;
}

.link-card.story {
    background: linear-gradient(135deg, var(--story-color), #4299e1);
}

.link-card.story::before {
    background-color: #3182ce;
}

.link-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.link-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.link-card p {
    margin-bottom: 22px;
    font-size: 1.05rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1.05rem;
    border: 2px solid rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.15);
    position: relative;
    z-index: 2;
}

.btn:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.all-writings-link {
    margin-top: 45px;
}

.all-writings-link .btn {
    font-size: 1.3rem;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
}

.all-writings-link .btn:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    transform: translateY(-3px);
}

/* Contact Form Section */
.contact-form {
    padding: 80px 0;
    background: linear-gradient(135deg, #ebf8ff, #bee3f8);
    width: 100%;
}

.contact-form h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    color: var(--primary-blue);
}

.contact-form h3::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: var(--accent-blue);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 1.05rem;
    transition: all 0.3s;
    background-color: #f7fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    background-color: white;
}

.form-group textarea {
    height: 180px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--light-blue), var(--bright-blue));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 130, 206, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--light-text);
    padding: 50px 0 20px;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 260px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-blue);
    bottom: 0;
    left: 0;
}

.footer-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--accent-blue);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.05rem;
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--bright-blue);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 1.05rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .link-section h3 {
        font-size: 1.8rem;
    }
    
    .contact-form h3 {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    nav ul li a {
        font-size: 1rem;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h2 {
        font-size: 1.7rem;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    .link-section h3 {
        font-size: 1.6rem;
    }
    
    .contact-form h3 {
        font-size: 1.7rem;
    }
    
    .footer-section h3 {
        font-size: 1.4rem;
    }
}
