/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Header & Navigation ===== */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.5s ease-out;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}
/* ensure absolute mobile menu positions relative to navbar */
.navbar { position: relative; }

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.6px;
    animation: fadeIn 1s ease-out;
}

.header-logo {
    height: 42px;
    width: auto;
    display: block;
}

.logo-text {
    display: inline-block;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
}

/* Mobile nav toggle button */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 200;
}
.nav-toggle .hamburger {
    width: 28px;
    height: 2px;
    background: white;
    display: block;
    position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 28px;
    height: 2px;
    background: white;
}
.nav-toggle .hamburger::before { top: -8px; }
.nav-toggle .hamburger::after { top: 8px; }

/* Mobile menu (hidden by default) */
.nav-links.mobile-open {
    display: block;
}

/* Responsive breakpoints */
@media (max-width: 900px) {
    .nav-links { display: none; position: absolute; top: calc(100% + 8px); right: 18px; background: linear-gradient(180deg, rgba(30,60,114,0.98), rgba(42,82,152,0.98)); padding: 0.75rem 1rem; border-radius: 10px; width: 220px; box-shadow: 0 8px 30px rgba(10,10,25,0.5); z-index: 250; flex-direction: column; align-items: flex-start; }
    .nav-links li { margin: 0.45rem 0; }
    .nav-links a { color: #fff; font-size: 1rem; }
    .nav-toggle { display: inline-block; }
    .hero { padding: 2.5rem 1rem; }
    .hero-content { max-width: 100%; padding: 0 1rem; }
    .hero h1 { font-size: 2.4rem; }
    .animated-shapes { display: none; }
}

@media (max-width: 480px) {
    .logo-text { display: none; }
    .header-logo { height: 34px; }
    .nav-links { right: 10px; width: 180px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .btn-primary, .btn-secondary { padding: 0.7rem 1.2rem; font-size: 0.95rem; }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .about-stats .stat h4 {
        font-size: 1.8rem;
    }
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #ffc107;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== Section Title ===== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #2a5298);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== Keyframe Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInBottom {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(42, 82, 152, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(42, 82, 152, 1);
    }
}

/* ===== Animation Classes ===== */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.slide-in-bottom {
    animation: slideInBottom 0.8s ease-out;
}

.bounce {
    animation: bounce 2s ease-in-out infinite;
}

.bounce-delay-1 {
    animation: bounce 2s ease-in-out 0.2s infinite;
}

.bounce-delay-2 {
    animation: bounce 2s ease-in-out 0.4s infinite;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

#fireWaterCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    flex: 1;
    color: white;
    z-index: 2;
    max-width: 600px;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero .btn-primary,
.hero .btn-secondary {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn-primary {
    background: #ffc107;
    color: #1e3c72;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #1e3c72;
    transform: translateY(-3px);
}

/* Animated Shapes */
.animated-shapes {
    flex: 1;
    position: relative;
    height: 500px;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: white;
    top: 50px;
    right: 50px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: white;
    bottom: 100px;
    right: 200px;
    animation: rotate 20s linear infinite;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: white;
    bottom: 50px;
    right: 50px;
    animation: pulse 4s ease-in-out infinite;
}

/* ===== Metrics Section ===== */
.metrics {
    padding: 5rem 2rem;
    background: white;
}

.metrics-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.metric-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.metric-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.3);
}

.metric-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.metric-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ffc107;
    margin: 0.5rem 0;
}

