/* ===== GENERAL STYLES ===== */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --light-text-color: #fff;
    --transition: all 0.3s ease;
    --hover-brightness: brightness(1.1);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-color);
    width: 100%;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

section {
    padding: 100px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents whitespace under images */
}

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

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    margin: 5px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.6s, opacity 0.6s;
}

.btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--secondary-color) !important;
    color: var(--light-text-color) !important;
    filter: var(--hover-brightness);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow) !important;
    border: none !important;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
    background-color: var(--primary-color) !important;
    color: var(--light-text-color) !important;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow) !important;
    border-color: var(--primary-color) !important;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5em;
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
}

.underline {
    height: 4px;
    width: 80px;
    background: var(--primary-color);
    margin: 0 auto;
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform; /* Performance optimization */
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hover-float {
    transition: transform 0.3s ease;
    will-change: transform; /* Performance optimization */
}

.hover-float:hover {
    transform: translateY(-5px);
}

.pulse-icon {
    animation: pulse 2s infinite ease-in-out;
    animation-play-state: paused; /* Only animate on hover */
}

.service-card:hover .pulse-icon {
    animation-play-state: running; /* Start animation on hover */
}

.rotating-slow {
    animation: rotate 15s linear infinite;
    transform-origin: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== PARTICLES ===== */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0.7;
    pointer-events: none;
}

/* ===== HEADER & NAVIGATION ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 15px 0 25px;
    transition: var(--transition);
}

#header.scrolled {
    padding: 10px 0 20px;
}

#header .container {
    background-color: #fff;
    border-radius: 50px;
    padding: 10px 30px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.navbar {
    padding: 0;
    width: 100%;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.navbar-brand span {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 0;
    outline: none;
    box-shadow: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav {
    align-items: center;
}

.nav-item {
    margin: 0 5px;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 8px 15px;
    text-align: center;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2a3a 100%);
    color: var(--light-text-color);
    padding-top: 120px;
    overflow: hidden;
}

#hero .container {
    position: relative;
    z-index: 3; /* Higher than particles to ensure content is above */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#hero .hero-content,
#hero .hero-image {
    position: relative;
    z-index: 3; /* Ensure content is above particles */
}

.hero-content {
    flex-basis: 50%;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    margin-top: 20px;
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-image {
    flex-basis: 45%;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.scroll-down a {
    color: var(--light-text-color);
    font-size: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* ===== ABOUT SECTION ===== */
#about {
    background: linear-gradient(135deg, #f9fafb 0%, #f0f2f5 100%);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.08);
    z-index: 1;
}

#about::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.05);
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-text {
    position: relative;
}

.about-header {
    margin-bottom: 25px;
    position: relative;
}

.about-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.about-underline {
    height: 4px;
    width: 60px;
    background: var(--primary-color);
    margin-bottom: 20px;
}

.about-description p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid transparent;
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.about-feature i {
    color: var(--primary-color);
    font-size: 22px;
    padding: 15px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    min-width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.about-feature:hover i {
    background-color: var(--primary-color);
    color: #fff;
}

.about-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 600;
}

.about-feature p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #555;
}

.stats-row {
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 25px 20px;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 500;
}

.about-image {
    position: relative;
    text-align: center;
}

.about-image-container {
    position: relative;
    padding: 20px;
    display: inline-block;
}

.about-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.about-image-shape {
    position: absolute;
    border-radius: 15px;
    z-index: 1;
}

.shape-1 {
    width: 100%;
    height: 100%;
    top: 30px;
    right: -20px;
    background-color: rgba(52, 152, 219, 0.1);
}

.shape-2 {
    width: 70%;
    height: 70%;
    bottom: -15px;
    left: -15px;
    background-color: rgba(231, 76, 60, 0.05);
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-cta {
    margin-top: 40px;
}

/* ===== SERVICES SECTION ===== */
#services {
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    z-index: 1;
}

.services-grid {
    margin: 0 -15px;
    display: flex;
    flex-wrap: wrap;
}

.service-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 4px solid transparent;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary-color);
}

.service-icon {
    margin: 0 auto 25px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    position: relative;
}

.service-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
}

.service-card:hover .service-icon i {
    color: #fff;
}

.pulse-icon {
    position: relative;
}

