* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', sans-serif; /* Hind Siliguri ফন্ট প্রয়োগ */
    line-height: 1.6;
    background-color: #f8f9fa;
}

h1, h2, h3, .tagline {
    font-family: 'Hind Siliguri', sans-serif; /* Heading এবং ট্যাগলাইনে Hind Siliguri */
}

header {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
    padding: 4rem 2rem; /* কমানো হয়েছে */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.profile-section {
    text-align: left;
    backdrop-filter: blur(10px);
    padding: 2rem 3rem 2rem 2rem; /* right padding ডাবল করা হলো */
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    width: 120px; /* Reduced size */
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 0; /* Removed margin bottom */
    flex-shrink: 0; /* Added */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-text {
    flex: 1; /* Added */
}

.profile-name {
    font-size: 2.2rem; /* 2rem থেকে 2.5rem করা হলো */
    margin-bottom: 0rem; /* 0.1rem থেকে 0rem করা হলো */
    font-weight: 700; /* বোল্ড ভার্সন ব্যবহার করা হলো */
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    border-right: 2px solid #fff;
    animation: typing 5s steps(40) infinite, /* 3.5s থেকে 5s করা হলো */
               blink 0.7s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 400px; /* নির্দিষ্ট width দেওয়া হলো */
}

.profile-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 400px; /* নির্দিষ্ট width দেওয়া হলো */
    height: 3px;
    background: #fff;
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* টাইপরাইটার এনিমেশন আপডেট */
@keyframes typing {
    0% {
        width: 0;
    }
    20%, 70% { /* টাইমিং আপডেট করা হলো */
        width: 400px;
    }
    90%, 100% {
        width: 0;
    }
}

/* কার্সর ব্লিংক এনিমেশন */
@keyframes blink {
    from, to { 
        border-color: transparent;
    }
    50% {
        border-color: #fff;
    }
}

.profession {
    font-size: 1.2rem; /* 1rem থেকে 1.2rem করা হলো */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: none;
    margin-top: 0rem; /* 0.1rem থেকে 0rem করা হলো */
    line-height: 1.2; /* লাইন হাইট কমানো হলো */
    padding-bottom: 10px; /* নিচে 10px প্যাডিং যোগ করা হলো */
}

.header-content {
    flex: 1;
    text-align: center;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.3rem; /* 0.5rem থেকে 0.3rem করা হলো */
    background: linear-gradient(to right, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    font-family: 'Cal Sans', sans-serif;
}

.tagline {
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    color: #e3f2fd;
    font-weight: 400;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    padding-bottom: 50px; /* নিচে 50px স্পেস যোগ করা হলো */
}

h1 {
    color: #0066cc;
}

h2 {
    text-align: center;
    margin: 4rem 0 4rem; /* 2rem থেকে 4rem করা হলো উপরের মার্জিন */
    color: #1a237e;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(26, 35, 126, 0.1);
}

/* মেইন এনিমেটেড বর্ডার */
h2::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 4px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, 
        transparent 0%,
        #1a237e 50%,
        transparent 100%
    );
    animation: borderGlow 3s ease-in-out infinite;
}

/* ডেকোরেটিভ আইকন */
h2::after {
    content: '✦';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #1a237e;
    background: white;
    padding: 0 10px;
    animation: starPulse 2s ease-in-out infinite;
}

/* এনিমেশন */
@keyframes borderGlow {
    0%, 100% {
        width: 150px;
        opacity: 0.5;
    }
    50% {
        width: 200px;
        opacity: 1;
    }
}

@keyframes starPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 1;
    }
}

p {
    color: #333333;
    font-size: 18px;
}

.apps-table {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 50px; /* নিচে 50px স্পেস যোগ করা হলো */
    font-family: 'Hind Siliguri', sans-serif; /* অ্যাপ টেবিলের জন্য Hind Siliguri */
}

.app-row {
    display: flex;
    align-items: center; /* সবকিছু vertical center এ আনা */
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    gap: 2rem;
}

.app-row:last-child {
    border-bottom: none;
}

.app-row.highlight {
    animation: focusHighlight 1s ease-in-out 3;
    transition: all 0.3s ease;
}

/* ফোকাস এনিমেশন */
@keyframes focusHighlight {
    0% {
        background: rgba(33, 150, 243, 0); /* আকাশী কালার - পূর্ণ ট্রান্সপারেন্ট */
    }
    50% {
        background: rgba(33, 150, 243, 0.3); /* আকাশী কালার - হালকা */
    }
    100% {
        background: rgba(33, 150, 243, 0); /* আকাশী কালার - পূর্ণ ট্রান্সপারেন্ট */
    }
}

