/* CSS Variables for Light and Dark Themes */
:root {
    --main-color: #1273de;
    --accent-color: #ffb400;
    --dark-color: #1b1f3b;
    --text-color: #333333;
    --bg-color: #f5f7fb;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --border-color: #e3e6ef;
    --secondary-text: #555;
    --tertiary-text: #666;
    --tag-bg: #eef4ff;
    --pill-bg: #f3f4f6;
    --pill-main-bg: #e0ecff;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
    --main-color: #3b9eff;
    --accent-color: #ffc947;
    --dark-color: #e8eaed;
    --text-color: #e8eaed;
    --bg-color: #0f1419;
    --card-bg: #1a1f2e;
    --header-bg: #151a23;
    --border-color: #2a3441;
    --secondary-text: #b4b9c5;
    --tertiary-text: #9ca3af;
    --tag-bg: #1e2a3a;
    --pill-bg: #1e2530;
    --pill-main-bg: #1e3a5f;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Navigation */
header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--dark-color);
}

.logo span {
    color: var(--main-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--main-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--main-color);
    color: #ffffff;
    border-radius: 999px;
    padding: 0.6rem 1.3rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0f5fb6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 115, 222, 0.3);
}

.btn-outline {
    border-radius: 999px;
    padding: 0.6rem 1.3rem;
    font-size: 0.9rem;
    border: 1px solid var(--main-color);
    background-color: transparent;
    color: var(--main-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 3.5rem 0 3rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-small-title {
    font-size: 0.9rem;
    color: var(--main-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--main-color);
}

.hero-text {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
    max-width: 32rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.hero-meta span strong {
    color: var(--dark-color);
    font-size: 1.05rem;
}

.hero-image {
    background: linear-gradient(135deg, #0f6ad4, #1b1f3b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
    aspect-ratio: 1 / 1;
}

.hero-profile-img {
    width: 115%;
    height: 115%;
}

.badge {
    position: absolute;
    bottom: 1.2rem;
    left: 1.4rem;
    background-color: var(--card-bg);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    box-shadow: var(--shadow-lg);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #31c48d;
}


/* Sections */
section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 0.6rem;
    text-align: center;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--tertiary-text);
    margin-bottom: 2rem;
    text-align: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
}

.about-card {
    background-color: var(--card-bg);
    border-radius: 1.2rem;
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.about-list {
    list-style: none;
    font-size: 0.92rem;
}

.about-list li {
    margin-bottom: 0.5rem;
}

.about-tag {
    display: inline-block;
    background-color: var(--tag-bg);
    color: var(--dark-color);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-size: 0.8rem;
    margin: 0.15rem;
    transition: background-color 0.3s ease;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    font-size: 0.92rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: var(--dark-color);
}

.card p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 0.8rem;
}

.pill {
    display: inline-block;
    font-size: 0.8rem;
    background-color: var(--pill-bg);
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    margin: 0.1rem;
    transition: background-color 0.3s ease;
}

.pill.main {
    background-color: var(--pill-main-bg);
    color: var(--dark-color);
}

/* CTA Section */
.cta {
    background-color: var(--dark-color);
    color: #ffffff;
    border-radius: 1.3rem;
    padding: 2rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.cta p {
    font-size: 0.9rem;
    color: #e5e7eb;
}

.cta-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.cta .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

/* Footer */
footer {
    padding: 1.5rem 0 2rem;
    font-size: 0.85rem;
    color: #777;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    font-size: 0.9rem;
}

.social-links a {
    color: var(--secondary-text);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.social-links a svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.social-links a:hover {
    color: var(--main-color);
}

.social-links a:hover svg {
    transform: translateY(-2px);
}


/* Theme Toggle Button */
.theme-toggle {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: all 0.3s ease;
}

.theme-icon.sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon.moon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .theme-icon.sun {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .theme-icon.moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 1.6rem 1.3rem;
    }
}