/* Professional Portfolio Styles */
:root {
    --primary-dark: #0B2545;    /* Deep navy for headings */
    --primary-light: #394F66;   /* Muted steel blue */
    --accent-color: #5BC0DE;    /* Muted cyan/blue accent */
    --text-color: #0B2545;      /* Dark text for cream background */
    --bg-color: #F2F7FA;        /* Light cream-blue background */
    --card-bg: #FFFFFF;         /* White cards for contrast */
    --card-shadow: 0 8px 24px rgba(11, 37, 69, 0.06);
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(180deg, #F7FBFD 0%, var(--bg-color) 100%);
}

/* Tabs navigation */
.tabs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1rem 0 1.25rem;
}
.tab {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: transparent;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background-color 0.12s, color 0.12s, transform 0.08s;
}
.tab:hover {
    background: rgba(91,192,222,0.12);
}
.tab.active {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-1px);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Back to top button */
#back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    border: none;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(11,37,69,0.12);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 1200;
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    #back-to-top { right: 12px; bottom: 12px; width: 40px; height: 40px; }
}

h1 {
    color: var(--primary-dark);
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

/* Typing animation for h1 */
.typing {
    overflow: hidden;
    border-bottom: none;
}

.typing-text {
    display: inline-block;
    animation: typing 3.5s steps(33, end), blink-cursor 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid var(--accent-color);
    padding-right: 0.1em;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-cursor {
    0%, 49% {
        border-right-color: var(--accent-color);
    }
    50%, 100% {
        border-right-color: transparent;
    }
}

h2 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-top: 2rem;
    font-weight: 500;
}

h3 {
    color: var(--primary-light);
    font-size: 1.3rem;
    margin: 1.2rem 0 0.5rem;
    font-weight: 500;
}

img {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

p {
    margin-bottom: 1rem;
    color: rgba(11,37,69,0.9);
}

ul {
    padding-left: 0;
    list-style: none;
}

li {
    margin-bottom: 2rem;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.12s, box-shadow 0.12s;
}

li:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

button {
    background-color: var(--accent-color);
    color: #FFFFFF;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.12s, transform 0.08s;
}

button:hover {
    background-color: #13BCD9;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    li {
        padding: 1rem;
    }
}

/* Skills list styling */
.skills-sublist {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    list-style-type: disc; /* Bullet points */
}

.skills-sublist li {
    margin-bottom: 0.3rem;
    background: none;
    padding: 0;
    border-left: none;
    box-shadow: none;
    transition: none;
}

.skills-sublist li:hover {
    transform: none;
    box-shadow: none;
}

/* Contact/social icon styles */
.contact-list {
    padding-left: 0;
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    padding: 0.35rem 0;
    margin: 0;
    box-shadow: none;
}
.social-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 120px;
    height: auto;
    display: block;
    background: rgba(255,255,255,0.08);
    padding: 8px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 6px 18px rgba(34,211,238,0.08);
    filter: brightness(1.05) contrast(1.05);
}

.social-icon.github {
    width: 140px;
}

@media (max-width: 768px) {
    .social-icon {
        width: 90px;
    }

    .social-icon.github {
        width: 100px;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 1.3rem;
    }
    
    .typing-text {
        animation: typing 3.5s steps(22, end), blink-cursor 0.75s step-end infinite;
    }
}

/* Modal styles for project details */
.project-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    padding: 1rem;
}
.project-modal[aria-hidden="false"] {
    display: flex;
}
.modal-content {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 1.25rem;
    border-radius: 10px;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--accent-color);
    padding: 0.25rem 0.5rem;
    transition: color 0.12s, transform 0.08s;
}
.modal-close:hover {
    color: #13BCD9;
    transform: scale(1.2);
}
.modal-actions {
    margin-top: 1rem;
}
.modal-actions .modal-button,
.modal-actions button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* Ensure project title buttons look like plain text */
.project-open {
    background: none;
    border: none;
    font-size: 1.15rem;
    color: var(--primary-light);
    cursor: pointer;
    padding: 0;
    text-align: left;
}
.project-open:hover {
    text-decoration: underline;
}

/* Disable hover lift/shadow effect for project items (prevents jitter when hovering near titles) */
.project-item {
    transition: none;
}
.project-item:hover {
    transform: none;
    box-shadow: none;
}

/* Resume link styling */
.resume-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    margin-top: 0.8rem;
}

.resume-text {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.12s;
}

.resume-link:hover .resume-text {
    color: var(--accent-color);
}

