/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.3px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    /* Reset default borders */
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    color: #ffffff;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid rgba(37, 99, 235, 0.2);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: rgba(37, 99, 235, 0.05);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
    color: var(--secondary-color);
}

/* Cards */
.service-card {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    overflow: visible;
    border: 1px solid var(--border-color);
    /* Added border for dark mode definition */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(59, 130, 246, 0.4);
    /* Blue highlight on hover */
    background: linear-gradient(145deg, var(--surface-color), rgba(30, 41, 59, 0.8));
}

.icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
    color: var(--secondary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.project-card {
    background: var(--surface-color);
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(37, 99, 235, 0.2);
}

.contact-card {
    background: var(--surface-color);
    padding: 35px;
    border-radius: 20px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.contact-card i {
    font-size: 2.5rem;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.contact-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}