/* Custom CSS for 612 Ajans Website */

/* Root Variables */
:root {
    --yellow-primary: #fec61b;
    --yellow-light: #fef8e6;
    --yellow-dark: #e5b318;
    --dark-primary: #1a1f3a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-muted: #6c757d;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-primary);
}

/* Custom Yellow Classes */
.text-yellow {
    color: var(--yellow-primary) !important;
}

.bg-yellow {
    background-color: var(--yellow-primary) !important;
}

.btn-yellow {
    background: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-dark) 100%);
    border: none;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 198, 27, 0.3);
    color: white !important;
}

.btn-outline-yellow {
    border: 2px solid var(--yellow-primary);
    color: var(--yellow-primary);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-yellow:hover {
    background: var(--yellow-primary);
    color: white !important;
    transform: translateY(-2px);
}

.text-gradient {
    background: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-primary) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--yellow-light) 0%, rgba(255, 255, 255, 0.8) 50%, var(--yellow-light) 100%);
    opacity: 0.7;
    z-index: -1;
}

.hero-content {
    z-index: 2;
}

.animate-slide-up {
    animation: slideUp 1s ease-out;
}

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

.hero-graphics {
    height: 500px;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: var(--yellow-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: var(--yellow-dark);
    border-radius: 50%;
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.shape-3 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--yellow-primary), var(--yellow-dark));
    bottom: 20%;
    left: 25%;
    animation-delay: 2s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    border: 4px solid var(--yellow-primary);
    background: transparent;
    border-radius: 25px;
    top: 20%;
    right: 10%;
    animation-delay: 0.5s;
}

.hero-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(6deg);
    width: 250px;
    height: 250px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.hero-card:hover {
    transform: translate(-50%, -50%) rotate(0deg);
}

.hero-card-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--yellow-light), var(--yellow-primary));
    border-radius: 20px;
    margin: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-inner i {
    font-size: 4rem;
    color: var(--yellow-dark);
}

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

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: none !important;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--yellow-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.service-icon i {
    font-size: 2rem;
    color: var(--yellow-primary);
    transition: color 0.3s ease;
}

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

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-filter {
    background: #f8f9fa;
    border: none;
    color: var(--dark-primary);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--yellow-primary);
    color: white;
}

.portfolio-item {
    transition: all 0.5s ease;
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* Team Cards */
.team-card {
    transition: all 0.3s ease;
    border: none !important;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.team-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Contact Section */
.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--yellow-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--yellow-primary);
}

.contact-form {
    border: none !important;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--yellow-primary);
    box-shadow: 0 0 0 0.2rem rgba(254, 198, 27, 0.25);
}

.social-link {
    width: 60px;
    height: 60px;
    background: var(--yellow-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--yellow-primary);
    color: white;
}

.social-link-footer {
    width: 40px;
    height: 40px;
    background: #495057;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-footer:hover {
    background: var(--yellow-primary);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-graphics {
        height: 300px;
        margin-top: 3rem;
    }
    
    .floating-shape {
        transform: scale(0.7);
    }
    
    .hero-card {
        width: 200px;
        height: 200px;
    }
    
    .portfolio-filter {
        gap: 5px;
    }
    
    .btn-filter {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .display-4 {
        font-size: 2.5rem !important;
    }
    
    .display-5 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .hero-card {
        width: 180px;
        height: 180px;
    }
    
    .hero-card-inner i {
        font-size: 3rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .team-avatar {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--yellow-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--yellow-dark);
}

.portfolio-item {
    transition: opacity 0.3s ease-in-out;
}
