    /*
* Resume template
* Created by : Ahmed Essa
* website : www.ahmedessa.net
*/
    /* Table of Content
==================================================
	- Google fonts & font family -
	- typography -
	- General -
    - Preloader -
	- Header -
    - home section -
    - About section -
    - experience section -
    - projects section -
    - Contact section -
    - Responsive media queries -
*/
    /* Google fonts & font family
==================================================*/
    
    @import 'https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i|Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i|Playfair+Display:400,400i,700,700i,900,900i';
    /*
font-family: 'Playfair Display', serif;
font-family: 'Lato', sans-serif;
font-family: 'Open Sans', sans-serif;
*/
    /* typography
==================================================*/
    
    h1 {
        font-family: 'Playfair Display', serif;
        font-size: 80px;
        line-height: 70px;
    }
    
    h4 {
        font-family: 'Lato', sans-serif;
        text-transform: capitalize;
        letter-spacing: 2px;
        position: relative;
        color: #425BB5;
        margin-left: 40px;
        font-weight: 700;
    }
    
    h4:before {
        position: absolute;
        width: 30px;
        left: -40px;
        content: "";
        display: block;
        height: 2px;
        background: #425BB5;
        top: 9px;
    }
    /* General
==================================================*/
    
    body {
        font-family: 'Open Sans', sans-serif;
        font-size: 14px;
        line-height: 24px;
    }
    
    .size-50 {
        font-size: 50px;
        line-height: 50px
    }
    
    .h-50 {
        height: 50px;
    }
    /* preloader
==================================================*/
    
    #preloader {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #fff;
        z-index: 10000
    }
    
    #status,
    .preloader {
        top: 50%;
        left: 50%;
        position: absolute
    }
    
    #status {
        width: 100px;
        height: 100px;
        background-repeat: no-repeat;
        background-position: center;
        margin: -50px 0 0 -50px
    }
    
    .preloader {
        height: 40px;
        width: 40px;
        margin-top: -20px;
        margin-left: -20px
    }
    
    .preloader:before {
        content: "";
        display: block;
        position: absolute;
        left: -1px;
        top: -1px;
        height: 100%;
        width: 100%;
        -webkit-animation: rotation 1s linear infinite;
        animation: rotation 1s linear infinite;
        border: 2px solid #425BB5;
        border-top: 2px solid transparent;
        border-radius: 100%
    }
    
    .preloader>.icon {
        position: absolute;
        top: 50%;
        left: 50%;
        height: 25px;
        width: 10.6px;
        margin-top: -12.5px;
        margin-left: -5.3px;
        -webkit-animation: wink 1s ease-in-out infinite alternate;
        animation: wink 1s ease-in-out infinite alternate
    }
    
    @media only screen and (min-width:768px) {
        .preloader {
            height: 60px;
            width: 60px;
            margin-top: -30px;
            margin-left: -30px
        }
        .preloader:before {
            left: -2px;
            top: -2px;
            border-width: 2px
        }
        .preloader>.icon {
            height: 37.5px;
            width: 15.9px;
            margin-top: -18.75px;
            margin-left: -7.95px
        }
    }
    
    @media only screen and (min-width:1200px) {
        .preloader {
            height: 60px;
            width: 60px;
            margin-top: -30px;
            margin-left: -30px
        }
        .preloader>.icon {
            height: 50px;
            width: 21.2px;
            margin-top: -25px;
            margin-left: -10.6px
        }
    }
    
    @-webkit-keyframes rotation {
        from {
            -webkit-transform: rotate(0);
            transform: rotate(0)
        }
        to {
            -webkit-transform: rotate(359deg);
            transform: rotate(359deg)
        }
    }
    
    @keyframes rotation {
        from {
            -webkit-transform: rotate(0);
            transform: rotate(0)
        }
        to {
            -webkit-transform: rotate(359deg);
            transform: rotate(359deg)
        }
    }
    
    @-webkit-keyframes wink {
        from {
            opacity: 0
        }
        to {
            opacity: 1
        }
    }
    
    @keyframes wink {
        from {
            opacity: 0
        }
        to {
            opacity: 1
        }
    }
    /* Header
==================================================*/
    
    header {
        text-align: center;
        -webkit-transition: all .5s;
        transition: all .5s;
        height: 65px;
    }
    
    nav ul {
        display: inline-block;
        padding-left: 0;
        list-style: none;
        padding: 20px;
        margin-bottom: 0;
        -webkit-transition: all .5s;
        transition: all .5s;
    }
    
    nav li {
        display: inline-block;
        margin: 10px;
    }
    
    nav li a {
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #444;
        font-size: 11px;
        font-weight: bold;
    }
    
    .bg-nav {
        background: #fff;
        border-bottom: 1px solid #f3f3f3
    }
    
    .bg-nav ul {
        padding: 10px;
    }
    
    a:focus {
        color: #444;
        text-decoration: none;
    }
    
    a:hover {
        color: #425BB5;
        text-decoration: none;
    }
    
    a.active {
        color: #425BB5;
    }
    /* home section
==================================================*/
    
    #home {
        background: url(../img/home-bg-2.jpg);
        background-size: auto;
        height: auto;
        min-height: 80vh;
        /* Adjusted for mobile view */
        padding: 20px 0;
        /* Reduced padding */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .table-cell {
        display: table-cell;
        vertical-align: middle;
    }
    
    .disply-table {
        display: table;
        height: 100vh;
        width: 100%;
    }
    /* Give the image's table cell a fixed width and center the image */
    
    #profilediv {
        width: 450px;
        text-align: center;
    }
    /* Add some padding between the text and the image on desktop */
    
    .table-cell:first-child {
        padding-right: 30px;
    }
    /* about section
==================================================*/
    
    #about {
        padding: 100px 0;
    }
    
    .about-img-div img {
        margin: 0 auto;
    }
    
    .about-border {
        position: absolute;
        border: 10px solid #425BB5;
        width: 400px;
        height: 400px;
        top: 40px;
        left: 50px;
        z-index: 1
    }
    /* experience section
==================================================*/
    
    #experience {
        padding: 100px 0;
        background: #f3f3f3
    }
    
    .experience-row {
        padding: 20px 0;
        border-bottom: 1px solid #ddd;
    }
    
    .experience-row h3 {
        font-family: 'Lato', sans-serif;
        text-transform: capitalize;
        letter-spacing: 2px;
        color: #425BB5;
        font-size: 16px;
        font-weight: bold
    }
    
    .experience-row p {
        color: #888;
        margin-top: 20px;
        font-size: 15px;
    }
    
    .experience-row .date {
        color: #000;
        font-size: 17px;
    }
    
    .timeline {
        padding-left: 0;
        list-style: none;
        position: relative;
    }
    
    .timeline:before {
        background-color: black;
        content: '';
        margin-left: -1px;
        position: absolute;
        top: 0;
        left: 2em;
        width: 2px;
        height: 100%;
    }
    
    .timeline-event {
        position: relative;
    }
    
    .timeline-event:hover .timeline-event-icon {
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        background-color: #425BB5;
    }
    
    .timeline-event:hover .timeline-event-thumbnail {
        box-shadow: inset 40em 0 0 0 #425BB5;
    }
    
    .timeline-event-copy {
        padding: 2em;
        position: relative;
        top: -1.875em;
        left: 4em;
        width: 100%;
    }
    
    .timeline-event-copy h3 {
        font-size: 1.75em;
    }
    
    .timeline-event-copy h4 {
        font-size: 1.2em;
        margin-bottom: 1.2em;
    }
    
    .timeline-event-copy strong {
        font-weight: 700;
    }
    
    .timeline-event-copy p:not(.timeline-event-thumbnail) {
        padding-bottom: 1.2em;
    }
    
    .timeline-event-icon {
        -webkit-transition: -webkit-transform 0.2s ease-in;
        transition: -webkit-transform 0.2s ease-in;
        transition: transform 0.2s ease-in;
        transition: transform 0.2s ease-in, -webkit-transform 0.2s ease-in;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        background-color: #425BB5;
        outline: 10px solid #f3f3f3;
        display: block;
        margin: 0.5em 0.5em 0.5em -0.5em;
        position: absolute;
        top: 0;
        left: 2em;
        width: 1em;
        height: 1em;
    }
    
    .timeline-event-thumbnail {
        -moz-transition: box-shadow 0.5s ease-in 0.1s;
        -o-transition: box-shadow 0.5s ease-in 0.1s;
        -webkit-transition: box-shadow 0.5s ease-in;
        -webkit-transition-delay: 0.1s;
        -webkit-transition: box-shadow 0.5s ease-in 0.1s;
        transition: box-shadow 0.5s ease-in 0.1s;
        color: white;
        font-size: 12px;
        font-weight: bold;
        background-color: black;
        box-shadow: inset 0 0 0 0em #425BB5;
        display: inline-block;
        margin-bottom: 1.2em;
        padding: 0.25em 1em 0.2em 1em;
    }
    /* projects section
==================================================*/
    
    #projects {
        padding: 100px 0;
    }
    /* certifications section
==================================================*/
    
    #certification {
        padding: 100px 0;
    }
    
    #certification .col-md-12 {
        margin-bottom: 80px;
    }
    
    #certification .main-container {
        margin-top: 40px;
    }
    
    #certification .portfolio_container {
        margin-top: 100px;
    }
    
    #certification .portfolio_item {
        margin-top: 20px;
    }
    
    #certification .certification-image-container {
        margin-top: 30px;
    }
    /* Rotating text effect for ServiceNow skills */
    
    .rotating-text {
        position: relative;
        display: inline-block;
        transition: transform 0.3s ease;
        cursor: pointer;
    }
    
    .rotating-text:hover {
        transform: rotateY(180deg);
        color: #425BB5;
        font-weight: bold;
    }
    
    .rotating-text::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, #425BB5, #6c757d);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 8px;
        z-index: -1;
    }
    
    .rotating-text:hover::before {
        opacity: 0.1;
    }
    
    #certification .col-md-12:first-child {
        position: relative;
        z-index: 10;
        background: white;
        padding-bottom: 60px;
        margin-bottom: 150px;
    }
    
    .portfolio .categories-grid span {
        font-size: 30px;
        margin-bottom: 30px;
        display: inline-block;
    }
    
    .portfolio .categories-grid .categories ul li {
        list-style: none;
        margin: 20px 0;
    }
    
    .portfolio .categories-grid .categories ul li a {
        display: inline-block;
        color: #60606e;
        padding: 0 10px;
        margin: 0 14px;
        -webkit-transition: all .2s ease-in-out .2s;
        transition: all .2s ease-in-out .2s;
    }
    
    .portfolio .categories-grid .categories ul li a:hover,
    .portfolio .categories-grid .categories ul li a:focus {
        text-decoration: none;
    }
    
    .portfolio .categories-grid .categories ul li a.active {
        background-color: #425BB5;
        padding: 0px 20px;
        color: white;
        text-decoration: none;
    }
    
    .portfolio_filter {
        padding-left: 0;
    }
    
    .portfolio_item {
        position: relative;
        overflow: hidden;
        display: block;
        margin-bottom: 30px;
    }
    
    .portfolio_item .portfolio_item_hover {
        position: absolute;
        top: 0px;
        left: 0px;
        height: 100%;
        width: 100%;
        background-color: #425BB5;
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
        opacity: 0;
        -webkit-transition: all .2s ease-in-out;
        transition: all .2s ease-in-out;
        color: #333;
    }
    
    .portfolio_item .portfolio_item_hover .item_info {
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        padding: 10px;
        width: 100%;
        font-weight: bold;
    }
    
    .portfolio_item .portfolio_item_hover .item_info span {
        display: block;
        color: #fff;
        font-size: 18px;
        -webkit-transform: translateY(-100px);
        transform: translateY(-100px);
        -webkit-transition: all .3s ease-in-out .3s;
        transition: all .3s ease-in-out .3s;
        opacity: 0;
    }
    
    .portfolio_item .portfolio_item_hover .item_info em {
        font-style: normal;
        display: inline-block;
        background-color: #425BB5;
        padding: 5px 20px;
        color: #fff;
        margin-top: 10px;
        -webkit-transform: translateY(100px);
        transform: translateY(100px);
        -webkit-transition: all .3s ease-in-out .3s;
        transition: all .3s ease-in-out .3s;
        opacity: 0;
        font-size: 10px;
        letter-spacing: 2px;
    }
    
    .portfolio_item:hover .portfolio_item_hover {
        opacity: 1;
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    
    .portfolio_item:hover .item_info em,
    .portfolio_item:hover .item_info span {
        opacity: 1;
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    
    .portfolio .categories-grid .categories ul li {
        float: left;
    }
    
    .portfolio .categories-grid .categories ul li a {
        padding: 0 10px;
        -webkit-transition: all .2s ease-in-out .2s;
        transition: all .2s ease-in-out .2s;
    }
    
    .portfolio_filter {
        padding-left: 0;
        display: inline-block;
        margin: 0 auto;
        text-align: center;
    }
    
    .portfolio_item img {
        /* -webkit-filter: grayscale(100%); */
        /* filter: grayscale(100%); */
    }
    
    .portfolio-padding {
        padding: 50px 0;
    }
    
    .portfolio-inner {
        padding-bottom: 0 !important;
        padding-top: 55px;
    }
    
    .modal-content {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0);
        border: none;
    }
    
    .popup-modal {
        background: #fff;
    }
    
    .close-popup-modal {
        float: right;
        margin: 20px;
        font-size: 22px;
        opacity: 0;
        cursor: pointer;
        -webkit-transition: all .3s;
        transition: all .3s;
        -webkit-transition-delay: .6s;
        transition-delay: .6s;
        position: fixed;
        z-index: 100000;
        right: 14px;
    }
    
    .animatedModal-on .close-popup-modal {
        opacity: 1;
    }
    
    .modal-content h2 {
        font-family: 'Playfair Display', serif;
        font-size: 40px;
        line-height: 50px;
    }
    /* contact
==================================================*/
    
    #contact {
        padding: 100px 0;
        background: #f3f3f3
    }
    
    #contact-form input,
    #contact-form textarea {
        height: 50px;
        margin-bottom: 10px;
        border-radius: 0;
    }
    
    #contact-form label {
        display: block;
        margin-bottom: .2em;
        font-size: 13px;
        line-height: 13px;
        font-size: 1.3rem;
        line-height: 1.3rem;
        color: #000;
    }
    
    #contact-form label.error {
        margin-top: 10px;
        margin-bottom: 1em;
        font-size: 12px;
        line-height: 12px;
        font-size: 1.2rem;
        line-height: 1.2rem;
        color: #D33E43;
        margin-left: 10px
    }
    
    #contact-form input[type="text"].error,
    #contact-form input[type="password"].error,
    #contact-form input[type="date"].error,
    #contact-form input[type="datetime"].error,
    #contact-form input[type="datetime-local"].error,
    #contact-form input[type="month"].error,
    #contact-form input[type="week"].error,
    #contact-form input[type="email"].error,
    #contact-form input[type="number"].error,
    #contact-form input[type="search"].error,
    #contact-form input[type="tel"].error,
    #contact-form input[type="time"].error,
    #contact-form input[type="url"].error,
    #contact-form textarea.error {
        border-color: #D33E43
    }
    
    textarea {
        resize: none;
    }
    
    fieldset {
        border: 0px;
        margin: 0;
        padding: 0
    }
    
    .required {
        color: #e9266d
    }
    
    #success,
    #error {
        display: none
    }
    
    #success p,
    #error p {
        display: block;
    }
    
    #success p {
        color: #425BB5;
        font-size: 15px;
        text-align: center;
        padding: 10px;
        border: 2px solid #425BB5;
        margin-top: 10px;
    }
    
    #error p {
        color: #D33E43;
        font-size: 15px;
        text-align: center;
        padding: 10px;
        border: 2px solid #D33E43;
        margin-top: 10px;
    }
    
    #submit {
        background-color: #425BB5;
        color: #fff;
        padding: 10px 40px;
        border-radius: 0;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: bold;
        width: 100%;
    }
    
    .social {
        padding-left: 0;
        list-style: none;
        margin-top: 20px;
    }
    
    .social li {
        float: left;
    }
    
    .social li a {
        color: #333;
        font-size: 35px;
        margin-right: 15px;
        transition: all .3s;
        -webkit-transition: all .3s;
    }
    
    .social li a:hover {
        color: #425BB5;
    }
    
    #profilepic {
        border-radius: 15px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        margin-top: 110px;
        /* Pushes the image down */
    }
    
    .resumediv {
        margin-top: 25px;
        width: 140px;
        height: 40px;
        border-radius: 5px;
        padding-top: 6px;
        padding-bottom: 30px;
        text-align: center;
        font-weight: 500;
        background: transparent;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        display: inline-block;
        border: 1px solid black;
        outline: none;
    }
    /* 
==================================================
    Responsive media queries
==================================================
*/
    /* Mobile Menu Toggle (initially hidden) */
    
    .mobile-menu-toggle {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 1000;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: #425BB5;
        margin: 2px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    /* ==================================================
   Mobile & Portrait Tablet Styles (<= 768px)
================================================== */
    
    @media (max-width: 768px) {
        /* Mobile Menu Toggle */
        .mobile-menu-toggle {
            display: flex;
        }
        /* Navigation */
        nav ul {
            position: fixed;
            top: 0;
            right: -100%;
            width: 70%;
            height: 100vh;
            background: white;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 60px 20px;
            transition: right 0.3s ease;
            z-index: 999;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        }
        nav ul.active {
            right: 0;
        }
        nav li {
            margin: 15px 0;
            width: 100%;
            text-align: center;
            flex: 0 0 auto;
        }
        nav li a {
            font-size: 16px !important;
            padding: 12px 20px !important;
            display: block;
            width: 100%;
            background: rgba(66, 91, 181, 0.1) !important;
            border-radius: 8px;
            transition: all 0.3s ease;
            white-space: nowrap;
            text-align: center;
            min-width: 0;
        }
        nav li a:hover {
            background: #425BB5 !important;
            color: white !important;
            transform: translateX(-5px);
        }
        /* General mobile fixes */
        .container {
            padding: 0 15px;
        }
        .section {
            padding: 40px 0;
        }
        h1.size-50 {
            font-size: 32px;
            line-height: 38px;
            margin-bottom: 0;
        }
        /* Home section mobile - Enhanced for portrait view */
        #home {
            height: auto;
            min-height: 100vh;
            padding: 60px 15px 20px;
            background-image: none;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .disply-table {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: auto;
            gap: 30px;
            width: 100%;
            padding: 20px 0;
        }
        .table-cell {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 10px 0;
            width: 100%;
            order: 1;
        }
        .table-cell h4 {
            font-size: 18px;
            margin-left: 0;
            margin-bottom: 10px;
            color: #425BB5;
            font-weight: 600;
            letter-spacing: 1px;
        }
        .table-cell h4:before {
            display: none;
        }
        .table-cell h1 {
            font-size: 42px;
            line-height: 48px;
            margin-bottom: 20px;
            color: #2c3e50;
            font-weight: 700;
        }
        #profilepic {
            width: 280px;
            height: 280px;
            margin: 0 auto;
            display: block;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-radius: 20px;
            border: 4px solid #fff;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        #profilepic:hover {
            transform: scale(1.05);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        }
        #profilediv {
            width: 100%;
            text-align: center;
            margin-top: 0;
            order: 2;
        }
        #herobtn {
            flex-direction: column;
            gap: 15px;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin-top: 30px;
            order: 3;
        }
        .resumediv {
            width: 180px;
            height: 50px;
            text-align: center;
            padding-top: 12px;
            border: 2px solid #425BB5;
            background: transparent;
            transition: all 0.3s ease;
            border-radius: 8px;
        }
        .resumediv:hover {
            background: #425BB5;
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(66, 91, 181, 0.3);
        }
        .resumediv:hover a {
            color: white;
        }
        .resumediv a {
            color: #425BB5;
            font-weight: 600;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        #githubdiv {
            margin-left: 0;
        }
        /* Skills section mobile */
        .Skills .container-skill .mainSkill {
            flex-direction: column;
            gap: 25px;
        }
        .Skills .container-skill .mainSkill .front,
        .Skills .container-skill .mainSkill .back,
        .Skills .container-skill .mainSkill .tools {
            flex: 1 1 100%;
            width: 100%;
            max-width: 100%;
        }
        .Skills .container-skill .mainSkill .box {
            gap: 10px;
            justify-content: center;
        }
        .Skills .container-skill .mainSkill .front .frontSkill,
        .Skills .container-skill .mainSkill .back .backSkill,
        .Skills .container-skill .mainSkill .tools .toolsSkill {
            font-size: 12px;
            padding: 8px 12px;
            min-width: 120px;
        }
        .Skills .container-skill .mainSkill h2 {
            font-size: 20px;
            margin-bottom: 15px;
        }
        /* Projects section mobile */
        .portfolio_filter {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }
        .portfolio_filter li {
            margin: 5px;
        }
        .portfolio_filter li a {
            padding: 5px 10px;
            font-size: 12px;
        }
        .portfolio_container .col-md-4 {
            width: 100%;
            margin-bottom: 30px;
        }
        .portfolio_item img {
            aspect-ratio: 1 / 1;
            width: 100%;
            height: auto !important;
            object-fit: cover;
        }
        .certification-image-container {
            height: auto;
            aspect-ratio: 1 / 1;
        }
        .certification-image {
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
        #certification .portfolio_item {
            height: auto;
            /* Let content define height */
        }
        /* Contact section mobile */
        #contact .col-md-4,
        #contact .col-md-8 {
            width: 100%;
            margin-bottom: 30px;
        }
        .contact-bg input,
        .contact-bg textarea {
            margin-bottom: 15px;
        }
        /* Education section mobile */
        .timeline:before {
            left: 15px;
        }
        .timeline-event-icon {
            left: 10px;
        }
        .timeline-event-copy {
            width: 100%;
            left: 0;
            padding: 2em 1em 1em 2.5em;
            top: -1.5em;
        }
        .timeline-event-copy h4 {
            font-size: 1.1em;
            font-weight: 600;
            color: #555;
            margin-left: 0;
            margin-bottom: 1em;
        }
        .timeline-event-copy h4:before {
            display: none;
        }
        h4 {
            font-size: 14px;
            margin-left: 20px;
        }
        /* Social icons */
        .social {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }
        /* Certification section mobile fixes */
        #certification .col-md-12:first-child {
            margin-bottom: 15px !important;
        }
        #certification .main-container {
            margin-top: 15px !important;
        }
        #certification .portfolio_container {
            margin-top: 10px !important;
        }
        #certification .portfolio_container .col-md-4 {
            margin-bottom: 15px !important;
        }
    }
    /* ==================================================
   Extra Small Devices (Portrait Phones, <= 480px)
================================================== */
    
    @media (max-width: 480px) {
        /* Extra small devices */
        h1 {
            font-size: 40px;
            line-height: 44px;
        }
        h1.size-50 {
            font-size: 30px;
            line-height: 36px;
        }
        .table-cell h1 {
            font-size: 38px;
            line-height: 42px;
            margin-bottom: 10px;
            /* Tighter spacing */
            order: 2;
        }
        .table-cell h4 {
            font-size: 18px;
            margin-left: 0;
            margin-bottom: 5px;
            /* Tighter spacing */
            margin-top: 0;
            order: 1;
        }
        /* Hide decorative line on h4 for centered mobile layout */
        .table-cell h4:before {
            display: none;
        }
        .disply-table {
            padding-top: 20px;
        }
        #profilediv {
            margin-top: 20px;
            /* Space between buttons and image */
        }
        .Skills .container-skill .mainSkill .front .frontSkill,
        .Skills .container-skill .mainSkill .back .backSkill,
        .Skills .container-skill .mainSkill .tools .toolsSkill {
            font-size: 11px;
            padding: 6px 10px;
            min-width: 100px;
        }
        .portfolio_filter li a {
            font-size: 11px;
            padding: 4px 8px;
        }
        #profilepic {
            width: 200px;
        }
        .timeline-event-copy {
            padding: 1.5em 1em 0.5em 2em;
        }
        .timeline-event-copy h3 {
            font-size: 1.5em;
        }
        #herobtn {
            margin-top: 0;
            /* Gap is now controlled by h1's margin-bottom */
        }
    }
    /* Tablet and medium mobile fixes */
    
    @media (min-width: 481px) and (max-width: 768px) {
        /* Home section tablet */
        .disply-table {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            padding: 40px 20px;
            min-height: auto;
            /* Make section compact */
            height: auto;
        }
        #home {
            min-height: auto;
            /* Override mobile 100vh height and center content */
            display: flex;
            align-items: center;
        }
        .table-cell {
            text-align: left;
            padding: 0;
            width: 50%;
            order: 1;
        }
        #profilediv {
            width: 50%;
            text-align: right;
            order: 2;
        }
        #profilepic {
            width: 220px;
            margin: 0;
            order: 2;
        }
        /* Skills section tablet */
        .Skills .container-skill .mainSkill {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 30px;
        }
        .Skills .container-skill .mainSkill .front,
        .Skills .container-skill .mainSkill .back,
        .Skills .container-skill .mainSkill .tools {
            width: calc(50% - 15px);
            min-width: 250px;
        }
        /* Projects section tablet */
        .portfolio_container .col-md-4 {
            width: 50%;
            margin-bottom: 30px;
        }
        /* Certifications section tablet */
        #certification .portfolio_container .col-md-4 {
            width: 50%;
            margin-bottom: 15px;
        }
        /* Certification spacing tablet */
        #certification .col-md-12:first-child {
            margin-bottom: 15px !important;
        }
        #certification .main-container {
            margin-top: 15px !important;
        }
        #certification .portfolio_container {
            margin-top: 10px !important;
        }
        /* Button alignment tablet */
        #herobtn {
            flex-direction: row;
            gap: 20px;
            justify-content: flex-start;
        }
        .resumediv {
            width: 140px;
        }
    }
    /* Large mobile and small tablet fixes */
    
    @media (min-width: 769px) and (max-width: 991px) {
        /* Home section large mobile */
        .disply-table {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            padding: 60px 40px;
            min-height: auto;
            /* Make section compact */
            height: auto;
        }
        #home {
            min-height: auto;
            /* Override mobile 100vh height and center content */
            display: flex;
            align-items: left;
        }
        .table-cell {
            text-align: left;
            padding-left: 20px;
            width: 50%;
            order: 1;
        }
        #profilediv {
            width: 30%;
            text-align: left;
            order: 2;
        }
        #profilepic {
            width: 130px;
            margin: 0;
            order: 2;
        }
        /* Skills section large mobile */
        .Skills .container-skill .mainSkill {
            flex-direction: row;
            gap: 40px;
        }
        .Skills .container-skill .mainSkill .front,
        .Skills .container-skill .mainSkill .back,
        .Skills .container-skill .mainSkill .tools {
            width: calc(33.33% - 27px);
        }
        /* Projects section large mobile */
        .portfolio_container .col-md-4 {
            width: 50%;
            margin-bottom: 40px;
        }
        /* Certifications section large mobile */
        #certification .portfolio_container .col-md-4 {
            width: 50%;
            margin-bottom: 15px;
        }
        /* Certification spacing large mobile */
        #certification .col-md-12:first-child {
            margin-bottom: 15px !important;
        }
        #certification .main-container {
            margin-top: 15px !important;
        }
        #certification .portfolio_container {
            margin-top: 10px !important;
        }
        /* Button alignment large mobile */
        #herobtn {
            flex-direction: row;
            gap: 30px;
            justify-content: flex-start;
        }
        .resumediv {
            width: 160px;
        }
    }
    
    .resumediv a {
        color: black;
        text-decoration: none;
    }
    
    .resumediv:after {
        position: absolute;
        content: "";
        width: 0;
        height: 100%;
        top: 0;
        right: 0;
        z-index: -1;
        background-color: #425BB5;
        border-radius: 4px;
        transition: all 0.4s ease;
        color: #fff;
    }
    
    .resumediv:hover a {
        color: #fff;
    }
    
    .resumediv:hover:after {
        left: 0;
        width: 100%;
    }
    
    .resumediv:active {
        top: 2px;
    }
    
    .Skills {
        display: block;
        width: 100%;
    }
    
    .Skills .container-skill {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        animation: moveUp 1s ease-in-out;
        position: relative;
        /* Ensure the div can be moved */
    }
    
    .Skills .container-skill .heading {
        font-size: 42px;
        text-align: center;
        font-weight: 600;
        margin-top: 20px;
        color: rgb(242, 243, 244);
    }
    
    .Skills .container-skill .heading h1 {
        padding: 0%;
        margin: 0%;
    }
    
    .Skills .container-skill .Text {
        font-size: 18px;
        text-align: center;
        max-width: 500px;
        color: rgb(177, 178, 179);
    }
    
    .Skills .container-skill .mainSkill {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        margin-top: 30px;
        gap: 30px;
        justify-content: center;
    }
    
    .Skills .container-skill .mainSkill .front,
    .back,
    .datasci,
    .tools {
        width: 100%;
        max-width: 500px;
        background: rgb(255, 255, 255);
        border: 0.1px solid rgb(0, 0, 0);
        border-radius: 16px;
        padding: 18px 36px;
    }
    
    .Skills .container-skill .mainSkill .front h2,
    .back h2,
    .datasci h2,
    .tools h2 {
        text-transform: uppercase;
        letter-spacing: 2px;
        margin: 0%;
        padding: 0%;
        font-size: 24px;
        font-weight: 600;
        color: rgb(0, 0, 0);
        margin-bottom: 20px;
        text-align: center;
    }
    
    .Skills .container-skill .mainSkill .box {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .Skills .container-skill .mainSkill .front .frontSkill,
    .back .backSkill,
    .datasci .datasciSkill,
    .tools .toolsSkill {
        font-size: 14px;
        font-weight: 400;
        color: rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(0, 0, 0, 0.5);
        border-radius: 12px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
    }
    
    .Skills .container-skill .mainSkill .front .box img {
        width: 30px;
        height: 30px;
    }
    
    .Skills .container-skill .mainSkill .back .box img {
        width: 30px;
        height: 30px;
    }
    
    .Skills .container-skill .mainSkill .datasci .box img {
        width: 30px;
        height: 30px;
    }
    
    .Skills .container-skill .mainSkill .tools .box img {
        width: 30px;
        height: 30px;
    }
    
    @keyframes moveUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    #skill-container {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    #education {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    #projects {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    #experience {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    #herobtn {
        /* display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 0px; */
        display: flex;
    }
    
    #githubdiv {
        margin-left: 30px;
    }
    
    .Skills .container-skill .mainSkill .front .frontSkill:hover,
    .back .backSkill:hover,
    .datasci .datasciSkill:hover,
    .tools .toolsSkill:hover {
        transform: translateY(-7px);
        transition: all 0.3s ease;
    }
    /* Certification Styles */
    
    #certification {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    /* Certification heading styles - same as other sections */
    
    #certification h1 {
        font-family: 'Playfair Display', serif;
        font-size: 50px;
        line-height: 50px;
        color: #000;
        margin-bottom: 30px;
        text-align: left;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #certification h4 {
        font-family: 'Lato', sans-serif;
        text-transform: capitalize;
        letter-spacing: 2px;
        position: relative;
        color: #425BB5;
        margin-left: 40px;
        font-weight: 700;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #certification h4:before {
        position: absolute;
        width: 30px;
        left: -40px;
        content: "";
        display: block;
        height: 2px;
        background: #425BB5;
        top: 9px;
    }
    
    .certification-image-container {
        width: 100%;
        height: 250px;
        background: #000;
        border: 3px solid #000;
        border-radius: 8px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .certification-image-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }
    
    .certification-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: all 0.3s ease;
    }
    
    .certification-image-container:hover .certification-image {
        transform: scale(1.05);
    }
    /* Ensure all certification items have equal height */
    
    #certification .portfolio_item {
        height: 320px;
        display: flex;
        flex-direction: column;
    }
    
    #certification .portfolio_item_hover {
        flex-grow: 1;
        display: flex;
        align-items: flex-end;
    }