* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', Helvetica, sans-serif;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: #222;
    color: #e5e5e5;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

/* Hero Header */
.hero-header {
    width: 100%;
    background: #222;
    position: relative;
    padding-top: 0;
    /* padding-bottom: 80px; */
}

.wrapper {
    width: 1280px;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Navigation - Leven Theme Style */
.header {
    display: block;
    width: 100%;
    padding-bottom: 40px;
    position: relative;
}

header {
    padding: 40px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

@media only screen and (min-width: 991px) {
    .header {
        width: calc(100% + 40px);
        margin-left: -20px;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 1.0px;
}

.logo i {
    height: 45px;
    width: 45px;
    background: #007ced;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo i:hover {
    transform: rotate(360deg);
}

.logo .logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1.5px;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    color: #aaa;
    font-size: 14px;
    letter-spacing: 1.0px;
    transition: color 0.3s;
    position: relative;
    font-weight: 400;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007ced;
    transition: width 0.3s;
}

nav a:hover,
nav a.active {
    color: #fff;
}

nav a.active::after,
nav a:hover::after {
    width: 100%;
}

/* Hero Container - Bootstrap Row Structure */
.container {
    display: flex;
    flex-wrap: wrap;
    margin: 5% 10%;
    /* align-items: center; */
    padding-top: 0;
    padding-bottom: 0;
}

.hero-pic {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.hero-pic-inner {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 18px solid #444;
    box-shadow: 0px 0px 25px 0px rgba(0,0,0,.8);
}

.hero-pic-inner::before {
    content: '';
    display: block;
    padding-bottom: 100%;
}

.hero-pic-inner img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.hero-pic-inner:hover img {
    transform: scale(1.2);
}

.hero-text {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.hero-text h5 {
    color: #999;
    font-size: 15px;
    letter-spacing: 1.0px;
    margin-bottom: 15px;
    font-weight: 400;
    text-transform: none;
}

.hero-text h5 span {
    color: #007ced;
    font-size: 15px;
    font-weight: 400;
}

.hero-text h1 {
    color: #fff;
    font-size: 48px;
    line-height: 56px;
    letter-spacing: 0;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text p {
    font-family: "Poppins", Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75em;
    color: #d5d5d5;
    letter-spacing: 0;
    margin-bottom: 40px;
}

/* Buttons */
.btn-group {
    margin: 0 0 35px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    position: relative;
    padding: 12px 25px;
    margin: 5px 0px;
    background-color: #333;
    color: #fff;
    border: 2px solid #555;
    border-radius: 30px;
    box-shadow: 0px 10px 10px -8px rgba(0,0,0,.78);
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.btn:hover {
    background-color: #d5d5d5;;
    color: #333;
    border-color: #d5d5d5;;
}

.btn.active {
    border-color: #007ced;
}

.btn.active:hover {
    background-color: #007ced;
    color: #fff;
    border-color: #007ced;
}

/* Social Icons */
.social {
    display: flex;
    gap: 15px;
}

.social a {
    display: inline-block;
    width: 34px;
    height: 34px;
    color: #e5e5e5;
    background-color: transparent;
    border: 1px solid #555;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social a:hover {
    color: #fff;
    background-color: #007ced;
    border-color: transparent;
}

.social a i {
    font-size: 16px;
}

/* Section Styles */
.section {
    padding: 40px 0 40px;
    background: #222;
}

/* .section:nth-child(even) {
    background: #282828;
} */

/* Block Title */
.block-title {
    /* margin-bottom: 40px; */
}

.block-title h2 {
    display: inline-block;
    position: relative;
    font-size: 21px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 30px;
    padding-bottom: 7px;
}

.block-title h2:after {
    display: block;
    position: absolute;
    content: '';
    width: 30px;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007ced;
}

.block-title h2:before {
    display: block;
    position: absolute;
    content: '';
    width: 100%;
    height: 2px;
    bottom: 0px;
    left: 0;
    background-color: #353535;
}

.block-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 25px;
}

.block-title h3 i {
    color: #aaa;
    margin-right: 8px;
}
/* What I Do Section - Leven Alternative Style */
.info-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.info-block-w-icon {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding: 0;
}

.ci-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ci-icon i {
    font-size: 48px;
    color: #007ced;
}

.ci-text {
    flex: 1;
}

.ci-text h4 {
    font-size: 18px;
    color: #fff;
    /* margin-bottom: 15px; */
    font-weight: 600;
    margin-top: 5px;
}

.ci-text p {
    color: #e5e5e5;
    line-height: 1.8;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .info-blocks-grid {
        grid-template-columns: 1fr;
    }
}
/* What I Do Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    /* margin-top: 40px; */
}

.service-box {
    background: #333;
    padding: 40px 30px;
    border-radius: 5px;
    border: 1px solid #444;
    transition: all 0.3s;
    text-align: center;
}

.service-box:hover {
    border-color: #007ced;
    box-shadow: 0 0 24px rgba(255, 114, 76, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 42px;
    color: #aaa;
    transition: color 0.3s;
}

.service-box:hover .service-icon i {
    color: #007ced;
}

.service-box h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-box p {
    color: #e5e5e5;
    line-height: 1.8;
    font-size: 14px;
}

/* Resume Section */
.resume-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
    /* margin-top: 40px; */
}

.resume-column {
    position: relative;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 0;
    border-left: 1px solid #282828;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 0;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -36px;
    top: 0;
    width: 11px;
    height: 11px;
    background-color: #333;
    border: 3px solid #007ced;
    border-radius: 50%;
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: -36px;
    top: 0;
    width: 11px;
    height: 11px;
    background-color: #333;
    border-radius: 50%;
}

.timeline-item h5.item-period {
    display: inline-block;
    color: #d5d5d5;
    background-color: #222;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    border-radius: 3px;
}

.timeline-item .item-company {
    display: block;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 10px;
}

.timeline-item h4.item-title {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-item p {
    color: #e5e5e5;
    line-height: 1.8;
    font-size: 14px;
}

/* Skills Section */
.skills-section {
    margin-top: 0;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    /* margin-top: 30px; */
}

.skill-tag {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    border: 1px solid #444;
    color: #e5e5e5;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: default;
}

.skill-tag:hover {
    background: #007ced;
    border-color: #007ced;
    color: #fff;
    transform: translateY(-2px);
}

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #555;
    color: #e5e5e5;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Poppins', Helvetica, sans-serif;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #007ced;
    border-color: #007ced;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    /* margin-top: 40px; */
}

.portfolio-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #333;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #007ced;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-info {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h4 {
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 14px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: #007ced;
    border-radius: 50%;
    transition: all 0.3s;
}

.portfolio-link:hover {
    transform: scale(1.2);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    /* margin-top: 40px; */
}

.contact-info h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info > p {
    color: #e5e5e5;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 20px;
    color: #aaa;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item p {
    color: #e5e5e5;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e5e5;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #007ced;
    border-color: transparent;
    color: #fff;
}

.social-links a i {
    font-size: 16px;
}

/* Contact Form */
.contact-form {
    background: transparent;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: 1px solid #555;
    color: #eee;
    padding: 12px 20px;
    border-radius: 0;
    font-size: 14px;
    font-family: 'Poppins', Helvetica, sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007ced;
    background: transparent;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    cursor: pointer;
    font-family: 'Poppins', Helvetica, sans-serif;
}

/* hCaptcha Styling */
.h-captcha {
    margin: 20px 0;
}

.form-group .h-captcha {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .h-captcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}
/* Footer */
footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    padding: 30px 45px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .resume-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

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

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin-left: 0;
        padding-bottom: 0;
        background: rgba(34, 34, 34, 0.98);
        z-index: 1000;
        border-bottom: 1px solid #333;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        position: relative;
        padding: 15px 20px 15px;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(34, 34, 34, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        display: none;
        border-top: 1px solid #333;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }

    nav.active {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 15px 10px;
        border-bottom: 1px solid #333;
        text-align: left;
    }

    nav a:last-child {
        border-bottom: none;
    }

    .hero-header {
        padding-top: 70px;
        padding-bottom: 60px;
    }

  .container {
        flex-direction: column;
        margin: 5% 5%;
        padding: 0;
    }

    .hero-pic,
    .hero-text {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }

    .hero-pic {
        margin-bottom: 30px;
    }

    .hero-pic-inner {
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 36px;
        line-height: 44px;
    }

    .btn-group,
    .social {
        justify-content: center;
    }

    .block-title h2 {
        font-size: 18px;
    }

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

    .resume-content {
        grid-template-columns: 1fr;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero-pic-inner {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 32px;
        line-height: 40px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .section {
        padding: 40px 0 30px;
    }

    .block-title h2 {
        font-size: 18px;
    }

    .portfolio-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }
}