.pulse-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.3);
    z-index: -1;
    animation: pulse 2s infinite;
}

.services-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===== PORTFOLIO SECTION ===== */
#portfolio {
    background-color: #f9fafb;
    position: relative;
}

.portfolio-intro {
    text-align: center;
}

.portfolio-intro .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    font-weight: 400;
}

.portfolio-highlights-row {
    margin-bottom: 3rem;
}

.highlight {
    text-align: center;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 25px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    background-color: rgba(52, 152, 219, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.highlight h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.highlight p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

.portfolio-projects {
    margin-bottom: 3rem;
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    width: 100%;
    height: 230px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Fallback for empty images */
.portfolio-image::after {
    content: attr(data-title);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 20px;
}

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

.portfolio-info {
    text-align: center;
    color: #fff;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.portfolio-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.portfolio-info .btn {
    margin-top: 10px;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .highlight i {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    
    .highlight h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .portfolio-item {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .highlight {
        padding: 20px 15px;
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .highlight i {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .portfolio-image {
        height: 180px;
    }
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.1);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.feature-card p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 0;
}

.why-us-cta {
    text-align: center;
    margin-top: 30px;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.contact-text {
    flex-basis: 45%;
}

.contact-info {
    margin: 30px 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    transition: transform 0.5s;
}

.social-icons a:hover::before {
    transform: scale(2);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
}

.contact-form-container {
    flex-basis: 45%;
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-success {
    display: none;
    text-align: center;
    padding: 30px;
    background-color: #27ae60;
    color: white;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.form-success i {
    font-size: 48px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

/* ===== FOOTER ===== */
#footer {
    background-color: var(--dark-color);
    color: var(--light-text-color);
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 200%;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== MODAL STYLES ===== */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: none;
    padding: 20px 30px;
}

.modal-title {
    font-weight: 600;
    font-size: 1.4rem;
}

.modal-body {
    padding: 30px;
    position: relative;
}

.modal-footer {
    border-top: none;
    padding: 20px 30px;
    background-color: #f8f9fa;
}

.modal .btn-close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
    filter: brightness(5);
}

.modal .btn-close:hover {
    opacity: 1;
}

.modal .form-control,
.modal .form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.modal .form-control.is-invalid,
.modal .form-select.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.modal .form-control.is-invalid:focus,
.modal .form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.modal label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

#modalFormSuccess {
    display: none;
    text-align: center;
    padding: 30px 15px;
}

#modalFormSuccess i {
    font-size: 60px;
    color: #27ae60;
    margin-bottom: 20px;
}

#modalFormSuccess h4 {
    font-size: 1.8rem;
    color: #27ae60;
    margin-bottom: 15px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991px) {
    .about-header h2 {
        font-size: 2rem;
    }
    
    .about-text, .about-image {
        margin-bottom: 40px;
    }
    
    .about-feature {
        padding: 18px;
    }
    
    .about-feature i {
        width: 50px;
        height: 50px;
        font-size: 20px;
        padding: 12px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-content, .hero-image,
    .about-text, .about-image,
    .contact-text, .contact-form-container {
        flex-basis: 100%;
    }
    
    .hero-image, .about-image {
        margin-top: 40px;
        order: 2;
    }
    
    .hero-content h1 {
        font-size: 2.8em;
    }
    
    .section-header h2 {
        font-size: 2em;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .highlight {
        flex-basis: calc(50% - 20px);
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    section {
        padding: 70px 0;
    }
    
    #header {
        padding: 15px 0 30px;
    }
    
    #header.scrolled {
        padding: 10px 0 25px;
    }
    
    #header .container {
        border-radius: 30px;
        padding: 10px 20px;
    }
    
    .navbar-collapse {
        background-color: #fff;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
        text-align: center;
    }
    
    .nav-link {
        padding: 12px 5px;
        margin: 5px 0;
        display: inline-block;
    }
    
    .about-feature {
        align-items: flex-start;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-feature i {
        margin-bottom: 15px;
    }
    
    .service-card, .feature-card {
        max-width: 450px;
        margin: 0 auto 20px;
        padding: 25px 15px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hamburger {
        display: block;
        z-index: 1000;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .feature-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8em;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    .contact-info .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-item i {
        margin-bottom: 10px;
    }
    
    .service-card, .feature-card, .portfolio-item {
        min-height: auto;
    }
    
    .portfolio-image {
        min-height: 180px;
    }
    
    .service-icon, .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .rotating-slow {
        animation-duration: 20s; /* Slower rotation on mobile for better performance */
    }
    
    #header {
        padding: 15px 0 35px;
    }
    
    .feature-card h3 {
        font-size: 1.2em;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
}

/* Add new premium About section styles */

/* Premium About Section Styles */
.about-premium {
    position: relative;
    overflow: hidden;
    padding: 0;
    background-color: #fff;
}

/* Floating elements background */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.5;
}

.floating-circle, .floating-square, .floating-triangle {
    position: absolute;
    animation-duration: 15s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    opacity: 0.1;
}

.floating-circle {
    border-radius: 50%;
}

.circle-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    top: 10%;
    left: 5%;
    animation-name: float-circle-1;
}

.circle-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f6d365, #fda085);
    bottom: 15%;
    right: 10%;
    animation-name: float-circle-2;
}

.floating-square {
    transform: rotate(45deg);
}

.square-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #5ee7df, #b490ca);
    top: 20%;
    right: 15%;
    animation-name: float-square-1;
}

.square-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c3cfe2, #c3cfe2);
    bottom: 25%;
    left: 15%;
    animation-name: float-square-2;
}

.floating-triangle {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid rgba(122, 95, 255, 0.15);
    top: 40%;
    left: 50%;
    animation-name: float-triangle;
}

@keyframes float-circle-1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(30px, 20px); }
    50% { transform: translate(10px, 40px); }
    75% { transform: translate(-20px, 20px); }
    100% { transform: translate(0, 0); }
}

@keyframes float-circle-2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-20px, -15px); }
    50% { transform: translate(-5px, -30px); }
    75% { transform: translate(15px, -15px); }
    100% { transform: translate(0, 0); }
}

