/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #1F0F3B;
    --secondary-color: #4A2B8C;
    --accent-color: #8B5CF6;
    --light-color: #F8F9FA;
    --dark-color: #1A1A1A;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --gradient-primary: linear-gradient(135deg, #1F0F3B 0%, #4A2B8C 100%);
    --gradient-accent: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    --shadow-light: 0 2px 10px rgba(31, 15, 59, 0.1);
    --shadow-medium: 0 5px 20px rgba(31, 15, 59, 0.15);
    --shadow-heavy: 0 10px 30px rgba(31, 15, 59, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(31, 15, 59, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    height: 100px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--text-light) !important;
    text-decoration: none;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    margin-left: 12px;
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Hover effects for brand text */
.navbar-brand:hover .brand-text {
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.hero-content {
    color: var(--text-light);
    z-index: 2;
    position: relative;
    will-change: transform;
    transform: translateZ(0);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-accent);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    background: var(--gradient-accent);
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-light);
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-medium);
    width: 200px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.floating-card:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 15%;
    right: 10%;
    animation-delay: 4s;
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.floating-card h4 {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
}

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

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

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: move 20s linear infinite;
    overflow: hidden;
}

@keyframes move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* ===== SECTIONS ===== */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.bg-light {
    background-color: #F8F9FA !important;
}

/* ===== ABOUT SECTION ===== */
.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--secondary-color);
    font-weight: 500;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    height: 100%;
}

.grid-item {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.grid-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.grid-item h5 {
    margin: 0;
    font-size: 1.1rem;
}

/* ===== SERVICES SECTION ===== */
.service-card {
    background: var(--text-light);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    height: 100%;
    border: 1px solid rgba(31, 15, 59, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: var(--text-light);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.service-features li i {
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

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

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

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.portfolio-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1F0F3B, #2d1b4e);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
    z-index: 1;
}

.portfolio-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #8B5CF6;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.portfolio-placeholder h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
    z-index: 2;
    position: relative;
}

.portfolio-placeholder p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    z-index: 2;
    position: relative;
}

.portfolio-card:hover .portfolio-placeholder {
    background: linear-gradient(135deg, #2d1b4e, #1F0F3B);
    transform: scale(1.02);
}

.portfolio-card:hover .portfolio-placeholder i {
    transform: scale(1.1);
    color: #A78BFA;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 15, 59, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

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

.portfolio-content {
    text-align: center;
    color: var(--text-light);
    padding: 1rem;
}

.portfolio-content h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.portfolio-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* ===== CONTACT SECTION ===== */
.contact-form {
    background: var(--text-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.form-control {
    border: 2px solid rgba(31, 15, 59, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

/* Form validation styles */
.form-control.is-valid {
    border-color: #10B981;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310B981' d='m2.3 6.73.94-.94 3.03-3.03-1.06-1.06-3.03 3.03-.94.94z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #EF4444;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23EF4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4m0-1.4-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #EF4444;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #10B981;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0 0;
}

.footer-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.footer-brand h5 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.footer h6 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    text-align: center;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.contact-info p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    text-align: left;
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .footer .row {
        text-align: center;
    }
    
    .footer-section {
        align-items: center;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer h6 {
        text-align: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .floating-card {
        position: relative;
        margin-bottom: 1rem;
        width: 180px;
        height: 100px;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
    
    .hero-image {
        height: auto;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        margin-top: 1rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        height: 80px;
        padding: 0.25rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .portfolio-placeholder {
        height: 200px;
        padding: 15px;
    }
    
    .portfolio-placeholder i {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .portfolio-placeholder h5 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .portfolio-placeholder p {
        font-size: 0.8rem;
    }
    
    .hero-section {
        padding-top: 120px;
        min-height: calc(100vh - 80px);
        margin-top: 0;
        overflow: hidden;
    }
    
    .hero-bg-animation {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        animation: move 15s linear infinite;
    }
    
    .hero-content {
        padding-top: 2rem;
        position: relative;
        z-index: 3;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }
    
    .floating-card {
        width: 200px;
        height: 90px;
        padding: 0.75rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    .floating-card h4 {
        font-size: 0.8em;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .navbar-brand img {
        height: 45px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        height: 70px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .hero-section {
        padding-top: 100px;
        min-height: calc(100vh - 70px);
        margin-top: 0;
        overflow: hidden;
    }
    
    .hero-bg-animation {
        animation: move 12s linear infinite;
    }
    
    .hero-content {
        padding-top: 1.5rem;
        position: relative;
        z-index: 3;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .floating-card {
        width: 200px;
        height: 80px;
        padding: 0.5rem;
    }
    
    .floating-card i {
        font-size: 1.25rem;
    }
    
    .floating-card h4 {
        font-size: 0.8em;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

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

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

/* ===== NOTIFICATION SYSTEM ===== */
.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.notification-message {
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 0.9;
}

.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.7;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.notification-close i {
    font-size: 0.8rem;
}

/* Notification animations */
@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive notifications */
@media (max-width: 768px) {
    .notification {
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
        min-width: auto !important;
        transform: translateY(-100%) !important;
    }
    
    .notification.show {
        transform: translateY(0) !important;
    }
    
    @keyframes notificationSlideIn {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes notificationSlideOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100%);
            opacity: 0;
        }
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
