/* Fix logo image visibility and center vertically */
#header .header-inner #logo,
#header #header-wrap #logo {
    display: flex !important;
    align-items: center !important;
}

#header .header-inner #logo a > img.logo-default,
#header #header-wrap #logo a > img.logo-default {
    display: block !important;
    height: 50px;
    width: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

[data-animate] {
    opacity: 0;
}

[data-animate].animated {
    opacity: 1;
}

.president-img {
    height: 100%;
    width: 100%;
    border-radius: 9999px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.president-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 128, 64, 0.4);
}

.president-dev {
    height: 180px;
    width: 180px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ff8040;
    box-shadow: 0 10px 40px rgba(255, 128, 64, 0.3);
    transition: all 0.4s ease;
}

.president-dev:hover {
    border-color: #e66c2c;
    box-shadow: 0 15px 50px rgba(255, 128, 64, 0.5);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.section-heading {
    position: relative;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff8040, #e66c2c);
    border-radius: 2px;
}

.icon-box.effect {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.icon-box.effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 128, 64, 0.15);
}

.icon-box.effect .icon {
    transition: all 0.4s ease;
}

.icon-box.effect:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.icon-box.effect .icon i {
    font-size: 2.5rem;
    color: #ff8040;
    transition: all 0.4s ease;
}

.icon-box.effect:hover .icon i {
    color: #e66c2c;
}

.icon-box.effect h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem;
    transition: color 0.3s ease;
}

.icon-box.effect:hover h3 {
    color: #ff8040;
}

.icon-box.effect p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 128, 64, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #ff8040 0%, #e66c2c 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e66c2c 0%, #cc5a20 100%);
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 128, 64, 0.25);
}

.project-card img {
    height: 280px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover img {
    transform: scale(1.15);
}

.project-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 100%);
    padding: 2rem;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 128, 64, 0.95) 100%);
}

.testimonial-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.testimonial-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 128, 64, 0.2);
}

.counter span {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ff8040, #e66c2c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-box {
    transition: all 0.4s ease;
    padding: 2rem 1rem;
    border-radius: 12px;
}

.counter-box:hover {
    background: rgba(255, 128, 64, 0.05);
    transform: translateY(-5px);
}

.counter-box .icon i {
    transition: all 0.4s ease;
}

.counter-box:hover .icon i {
    transform: scale(1.2);
}

.grid.grid-4-columns li {
    transition: all 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
}

.grid.grid-4-columns li:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.grid.grid-4-columns li img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.grid.grid-4-columns li:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

blockquote {
    position: relative;
    transition: all 0.4s ease;
}

blockquote:hover {
    transform: translateX(10px);
}

blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: #ff8040;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.slide-captions h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-captions .btn {
    margin: 0.5rem;
}

#footer .widget-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

#footer .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ff8040;
}

#footer .list li {
    transition: all 0.3s ease;
    padding: 5px 0;
}

#footer .list li:hover {
    padding-left: 10px;
}

#footer .list li a {
    transition: color 0.3s ease;
}

#footer .list li:hover a {
    color: #ff8040 !important;
}

.social-icons li a {
    transition: all 0.3s ease;
}

