/* --- Global Reset & Page Setup --- */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at top left, rgba(254,240,138,0.15), transparent 50%),
                radial-gradient(circle at top right, rgba(233,213,255,0.2), transparent 50%),
                #ffffff;
    min-height: 100vh;
    color: #111827;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.font-ovo {
    font-family: 'Ovo', serif;
}

/* Subtle Section Entrance Animation */
section {
    animation: fadeIn 0.8s ease-in-out;
}

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

/* --- Navbar Layout --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.logo-text .dot {
    color: #ef4444; 
    font-size: 2rem;
    margin-left: 2px;
}

.nav-menu-capsule {
    background-color: rgba(255, 255, 255, 0.60);
    border: 1px solid rgba(229, 231, 235, 0.6);
    padding: 0.6rem 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(10px); 
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    text-decoration: none;
    color: #1f2937;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #9ca3af;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.icon-moon {
    width: 22px;
    height: 22px;
    opacity: 0.8;
}

.btn-connect {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 2.2rem;
    border: 1px solid #6b7280; 
    border-radius: 9999px;
    color: #1f2937;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-connect:hover {
    background-color: #f3f4f6;
}

.icon-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.btn-dark {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-dark:hover {
    background-color: #1f2937;
    border-color: #1f2937;
}

.btn-dark .icon-arrow {
    filter: invert(1);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 4rem;
    padding-top: 50px;
}

.middle-order {
    max-width: 900px;
    padding: 0 2rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.live-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(243, 244, 246, 0.6);
    border: 1px solid rgba(229, 231, 235, 0.8);
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981; 
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.images-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.icon-hand {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-left: 4px;
}

.header-line h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.header-line2 h1 {
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.2;
}

.header-para p {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: #374151;
}   

.items-center {
    margin-top: 2.5rem;
}

.butt {
    display: flex;
    gap: 1.2rem;
}

/* --- About Section --- */
.about-section {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 6%;
}

.about-container {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 4rem;
}

.about-img {
    width: 100%;
    max-width: 320px;
    border-radius: 1.5rem;
    object-fit: cover;
}

.section-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.about-para {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 2rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.card {
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 1.5rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.card-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.75rem;
}

.card-heading {
    font-size: 1.05rem;
    font-weight: 600;
}

.card-text {
    font-size: 0.85rem;
    color: #6b7280;
}

.tools-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
}

.tools-list li {
    width: 50px;
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    transition: transform 0.2s ease;
}

.tools-list li:hover {
    transform: translateY(-3px);
}

.tools-list img {
    width: 24px;
    height: 24px;
}

/* --- Featured Projects Section --- */
.projects-section {
    padding: 6rem 6%;
    text-align: center;
}

.projects-container {
    max-width: 1100px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.project-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h4 {
    font-size: 1.4rem;
    font-weight: 600;
}

.project-type {
    font-size: 0.75rem;
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.project-desc {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tech-tags span {
    font-size: 0.8rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    color: #4b5563;
}

.project-links {
    display: flex;
    gap: 1.2rem;
}

.project-links a {
    text-decoration: none;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.project-links a:hover {
    color: #ef4444;
}

/* --- Work Section --- */
.work-section {
    padding: 6rem 6%;
    text-align: center;
}

.work-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.desc-para {
    max-width: 650px;
    margin: 0 auto 3rem auto;
    color: #4b5563;
    line-height: 1.6;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.hub-card {
    text-decoration: none;
    position: relative;
    min-height: 380px;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.devto-card { background: linear-gradient(135deg, #090d16 0%, #171d2c 100%); }
.gitlab-card { background: linear-gradient(135deg, #fca326 0%, #e24329 100%); }

.hub-card:hover {
    transform: translateY(-8px);
}

.hub-overlay {
    width: 100%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 80%);
}

.hub-tag {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
}

.hub-meta h4 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.hub-meta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.hub-arrow {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-arrow .icon-arrow {
    transform: rotate(-45deg);
}

/* --- Form Interface Styling --- */
.contact-section {
    padding: 6rem 6%;
    text-align: center;
}

.contact-container {
    max-width: 850px;
    margin: 0 auto;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.input-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.03);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 0.6rem;
    padding: 1.1rem 3.5rem;
    background-color: #1f2937;
    border: none;
    border-radius: 9999px;
    color: #ffffff;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-submit:hover { background-color: #000000; }
.btn-submit .icon-arrow { filter: invert(1); }

/* --- Footer Area --- */
.footer-area {
    padding: 4rem 6% 2rem 6%;
    border-top: 1px solid #e5e7eb;
    margin-top: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.footer-email-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: #111827;
}

.icon-mail-ui {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #4b5563;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: #111827;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: #9ca3af; }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; }
    .nav-links { gap: 1.2rem; }
    .header-line2 h1 { font-size: 2.3rem; }
    .butt { flex-direction: column; }
    .about-container { grid-template-columns: 1fr; }
    .info-cards { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .hub-grid { grid-template-columns: 1fr; }
    .input-group { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* --- Dark Theme Overrides --- */
body.dark-theme {
    background: #0f172a;
    color: #f8fafc;
}
body.dark-theme .nav-menu-capsule,
body.dark-theme .card,
body.dark-theme .tools-list li,
body.dark-theme .project-card,
body.dark-theme .form-input,
body.dark-theme .form-textarea {
    background-color: #1e293b;
    color: #f8fafc;
    border-color: #334155;
}
body.dark-theme .nav-links a,
body.dark-theme .btn-connect,
body.dark-theme .card-text,
body.dark-theme .desc-para,
body.dark-theme .project-desc,
body.dark-theme .header-para p,
body.dark-theme .footer-bottom,
body.dark-theme .footer-links a,
body.dark-theme .footer-email-box,
body.dark-theme .project-links a {
    color: #cbd5e1;
}
body.dark-theme .tech-tags span {
    background-color: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
body.dark-theme .icon-moon {
    filter: invert(1);
}