/* ============================================================
        iPortfolio style overrides – matches the original template
        ============================================================ */
:root {
    --primary: #149ddd;
    --primary-dark: #0a192f;
    --text-light: #a8b2d1;
    --bg-light: #f4f7fc;
}

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

body {
    font-family: "Roboto", sans-serif;
    color: #272829;
    background: var(--bg-light);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: #37b3ed;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Raleway", sans-serif;
}

/* ---------- Sidebar / Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: var(--primary-dark);
    padding: 0 15px;
    z-index: 999;
    overflow-y: auto;
    transition: all 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 1199px) {
    .header {
        left: -300px;
    }
    .header.show {
        left: 0;
    }
}

.header .profile-img img {
    margin: 15px auto 10px;
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid #2c3f5c;
    object-fit: cover;
    background: #2c3f5c;
}

.header .logo h1 {
    font-size: 24px;
    margin: 0;
    padding: 0;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

.header .social-links {
    margin: 12px 0 18px;
}

.header .social-links a {
    font-size: 18px;
    display: inline-block;
    background: #212f43;
    color: #fff;
    line-height: 1;
    padding: 8px 0;
    margin: 0 4px;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
}

.header .social-links a:hover {
    background: var(--primary);
    color: #fff;
}

/* ---------- Navigation ---------- */
.navmenu {
    width: 100%;
    margin-top: 6px;
}

.navmenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navmenu ul li {
    position: relative;
}

.navmenu ul li a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 400;
    color: #a8b2d1;
    border-radius: 6px;
    transition: 0.3s;
}

.navmenu ul li a i {
    font-size: 20px;
    margin-right: 12px;
    color: #6f8ba0;
}

.navmenu ul li a:hover,
.navmenu ul li a.active {
    color: #fff;
    background: rgba(20, 157, 221, 0.15);
}

.navmenu ul li a:hover i,
.navmenu ul li a.active i {
    color: var(--primary);
}

.header-toggle {
    display: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    padding: 10px 0;
    background: transparent;
    border: none;
    position: absolute;
    top: 12px;
    right: 18px;
}

@media (max-width: 1199px) {
    .header-toggle {
        display: block;
    }
}

/* ---------- Main content ---------- */
.main {
    margin-left: 300px;
    transition: all 0.5s;
}

@media (max-width: 1199px) {
    .main {
        margin-left: 0;
    }
}

/* ---------- Hero Section ---------- */
.hero {
    width: 100%;
    min-height: 100vh;
    background: url('/images/hero.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: right;
    display: flex;
    align-items: center;
    padding: 0 60px;
    margin-bottom: 60px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.30);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.hero p {
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    margin: 0;
}

.hero p span {
    color: var(--primary);
    font-weight: 500;
}

.hero .typed-cursor {
    color: var(--primary);
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }
    .hero p {
        font-size: 18px;
    }
    .hero {
        padding: 0 20px;
        background-position: center;
    }
}

/* ---------- Section Titles ---------- */
.section-title {
    padding-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: #173b6c;
}

.section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 0;
}

.section-title p {
    margin-bottom: 0;
    color: #728394;
}

/* ---------- About ---------- */
.about .content h2 {
    font-weight: 700;
    font-size: 26px;
    color: #173b6c;
}

.about .content ul {
    list-style: none;
    padding: 0;
}

.about .content ul li {
    padding-bottom: 10px;
}

.about .content ul i {
    font-size: 20px;
    padding-right: 4px;
    color: var(--primary);
}

.about .content .fst-italic {
    font-size: 1.05rem;
    color: #5a6a7a;
}

/* ---------- Stats ---------- */
.stats {
    padding: 60px 0;
    background: #f4f7fc;
}

.stats .stats-item {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.stats .stats-item i {
    font-size: 44px;
    color: var(--primary);
    line-height: 0;
    margin-right: 0;
}

.stats .stats-item span {
    font-size: 36px;
    display: block;
    font-weight: 700;
    color: #173b6c;
}

.stats .stats-item p {
    margin: 0;
    font-size: 14px;
    color: #728394;
}

/* ---------- Skills ---------- */
.skills .progress {
    height: 50px;
    display: block;
    background: none;
    border-radius: 0;
    margin-bottom: 20px;
}

.skills .progress .skill {
    padding: 0 0 6px 0;
    margin: 0;
    text-transform: uppercase;
    display: block;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: #173b6c;
}

.skills .progress .skill .val {
    float: right;
    font-style: normal;
}

.skills .progress-bar-wrap {
    background: #e8edf5;
    height: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.skills .progress-bar {
    width: 1px;
    height: 8px;
    background: var(--primary);
    transition: 0.9s;
    border-radius: 6px;
}

/* ---------- Resume ---------- */
.resume .resume-title {
    font-size: 26px;
    font-weight: 700;
    color: #173b6c;
    margin-top: 20px;
    margin-bottom: 20px;
}

.resume .resume-item {
    padding: 0 0 20px 20px;
    margin-top: -2px;
    border-left: 2px solid var(--primary);
    position: relative;
}

.resume .resume-item::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    left: -9px;
    top: 0;
    background: #fff;
    border: 2px solid var(--primary);
}

.resume .resume-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #173b6c;
    margin-bottom: 6px;
}