@keyframes float-square-1 {
    0% { transform: rotate(45deg) translate(0, 0); }
    25% { transform: rotate(65deg) translate(20px, -10px); }
    50% { transform: rotate(45deg) translate(40px, 0); }
    75% { transform: rotate(25deg) translate(20px, 10px); }
    100% { transform: rotate(45deg) translate(0, 0); }
}

@keyframes float-square-2 {
    0% { transform: rotate(45deg) translate(0, 0); }
    25% { transform: rotate(25deg) translate(-15px, 10px); }
    50% { transform: rotate(45deg) translate(-30px, 0); }
    75% { transform: rotate(65deg) translate(-15px, -10px); }
    100% { transform: rotate(45deg) translate(0, 0); }
}

@keyframes float-triangle {
    0% { transform: rotate(0) translate(0, 0); }
    25% { transform: rotate(10deg) translate(-20px, 15px); }
    50% { transform: rotate(0) translate(-40px, 0); }
    75% { transform: rotate(-10deg) translate(-20px, -15px); }
    100% { transform: rotate(0) translate(0, 0); }
}

/* Hero intro section */
.about-hero {
    position: relative;
    background: linear-gradient(135deg, #0a1128, #1e3a8a);
    padding: 120px 0 100px;
    z-index: 1;
}

.about-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.about-title {
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
}

.about-lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

/* Story section styles */
.about-story {
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #6e8efb;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 25px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
}

.story-content p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feature-icon {
    color: #6e8efb;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-text {
    font-weight: 500;
    color: #2d3748;
}

.story-image-container {
    position: relative;
    padding: 20px;
}

.image-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    border: 3px solid #f0f2f5;
    z-index: 1;
}

.image-backdrop {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.1), rgba(167, 119, 227, 0.1));
    z-index: 0;
}

.story-image {
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.experience-badge {
    position: absolute;
    bottom: 10px;
    right: 0;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 3;
    box-shadow: 0 10px 20px rgba(110, 142, 251, 0.3);
}

.years {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

/* Stats section styles */
.stats-premium {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.bg-gradient {
    background: linear-gradient(135deg, #f5f7fa, #e2e8f0);
}

.stat-premium-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.stat-premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-premium-card .stat-icon {
    font-size: 32px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.1), rgba(167, 119, 227, 0.1));
    border-radius: 50%;
    color: #6e8efb;
}

.stat-premium-card .stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-premium-card .stat-label {
    font-size: 16px;
    color: #718096;
    font-weight: 500;
}

/* Core values section styles */
.values-premium {
    position: relative;
    z-index: 1;
}

.section-subtitle {
    color: #718096;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.value-card-premium {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.value-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-card-premium .value-icon {
    font-size: 32px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.1), rgba(167, 119, 227, 0.1));
    border-radius: 50%;
    color: #6e8efb;
    position: relative;
    z-index: 2;
}