.social-icons li a:hover {
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .president-dev {
        height: 150px;
        width: 150px;
    }
    
    .icon-box.effect {
        padding: 1.5rem;
    }
    
    .project-card img {
        height: 220px;
    }
    
    .testimonial-item {
        padding: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* Page Title Responsive */
    #page-title h1 {
        font-size: 2rem;
    }
    
    #page-title .page-title span {
        font-size: 1rem;
    }
    
    /* Article/Event pages */
    .article-featured-image img {
        height: 300px !important;
    }
    
    .article-content {
        font-size: 16px !important;
    }
    
    /* Sidebar widgets */
    .widget {
        margin-bottom: 20px;
    }
    
    /* Project detail */
    .project-description .lead {
        font-size: 1.1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4,
    #footer .col-lg-8 {
        margin-bottom: 30px;
    }
    
    /* Navigation */
    #mainMenu {
        background: #fff;
    }
    
    #mainMenu nav > ul > li > a {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }
    
    /* Topbar */
    #topbar .top-menu {
        justify-content: center;
        text-align: center;
    }
    
    #topbar .top-menu li {
        margin: 5px 10px;
    }
    
    /* Breadcrumb */
    .breadcrumb ul {
        flex-wrap: wrap;
    }
    
    .breadcrumb-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .president-dev {
        height: 120px;
        width: 120px;
    }
    
    .icon-box.effect {
        margin-bottom: 1rem;
    }
    
    .project-card img {
        height: 200px;
    }
    
    .counter span {
        font-size: 2rem;
    }
    
    .cta-section .btn {
        display: block;
        margin: 0.5rem auto;
        width: 80%;
    }
    
    blockquote {
        padding-left: 20px !important;
    }
    
    blockquote::before {
        font-size: 3rem;
        top: -10px;
        left: 0;
    }
    
    /* Page Title Mobile */
    #page-title {
        padding: 80px 0 40px;
    }
    
    #page-title h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    #page-title .page-title span {
        font-size: 0.9rem;
    }
    
    /* Article/Event Mobile */
    .article-featured-image img {
        height: 220px !important;
    }
    
    .article-content {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    
    .article-meta {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .article-meta > div {
        margin-right: 0 !important;
    }
    
    .share-buttons {
        text-align: center;
    }
    
    /* Post item on mobile */
    .post-item .post-image img {
        height: 200px !important;
    }
    
    .post-item-description h2 {
        font-size: 1.2rem;
    }
    
    .post-item-description p {
        font-size: 0.9rem;
    }
    
    /* Sidebar mobile - stack under content */
    .col-lg-4[data-animate="fadeInRight"] {
        margin-top: 40px;
    }
    
    /* Widget mobile */
    .widget {
        padding: 20px;
        background: #f9f9f9;
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
    
    /* Post thumbnail list mobile */
    .post-thumbnail-entry {
        flex-direction: row !important;
    }
    
    .post-thumbnail-entry img {
        width: 70px !important;
        height: 50px !important;
    }
    
    /* Project detail mobile */
    .project-description {
        padding: 0 10px;
    }
    
    .feature-list li {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    /* Card on sidebar mobile */
    .card {
        margin-bottom: 15px !important;
    }
    
    .card-body {
        padding: 15px !important;
    }
    
    /* Navigation buttons mobile */
    .mt-5.pt-4.border-top .row {
        gap: 20px;
    }
    
    .mt-5.pt-4.border-top .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center !important;
    }
    
 
    #header .header-inner #logo a > img.logo-default,
    #header #header-wrap #logo a > img.logo-default {
        display: none !important;
    }
    
    /* Heading sections mobile */
    .heading-text h2 {
        font-size: 1.4rem;
    }
    
    .heading-text .lead {
        font-size: 0.95rem;
    }
    
    /* Footer mobile */
    #footer .row > div {
        margin-bottom: 25px;
    }
    
    #footer .widget-title {
        font-size: 1.1rem;
    }
    
    #footer .list li {
        padding: 4px 0;
    }
    
    /* Topbar mobile */
    #topbar {
        padding: 8px 0;
    }
    
    #topbar .top-menu {
        flex-direction: column;
        gap: 5px;
    }
    
    #topbar .top-menu li a {
        font-size: 0.85rem;
    }
    
    /* CTA section mobile */
    .cta-section h2,
    .cta-section h3 {
        font-size: 1.3rem;
    }
    
    .cta-section p {
        font-size: 0.95rem;
    }
    
    .cta-section .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    /* Timeline mobile */
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-item:before {
        width: 15px;
        height: 15px;
    }
    
    .timeline-item:after {
        left: 6px;
    }
    
    .timeline-item h5 {
        font-size: 1rem;
    }
    
    .timeline-item p {
        font-size: 0.9rem;
    }
    
    /* Info box mobile */
    .info-box {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .info-box i {
        font-size: 30px;
    }
    
    .info-box h5 {
        font-size: 1rem;
    }
    
    /* Contact form mobile */
    .form-control {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    /* Map container mobile */
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 575px) {
    .heading-text h2 {
        font-size: 1.5rem;
    }
    
    .icon-box.effect h3 {
        font-size: 1.1rem;
    }
    
    .grid.grid-4-columns {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Extra small screens */
    #page-title h1 {
        font-size: 1.25rem;
    }
    
    .article-featured-image img {
        height: 180px !important;
    }
    
    .post-item .post-image img {
        height: 160px !important;
    }
    
    .post-item-description {
        padding: 15px !important;
    }
    
    .post-item-description h2 {
        font-size: 1.1rem;
    }
    
    /* Widget extra small */
    .widget {
        padding: 15px;
    }
    
    .post-thumbnail-entry img {
        width: 60px !important;
        height: 45px !important;
    }
    
    .post-thumbnail-content a {
        font-size: 12px !important;
    }
    
    /* Buttons extra small */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    /* Badge mobile */
    .badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    /* Footer extra small */
    .copyright-text {
        font-size: 0.8rem;
    }
    
    /* Topbar extra small */
    #topbar .container {
        padding: 0 10px;
    }
    
    #topbar .top-menu li a {
        font-size: 0.8rem;
    }
    
    /* Social icons mobile */
    .social-icons ul {
        justify-content: center;
    }
    
    .social-icons li a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    /* Project card extra small */
    .project-card img {
        height: 180px;
    }
    
    /* Slider mobile */
    .slide-captions h1 {
        font-size: 1.3rem !important;
    }
    
    .slide-captions p {
        font-size: 0.9rem;
    }
    
    /* Logo mobile */
    #logo .logo-somind {
        font-size: 22px;
    }
}

header.logo-somind img {
    height: 40px;
    width: auto;
}