.resume .resume-item h5 {
    font-size: 14px;
    background: #eef2f6;
    padding: 5px 15px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 8px;
    border-radius: 20px;
    color: #173b6c;
}

.resume .resume-item ul {
    padding-left: 20px;
}

.resume .resume-item ul li {
    padding-bottom: 6px;
    font-size: 14px;
    color: #3d4b5a;
}

.resume .resume-item p {
    color: #3d4b5a;
    font-size: 14px;
}

.resume .resume-item .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.resume .resume-item .tech-stack span {
    background: #e8edf5;
    padding: 2px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    color: #173b6c;
}

/* ---------- Portfolio ---------- */
.portfolio .portfolio-filters {
    padding: 0;
    margin: 0 auto 30px auto;
    list-style: none;
    text-align: center;
}

.portfolio .portfolio-filters li {
    cursor: pointer;
    display: inline-block;
    padding: 6px 18px;
    font-size: 14px;
    font-weight: 500;
    margin: 0 4px 10px 4px;
    border-radius: 30px;
    color: #444;
    background: #eef2f6;
    transition: 0.3s;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
    color: #fff;
    background: var(--primary);
}

.portfolio .portfolio-item {
    margin-bottom: 30px;
}

.portfolio .portfolio-item .portfolio-content {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio .portfolio-item .portfolio-content:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.portfolio .portfolio-item .portfolio-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio .portfolio-item .portfolio-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio .portfolio-item .portfolio-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #173b6c;
    margin-bottom: 4px;
}

.portfolio .portfolio-item .portfolio-info p {
    font-size: 14px;
    color: #728394;
    margin-bottom: 10px;
}

.portfolio .portfolio-item .portfolio-info .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}

.portfolio .portfolio-item .portfolio-info .tech-tags span {
    background: #e8edf5;
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    color: #173b6c;
}

/* ---------- Contact ---------- */
.contact .info-wrap {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contact .info-item {
    margin-bottom: 30px;
}

.contact .info-item i {
    font-size: 24px;
    color: var(--primary);
    background: #eef2f6;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
}

.contact .info-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #173b6c;
    margin-bottom: 4px;
}

.contact .info-item p {
    margin: 0;
    color: #5a6a7a;
}

.contact .php-email-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contact .php-email-form .form-control {
    border-radius: 8px;
    border: 1px solid #e8edf5;
    padding: 12px 16px;
    font-size: 14px;
}

.contact .php-email-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 157, 221, 0.15);
}

.contact .php-email-form button[type="submit"] {
    background: var(--primary);
    border: 0;
    padding: 12px 40px;
    color: #fff;
    border-radius: 40px;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
    cursor: pointer;
}

.contact .php-email-form button[type="submit"]:hover {
    background: #0f7ba8;
}

.contact .php-email-form .loading,
.contact .php-email-form .error-message,
.contact .php-email-form .sent-message {
    display: none;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
}

/* ---------- Footer ---------- */
.footer {
    margin-left: 300px;
    padding: 30px 0;
    background: #f4f7fc;
    border-top: 1px solid #e8edf5;
    text-align: center;
    font-size: 14px;
    color: #5a6a7a;
}

@media (max-width: 1199px) {
    .footer {
        margin-left: 0;
    }
}

/* ---------- Scroll Top ---------- */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    background: var(--primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    display: none;
    transition: 0.3s;
}

.scroll-top.show {
    opacity: 1;
    display: block;
}

.scroll-top:hover {
    background: #0f7ba8;
    color: #fff;
}

/* ---------- utilities ---------- */
.light-background {
    background: #f4f7fc;
}
.dark-background {
    background: var(--primary-dark);
}

.profile-img-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #2c3f5c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    border: 8px solid #2c3f5c;
    margin: 15px auto 10px;
    object-fit: cover;
}

/* responsive tweaks */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    .section-title h2 {
        font-size: 26px;
    }
}