.value-card-premium h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.value-card-premium p {
    color: #718096;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.card-hover-effect {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.05), rgba(167, 119, 227, 0.05));
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: 1;
}

.value-card-premium:hover .card-hover-effect {
    top: -30%;
    left: -30%;
}

/* Process flow styles */
.approach-premium {
    position: relative;
    z-index: 1;
}

.process-flow {
    position: relative;
    padding: 50px 0;
}

.process-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #f0f2f5 0%, #6e8efb 50%, #f0f2f5 100%);
}

.process-step {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:nth-child(odd) {
    flex-direction: row-reverse;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 10px 20px rgba(110, 142, 251, 0.3);
}

.step-content {
    width: calc(50% - 60px);
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
}

.step-content p {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 0;
}

.step-icon {
    display: none;
}

@media (max-width: 991px) {
    .process-line {
        left: 40px;
    }
    
    .process-step, .process-step:nth-child(odd) {
        flex-direction: row;
    }
    
    .step-number {
        left: 40px;
    }
    
    .step-content {
        width: calc(100% - 100px);
        margin-left: 80px;
    }
}

/* Team section styles */
.team-premium {
    position: relative;
    z-index: 1;
    background-color: #f8fafc;
}

.team-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.image-container {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-card:hover .image-container img {
    transform: scale(1.05);
}

.social-icons {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.9), rgba(167, 119, 227, 0.9));
    padding: 10px 0;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-card:hover .social-icons {
    bottom: 0;
}

.social-icons a {
    color: #fff;
    font-size: 18px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 5px;
}

.team-info .position {
    font-size: 14px;
    color: #718096;
    margin-bottom: 0;
}

/* Testimonials section styles */
.testimonials-premium {
    position: relative;
    z-index: 1;
}

.testimonial-slide {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-image {
    position: relative;
    padding: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-image img {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.client-logo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    padding: 40px;
    position: relative;
}

.quote-mark {
    font-size: 36px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 15px;
}

.testimonial-rating {
    display: flex;
    color: #ffc107;
    font-size: 18px;
}

.clients-grid {
    border-top: 1px solid #e2e8f0;
}

.client-logo-item {
    padding: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.client-logo-item:hover {
    opacity: 1;
}

/* CTA section styles */
.cta-premium {
    position: relative;
    z-index: 1;
}

.cta-card {
    background: linear-gradient(135deg, #0a1128, #1e3a8a);
    border-radius: 15px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.3), rgba(167, 119, 227, 0.3));
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.2), rgba(167, 119, 227, 0.2));
    border-radius: 50%;
    transform: translate(-30%, 30%);
}

.cta-card h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.btn-premium {
    background: #fff;
    color: #1e3a8a;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.2), rgba(167, 119, 227, 0.2));
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-premium:hover {
    color: #1e3a8a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-premium:hover::before {
    left: 0;
}

@media (max-width: 767px) {
    .about-hero {
        padding: 80px 0 60px;
    }
    
    .about-title {
        font-size: 36px;
    }
    
    .about-lead {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .experience-badge {
        width: 80px;
        height: 80px;
    }
    
    .years {
        font-size: 22px;
    }
    
    .stat-premium-card {
        margin-bottom: 20px;
    }
    
    .value-card-premium {
        margin-bottom: 20px;
    }
    
    .cta-card {
        padding: 30px;
    }
    
    .cta-card h2 {
        font-size: 26px;
    }
    
    .cta-card p {
        font-size: 16px;
    }
}

/* Additional Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Portfolio Premium Styles */
.portfolio-premium {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background-color: #fff;
}

.portfolio-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.4;
}

.portfolio-bg-elements .bg-circle,
.portfolio-bg-elements .bg-square,
.portfolio-bg-elements .bg-triangle {
    position: absolute;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    opacity: 0.1;
}

.portfolio-bg-elements .bg-circle {
    border-radius: 50%;
}

.portfolio-bg-elements .circle-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    top: 5%;
    right: 10%;
    animation-name: float-portfolio-circle-1;
}

.portfolio-bg-elements .circle-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f6d365, #fda085);
    bottom: 8%;
    left: 5%;
    animation-name: float-portfolio-circle-2;
}

