:root {
    --clr-bg-main: #0f172a;       
    --clr-bg-card: #1e293b;     
    --clr-bg-input: #111827;      
    --clr-primary: #f97316;       
    --clr-text-main: #ffffff;     
    --clr-text-muted: #94a3b8;    
    --clr-border: #484849;
    --clr-border-2: #bababa; 
    --clr-border-g: #05b92c;      
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.6;
    text-rendering: optimizeSpeed;
    display: flex;
    flex-direction: column;
}

main, 
#main {
    flex: 1 0 auto;
    width: 100%;
}

h1, h2, h3, h4, .page-title {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    color: var(--clr-text-main);
}

p {
    color: var(--clr-text-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container,
.page-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100; 
    background-color: var(--clr-bg-main);
    border-bottom: 2px solid var(--clr-primary);
}

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

.brand {
    font-weight: 700;
    color: var(--clr-text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 20px;
}

.brand-mark {
    background-color: transparent;
    color: var(--clr-border-g);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    border: 2px solid var(--clr-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem; 
    margin: 5px;
    margin-right: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--clr-text-main);
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px; 
    background-color: var(--clr-primary); 
    transform: scaleX(0);
    transform-origin: bottom center; 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    color: var(--clr-primary);
}

.nav-toggle {
    display: none;
}

.hero {
    padding: 4rem 0;
    background-color: var(--clr-bg-main);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2.3fr 1.1fr; 
    gap: 3rem;
    align-items: center; 
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    color: var(--clr-primary);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content h1 em {
    font-style: normal;
    color: var(--clr-primary); 
}

.aims {
    font-size: 1.1rem;
    color: var(--clr-text-main);
}

.miva {
    color: var(--clr-primary);
}

.link {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 600;
}

.cta-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.id-card {
    background-color: var(--clr-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-primary);
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.id-card:hover {
    transform: translateY(-5px); 
}

.portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
} 

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.intro {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--clr-border-g);
    justify-content: center;
    letter-spacing: 0.2rem;
}

span.intro {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
}

.btn-primary,
.btn-ghost {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-text-main);
    border: 2px solid var(--clr-primary);
}

.btn-primary:hover {
    background-color: #0a043e; 
    border-color: #d89a09;
    transform: translateY(-2px); 
}

.btn-ghost {
    background-color: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-ghost:hover {
    background-color: rgba(249, 115, 22, 0.1); 
    transform: translateY(-2px);
}

.about-section {
    padding: 4rem 0;
    background-color: var(--clr-bg-main);
    display: block;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.page-title span {
    color: var(--clr-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 2rem;
    align-items: start;
}

.about-column {
    display: flex;
    flex-direction: column;
    gap: 2rem; 
}

.info-card {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: none !important;
    animation: continuousFloat 5s ease-in-out infinite;
    will-change: transform;
}

.about-column:nth-child(1) .info-card:nth-child(1) { border-top: 4px solid #faf153; }
.about-column:nth-child(1) .info-card:nth-child(2) { border-top: 4px solid #22c55e; }
.about-column:nth-child(2) .info-card:nth-child(1) { border-top: 4px solid #3b82f6; }
.about-column:nth-child(2) .info-card:nth-child(2) { border-top: 4px solid #a855f7; }

.info-card h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card p {
    color: var(--clr-text-main);
    line-height: 1.6;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.edu-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.edu-table th, .edu-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--clr-border);
}

.edu-table th {
    background-color: var(--clr-primary);
    color: var(--clr-text-main);
    font-weight: 600;
}

.edu-table tr:hover {
    background-color: rgba(233, 233, 237, 0.05);
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.skills-list li {
    background: var(--clr-bg-input);
    border: 1px solid var(--clr-border-g);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

.video-container {
    margin-top: 15px;
    border-radius: 20px;
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background-color: var(--clr-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--clr-primary);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.project-info p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-link {
    text-decoration: none;
    color: var(--clr-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.planner-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 5rem;
    align-items: start;
    width: 100%;
}

.task-form-card {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.task-form-card h2 {
    font-size: 1.8rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.task-form .form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-muted);
}

.task-form input,
.task-form select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    background-color: var(--clr-bg-input);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.task-form input:focus,
.task-form select:focus {
    border-color: var(--clr-primary);
}

.btn-add-task {
    width: 100%;
    background-color: var(--clr-primary);
    color: var(--clr-text-main);
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

.btn-add-task:hover {
    background-color: #e0620d;
    transform: translateY(-2px);
}

.task-stats-box {
    margin-top: 2rem;
    background-color: var(--clr-bg-input);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--clr-text-muted);
}

.stat-num {
    font-weight: 700;
    color: var(--clr-text-main);
}

.text-green { color: #22c55e !important; }
.text-orange { color: var(--clr-primary) !important; }

.stat-progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--clr-border);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

#stat-progress-fill {
    height: 100%;
    background-color: var(--clr-primary);
    width: 0%;
    transition: width 0.4s ease;
}

.tasks-display-column {
    padding-top: 0.5rem;
}

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

.display-header h2 {
    font-size: 2rem;
    margin: 0;
}

.sub-counter {
    font-size: 0.85rem;
    font-family: monospace;
    color: var(--clr-text-muted);
}

.btn-clear {
    background-color: transparent;
    color: var(--clr-text-main);
    border: 1px solid var(--clr-border);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-clear:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-text-main);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-pill:hover {
    border-color: var(--clr-primary);
}

.filter-pill.active {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    color: var(--clr-bg-main);
    font-weight: 600;
}

.planner-task-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-card-item {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.task-left-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--clr-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.task-checkbox::after {
    content: "✓";
    font-size: 11px;
    color: var(--clr-bg-main);
    display: none;
}

.task-card-item.completed-state .task-checkbox {
    background-color: #22c55e;
    border-color: #22c55e;
}

.task-card-item.completed-state .task-checkbox::after {
    display: block;
}

.task-card-item.completed-state .task-title-text {
    text-decoration: line-through;
    color: var(--clr-text-muted);
}

.task-meta-pills {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.meta-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
}

.task-delete-trigger {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.task-delete-trigger:hover {
    color: #ef4444;
}

.contact-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 750px;
    margin: 0 auto;
}

.contact-box,
.contact-details-card {
    width: 100%;
}

.contact-box {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-text-main);
}

.form-group input, 
.form-group textarea {
    padding: 12px 15px;
    border-radius: var(--radius-md);
    background-color: var(--clr-bg-input);
    border: 1px solid var(--clr-border-g);
    color: var(--clr-text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--clr-primary);
}

.send-btn {
    background-color: var(--clr-border-g);
    color: var(--clr-text-main);
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.send-btn:hover {
    background-color: #04821d; 
    transform: translateY(-2px); 
}

.info-rows-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-row-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--clr-border);
}

.info-row-item:last-child {
    border-bottom: none; 
}

.icon-avatar-box {
    width: 48px;
    height: 48px;
    background-color: var(--clr-bg-input);
    border: 1px solid var(--clr-border-2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-border-g); 
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-row-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.row-label {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.row-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clr-text-main);
    text-decoration: none;
}

a.row-value:hover {
    color: var(--clr-primary);
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--clr-border-2);
    border-radius: 15px; 
    color: var(--clr-text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    background-color: var(--clr-bg-input);
}

.social-pill:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    transform: translateY(-2px); 
}

.form-status {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    display: none; 
}

.status-error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444; 
    border: 1px solid #ef4444;
}

.status-success {
    display: block;
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.site-footer {
    flex-shrink: 0;
    background-color: var(--clr-bg-main);
    color: var(--clr-text-muted);
    padding: 0.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--clr-border);
    width: 100%;
    box-sizing: border-box;
}

@keyframes continuousFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.about-column:nth-child(1) .info-card:nth-child(2) { animation-delay: 1.2s; }
.about-column:nth-child(2) .info-card:nth-child(1) { animation-delay: 0.6s; }
.about-column:nth-child(2) .info-card:nth-child(2) { animation-delay: 1.8s; }

.planner-intro {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    color: var(--clr-text-muted);
}
@media (max-width: 900px) {
    .container,
    .page-container {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .brand {
        margin-left: 20px;
    }

    .contact-grid-wrapper {
        grid-template-columns: 1fr !important; 
        gap: 2rem;
    }

    .nav-toggle {
        display: block; 
        width: 50px;
        height: 40px;
        position: relative;
        cursor: pointer;
        background-color: var(--clr-bg-main);
        border: none;
        margin-right: 20px;
    }

    .nav-toggle::before {
        content: "";
        position: absolute;
        top: 14px;
        left: 15px;
        width: 20px;
        height: 2px;
        background-color: var(--clr-text-main);
        box-shadow: 0 6px 0 var(--clr-text-main), 0 12px 0 var(--clr-text-main);
    }

    .nav-menu {
        display: none; 
        position: absolute;
        top: 70px;                
        left: 50%;
        transform: translateX(-50%); 
        width: 90%;               
        max-width: 400px;         
        background-color: var(--clr-bg-card);
        border: 1px solid var(--clr-border);
        border-radius: var(--radius-lg);
        flex-direction: column;
        align-items: center;    
        text-align: center;
        margin: 0;                
        padding: 2.5rem;         
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
        z-index: 1000;            
    }

    .nav-menu.is-open {
        display: flex; 
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr !important; 
        gap: 2.5rem;
        text-align: center;
        width: 100%;
    }

    .cta-row {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .id-card,
    .info-card {
        width: 100% !important;
        max-width: 100% !important; 
        padding: 1.5rem !important; 
        box-sizing: border-box;
    }

    .portrait {
        height: auto !important; 
        max-height: 350px;
    }

    .hero-content h1 {
        font-size: 2.2rem; 
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .planner-grid {
        grid-template-columns: 1fr !important; 
        width: 100%;
        gap: 2rem;
        padding-left: 0;
        padding-right: 0;
    }

    .task-form-card {
        width: 100% !important; 
        max-width: 100% !important;
        box-sizing: border-box; 
    }

    .btn-add-task {
        width: 100% !important;
        display: block !important;
        position: relative !important; 
        margin-top: 1.5rem;
    }
}