/* হাইলাইট ক্লাসের স্টাইল */
.highlight-app, .highlight {
    background-color: rgba(33, 150, 243, 0.2); /* আকাশী কালার - খুব হালকা */
    transition: background-color 0.3s ease;
}

.app-info {
    display: flex;
    align-items: center;
    min-width: 280px; /* 300px থেকে 280px করা হলো */
    gap: 1.5rem;
}

.app-logo {
    width: 65px; /* একটু বড় করা হলো */
    height: 65px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.app-logo:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.app-info h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0; /* মার্জিন রিমুভ করা হলো */
    font-family: 'Cal Sans', sans-serif;
}

.platform-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem; /* গ্যাপ বাড়ানো হলো */
    flex: 1;
    justify-content: flex-start;
    align-items: center;
    padding-right: 2rem; /* Added more padding on the right */
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem; /* বড় করা হলো */
    border-radius: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem; /* বড় করা হলো */
}

.download-btn.active {
    opacity: 1;
    cursor: pointer;
    background-color: var(--platform-color);
}

.download-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #94a3b8;
    pointer-events: none;
}

.download-btn.android { --platform-color: #3ddc84; }
.download-btn.ios { --platform-color: #000000; }
.download-btn.windows { --platform-color: #00a4ef; }
.download-btn.web { --platform-color: #4285f4; }
.download-btn.linux { --platform-color: #333333; }
.download-btn.mac { --platform-color: #000000; }

.download-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-btn i {
    margin-right: 0.5rem; /* বড় করা হলো */
    font-size: 1.1em; /* বড় করা হলো */
}

download-btn:active {
    transform: translateY(0);
}

.copy-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1a237e;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.75rem; /* 1.5rem থেকে 0.75rem করা হলো */
    margin-right: 3.5rem;
    padding: 0.5rem;
}

.copy-link-btn i {
    font-size: 0.9rem;
}

.copy-link-btn span {
    display: none;
}

copy-link-btn:hover {
    background: #283593;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.copy-link-btn.copied {
    background: #43a047;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem; /* 1.5rem থেকে 0.75rem করা হলো */
    margin-top: 0.5rem; /* 1rem থেকে 0.5rem করা হলো */
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    width: 40px; /* 45px থেকে 40px করা হলো */
    height: 40px; /* 45px থেকে 40px করা হলো */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* Platform specific colors on hover */
.social-icon:hover .fa-facebook-f {
    color: #1877f2;
}

.social-icon:hover .fa-twitter {
    color: #1da1f2;
}

social-icon:hover .fa-linkedin-in {
    color: #0077b5;
}

.social-icon:hover .fa-github {
    color: #333;
}

.social-icon:hover .fa-youtube {
    color: #ff0000;
}

.company-link {
    color: #c3daff;
    text-decoration: underline; /* Changed from 'none' to 'underline' */
    font-size: 1.3rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.company-link:hover {
    color: #ffffff;
    /* Removed text-decoration: underline since it's already underlined */
}

/* মোবাইল রেসপন্সিভ */
@media (max-width: 768px) {
    header {
        padding: 3rem 1.5rem;
    }

    .hero-section {
        flex-direction: column;
        gap: 2rem;
    }

    .profile-section {
        padding: 1.5rem; /* মোবাইলে সব দিকে সমান প্যাডিং */
        flex-direction: column;
        text-align: center;
        gap: 0.75rem; /* 1.5rem থেকে 0.75rem করা হলো */
    }

    .profile-image {
        margin-bottom: 0.75rem; /* 1.5rem থেকে 0.75rem করা হলো */
    }

    .profile-section {
        width: 100%;
        max-width: 320px;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .app-row {
        flex-direction: column;
        align-items: center; /* Changed from flex-start to center */
        text-align: center;
        padding: 1.5rem; /* 2rem থেকে 1.5rem করা হলো */
    }

    .app-info {
        min-width: 260px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        gap: 0;
    }

    .app-logo {
        width: 80px;
        height: 80px;
        margin: 20px auto; /* Changed from '0 auto' to add vertical margin */
    }

    .app-info h3 {
        font-size: 1.3rem;
        text-align: center;
        margin: 0; /* Removed margin */
        width: 100%;
    }

    .platform-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 0.75rem;
        padding: 0 1rem;
        margin-bottom: 1rem;
        margin-top: 0; /* Removed margin */
    }

    .download-btn {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.9rem;
        justify-content: center;
    }

    .copy-link-btn {
        grid-column: 1 / -1; /* Takes full width */
        margin: 0.75rem auto 0;
        width: 32px;
        height: 32px;
    }

    .social-icons {
        gap: 0.5rem; /* 1rem থেকে 0.5rem করা হলো */
    }

    .social-icon {
        font-size: 1.2rem;
        width: 35px; /* 45px থেকে 35px করা হলো */
        height: 35px; /* 45px থেকে 35px করা হলো */
    }

    .profile-name {
        font-size: 2rem;
        width: 300px; /* কমানো হলো */
    }

    .profile-name::after {
        width: 300px; /* কমানো হলো */
    }

    @keyframes typing {
        0% {
            width: 0;
        }
        20%, 70% {
            width: 300px;
        }
        90%, 100% {
            width: 0;
        }
    }

    .profession {
        font-size: 1.1rem; /* মোবাইলে একটু ছোট থাকবে */
        margin-top: 0rem;
        line-height: 1.2;
        padding-bottom: 8px; /* মোবাইলে একটু কম প্যাডিং */
    }

    h2 {
        margin: 3rem 0 3rem; /* মোবাইলে একটু কম স্পেসিং */
        font-size: 2rem;
    }

    h2::before {
        width: 120px;
    }

    @keyframes borderGlow {
        0%, 100% {
            width: 120px;
        }
        50% {
            width: 160px;
        }
    }

    h2::after {
        font-size: 20px;
    }

    .apps-table {
        margin-bottom: 40px; /* মোবাইলে একটু কম স্পেস */
    }
}

@media (max-width: 480px) {
    header {
        padding: 3rem 1rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        margin-bottom: 0.5rem; /* 0.75rem থেকে 0.5rem করা হলো */
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .app-info h3 {
        font-size: 1.2rem;
    }

    .app-logo {
        width: 70px; /* ছোট ডিভাইসে একটু ছোট আইকন */
        height: 70px;
        margin: 20px auto; /* Added vertical margin for smaller screens too */
    }

    .platform-buttons {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .download-btn {
        padding: 0.4rem;
        font-size: 0.85rem;
    }

    .profile-name {
        font-size: 1.8rem;
        width: 250px; /* আরও কমানো হলো */
        text-align: center;
        white-space: normal; /* টেক্সট wrap করার জন্য */
        height: auto; /* অটো হাইট */
        line-height: 1.2; /* লাইন হাইট যোগ করা হলো */
    }

    .profile-name::after {
        width: 250px; /* আরও কমানো হলো */
    }

    /* এনিমেশন স্পিড আপডেট */
    @keyframes typing {
        0% {
            width: 0;
        }
        50% {
            width: 250px;
        }
        100% {
            width: 0;
        }
    }

    .profile-section {
        gap: 0.5rem; /* 0.75rem থেকে 0.5rem করা হলো */
    }

    .profession {
        font-size: 1rem;
    }

    h2 {
        margin: 2.5rem 0 3rem; /* ছোট ডিভাইসে আরও কম স্পেসিং */
        font-size: 1.8rem;
    }
}

.typing-text {
    display: block;
    white-space: pre-wrap;
    overflow: hidden;
    width: auto; /* Width অটো করা হলো */
    border-right: none; /* নীল লাইন সরানো হলো */
    animation: none; /* অ্যানিমেশন সরানো হলো */
}

.notification-frame {
    position: absolute;
    width: 320px;
    min-height: 80px;
    height: auto;
    max-height: 180px;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.95));
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 16px;
    opacity: 0;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 6px 12px rgba(33, 150, 243, 0.1),
        inset 0 -3px 6px rgba(33, 150, 243, 0.05);
    backdrop-filter: blur(10px);
    animation: frameDraw 1.5s ease-out forwards, frameShake 0.5s ease-in-out 4s;
}

.notification-text {
    padding: 18px 20px;
    color: #1a237e;
    font-size: 18px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow: hidden;
    font-family: 'Noto Serif Bengali', serif;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.notification-text strong {
    font-family: 'Noto Serif Bengali', serif;
    font-weight: 700;
    color: #1565c0;
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
}

@keyframes frameDraw {
    0% {
        opacity: 0;
        transform: scale(0.95) translateX(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes frameShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(3px);
    }
    75% {
        transform: translateX(-3px);
    }
}

.notification-frame.fade-out {
    animation: fadeOut 0.6s ease-in-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
}