.portfolio-bg-elements .square-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #5ee7df, #b490ca);
    top: 40%;
    left: 8%;
    transform: rotate(45deg);
    animation-name: float-portfolio-square;
}

.portfolio-bg-elements .triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 170px solid rgba(122, 95, 255, 0.15);
    top: 60%;
    right: 5%;
    animation-name: float-portfolio-triangle;
}

@keyframes float-portfolio-circle-1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(20px, 30px); }
    50% { transform: translate(40px, 20px); }
    75% { transform: translate(20px, -10px); }
    100% { transform: translate(0, 0); }
}

@keyframes float-portfolio-circle-2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-20px, -20px); }
    50% { transform: translate(-40px, 0px); }
    75% { transform: translate(-20px, 20px); }
    100% { transform: translate(0, 0); }
}

@keyframes float-portfolio-square {
    0% { transform: rotate(45deg) translate(0, 0); }
    25% { transform: rotate(60deg) translate(20px, 20px); }
    50% { transform: rotate(45deg) translate(40px, 0); }
    75% { transform: rotate(30deg) translate(20px, -20px); }
    100% { transform: rotate(45deg) translate(0, 0); }
}

@keyframes float-portfolio-triangle {
    0% { transform: rotate(0) translate(0, 0); }
    25% { transform: rotate(10deg) translate(-20px, 15px); }
    50% { transform: rotate(0) translate(-40px, 0); }
    75% { transform: rotate(-10deg) translate(-20px, -15px); }
    100% { transform: rotate(0) translate(0, 0); }
}

.portfolio-header {
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.portfolio-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.portfolio-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
}

.portfolio-subtitle {
    color: #718096;
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Highlight cards */
.portfolio-highlights {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.highlight-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    font-size: 32px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.1), rgba(167, 119, 227, 0.1));
    border-radius: 50%;
    color: #6e8efb;
    position: relative;
    z-index: 2;
}

.highlight-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.highlight-content p {
    color: #718096;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.card-hover-effect {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.05), rgba(167, 119, 227, 0.05));
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: 1;
}

.highlight-card:hover .card-hover-effect {
    top: -30%;
    left: -30%;
}

/* Project Cards */
.project-gallery {
    position: relative;
    z-index: 1;
}

.project-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.9), rgba(167, 119, 227, 0.9));
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
}

.project-content p {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 70px;
    overflow: hidden;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.technologies span {
    font-size: 11px;
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 4px;
    color: #4a5568;
}

.project-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #a777e3, #6e8efb);
    color: #fff;
}

/* Portfolio CTA */
.portfolio-cta {
    position: relative;
    z-index: 1;
    margin-top: 50px;
}

.cta-card-portfolio {
    background: linear-gradient(135deg, #0a1128, #1e3a8a);
    border-radius: 15px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cta-card-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.3), rgba(167, 119, 227, 0.3));
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.cta-card-portfolio::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.2), rgba(167, 119, 227, 0.2));
    border-radius: 50%;
    transform: translate(-30%, 30%);
}

.cta-card-portfolio h3 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.cta-card-portfolio p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.btn-portfolio {
    background: #fff;
    color: #1e3a8a;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.2), rgba(167, 119, 227, 0.2));
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-portfolio:hover {
    color: #1e3a8a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-portfolio:hover::before {
    left: 0;
}

@media (max-width: 991px) {
    .portfolio-title {
        font-size: 32px;
    }
    
    .cta-card-portfolio {
        padding: 30px;
    }
    
    .cta-card-portfolio h3 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .portfolio-title {
        font-size: 28px;
    }
    
    .highlight-card, .project-card {
        margin-bottom: 20px;
    }
    
    .project-content p {
        height: auto;
    }
    
    .cta-card-portfolio {
        padding: 25px;
    }
    
    .cta-card-portfolio h3 {
        font-size: 22px;
    }
} 