/* ===== About Section ===== */
.about {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.highlight-text {
    color: #1e3c72;
    font-weight: 500;
    font-size: 1.1rem;
}

.bold {
    color: #ffc107;
    font-weight: bold;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    font-size: 10rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-stats .stat {
    text-align: center;
    padding: 1rem;
}

.about-stats .stat h4 {
    font-size: 2.5rem;
    color: #ffc107;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.about-stats .stat p {
    color: #1e3c72;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== Vision & Mission Section ===== */
.vision-mission {
    padding: 5rem 2rem;
    background: white;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.vm-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2.5rem;
    border-radius: 10px;
    border-left: 5px solid #ffc107;
    transition: all 0.3s ease;
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.2);
}

.vm-card h3 {
    font-size: 1.8rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.vm-card p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.vision-card {
    border-left-color: #2a5298;
}

.mission-card {
    border-left-color: #ffc107;
}

/* ===== Core Values Section ===== */
.core-values {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.core-values .section-title {
    color: white;
}

.core-values .section-title::after {
    background: #ffc107;
}

.values-grid {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-card h4 {
    color: #1e3c72;
    font-size: 1rem;
    line-height: 1.4;
}

/* ===== Services Section ===== */
.services {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.services-grid {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #ffc107;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.2);
    border-top-color: #1e3c72;
}

.service-icon {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: glow 2s ease-in-out infinite;
}

.service-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
}

/* ===== Portfolio Section ===== */
.portfolio {
    padding: 5rem 2rem;
    background: white;
}

.portfolio-intro {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.portfolio-grid {
    max-width: 1200px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.2);
}

.portfolio-image {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite;
}

.portfolio-item h4 {
    color: #1e3c72;
}

.portfolio .btn-primary {
    display: block;
    margin: 2rem auto 0;
}

/* ===== Career Section ===== */
.career {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.career .section-title {
    color: white;
}

.career .section-title::after {
    background: #ffc107;
}

.career-content {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    color: white;
}

.career-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.career .btn-primary {
    background: #ffc107;
    color: #1e3c72;
}

/* ===== Contact Section ===== */
.contact {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: #1e3c72;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
    line-height: 1.8;
}

.info-item a {
    color: #2a5298;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-item a:hover {
    color: #ffc107;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    transform: translateY(-2px);
}

.contact-form button {
    align-self: flex-start;
}

/* ===== Footer ===== */
.footer {
    background: #1a2a3a;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffc107;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #ffc107;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

/* ===== Logo Line Animation Section ===== */
.logo-line-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ffc107;
}

.logo-line-title {
    text-align: center;
    font-size: 1.4rem;
    color: #ffc107;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.logo-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.logo-item {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    transform-origin: center;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-item:nth-child(1) { animation-delay: 0s; }
.logo-item:nth-child(2) { animation-delay: 0.2s; }
.logo-item:nth-child(3) { animation-delay: 0.4s; }
.logo-item:nth-child(4) { animation-delay: 0.6s; }
.logo-item:nth-child(5) { animation-delay: 0.8s; }

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.logo-item svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(255, 193, 7, 0.2));
    transition: filter 0.3s ease;
}

.logo-item:hover svg {
    filter: drop-shadow(0 8px 16px rgba(255, 193, 7, 0.5));
}

.logo-item:hover {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    .logo-line { gap: 1rem; }
    .logo-item { width: 70px; height: 70px; }
    .logo-line-title { font-size: 1.2rem; }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .about-stats .stat h4 {
        font-size: 2rem;
    }
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInBottom 0.3s ease-out;
}

.close {
    color: #999;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 1rem;
}

.modal-header h2 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.modal-category {
    color: #ffc107;
    font-weight: 600;
}

.modal-image {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.project-details h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.project-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.spec-item h4 {
    color: #2a5298;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.spec-item p {
    color: #666;
}

/* ===== Portfolio Page Styles ===== */
.portfolio-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.portfolio-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.portfolio-filters {
    padding: 3rem 2rem;
    background: white;
}

.filter-buttons {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #333;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #ffc107;
    color: #ffc107;
}

.filter-btn.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #1e3c72;
}

.portfolio-section {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.portfolio-full-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.2);
}

.card-image {
    font-size: 4rem;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-category {
    color: #ffc107;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.meta-tag {
    background: #f0f0f0;
    color: #2a5298;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-small {
    background: #2a5298;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: #1e3c72;
    transform: translateX(3px);
}

/* ===== Large Modal Styles ===== */
.modal-large {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal-large-content {
    background-color: white;
    margin: 3rem auto;
    padding: 3rem;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.modal-large-content.modal-open {
    opacity: 1;
    transform: scale(1);
}

.close-btn {
    color: #999;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.project-modal-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ffc107;
}

.project-modal-image {
    font-size: 6rem;
    flex-shrink: 0;
}

.project-modal-info h2 {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.detail-category {
    color: #ffc107;
    font-weight: 600;
    font-size: 1rem;
}

.project-modal-body {
    color: #555;
}

.modal-section {
    margin-bottom: 2.5rem;
}

.modal-section h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.services-list li {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    color: #555;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.modal-info-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 3px solid #2a5298;
}

.modal-info-box h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-info-box p {
    color: #2a5298;
    font-weight: 600;
    font-size: 1.2rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
}

.feature-icon {
    color: #ffc107;
    font-weight: bold;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cta-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.cta-section p {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ===== Portfolio Stats Section ===== */
.portfolio-stats {
    padding: 5rem 2rem;
    background: white;
}

.stats-grid {
    max-width: 1200px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(30, 60, 114, 0.2);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ffc107;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== Portfolio CTA Section ===== */
.portfolio-cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
}

.portfolio-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.portfolio-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.portfolio-cta .btn-primary {
    background: #ffc107;
    color: #1e3c72;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero .btn-primary,
    .hero .btn-secondary {
        margin-right: 0;
    }

    .animated-shapes {
        height: 300px;
        margin-top: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .vm-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .values-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-full-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-hero h1 {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-large-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .project-modal-header {
        flex-direction: column;
        text-align: center;
    }

    .project-modal-image {
        font-size: 4rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

