/* Custom Properties */
:root {
    /* Colors */
    --color-primary: #520073;
    --color-primary-light: #8000b2;
    --color-dark: #000000;
    --color-white: #ffffff;
    --color-gray: #6c757d;

    /* Buttons */
    --button-primary: #520073;
    --button-primary-light: #41005b;
    --button-secondary: #000000;
    --button-secondary-light: #6c757d;
    
    /* Typography */
    --font-primary: 'Josefin Sans', sans-serif;
    --font-secondary: 'Merriweather', serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-base: all 0.3s ease;
}

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

html {
    min-height: 100%;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--color-white);
    background: linear-gradient(-45deg, #000000, #8000b2, #520073, #000000) !important;
    background-attachment: fixed !important;
    background-size: 400% 400% !important;
    position: relative;
    min-height: 100vh !important;
    width: 100%;
    overflow-x: hidden;
}

/* Debug element styles */
.debug-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #000000, #8000b2, #520073, #000000);
    z-index: -2;
}

/* Gradient Overlay */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #000000, #8000b2, #520073, #000000);
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0.5;
    animation: gradientAnimation 15s ease infinite;
}

/* Animations */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md) 0;
}

.navbar-brand img {
    transition: var(--transition-base);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--color-white) !important;
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
    padding: var(--spacing-md);
    margin-left: 10px;
}

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

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

.offcanvas {
    background-color: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px);
    height: 100vh;
}

.btn-close {
    border: 2px solid var(--color-white) !important;
    padding: 0.5rem !important;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

/* Hero Section */
.hero {
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

/* Services Section */
.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    transition: var(--transition-base);
    color: var(--color-white);
}

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

.service-card i {
    color: var(--color-white);
}

.service-card h3 {
    color: var(--color-white);
    margin: 1rem 0;
}

.service-card p {
    color: var(--color-white);
    opacity: 0.9;
}

/* Technologies Section */
.tech-card {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: var(--transition-base);
    color: var(--color-white);
}

.tech-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.tech-card i {
    color: var(--color-white);
}

.tech-card h4 {
    color: var(--color-white);
}

/* Buttons */
.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: 0%;
}

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

.btn-outline-light {
    border-radius: 0%;
    border: 2px solid var(--color-white);
}

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

/* CTA Section */
.cta {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: var(--color-white);
}

.cta h2, .cta p {
    color: var(--color-white);
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.footer a {
    color: var(--color-white);
    transition: var(--transition-base);
}

.footer a:hover {
    color: var(--color-primary) !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    
    .hero .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .service-card, .tech-card {
        margin-bottom: var(--spacing-md);
    }
    
    .quote-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .quote-form .row .col-6 {
        width: 100%;
    }
}

/* Background */
#fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-image: url('./images/background.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(-45deg, #000000, #8000b2, #520073, #000000);
        background-attachment: fixed;
        background-size: 400% 400%;
        background-position: center;
    }
    
    #fixed {
        background-image: url('./images/phone-bg.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Welcome Section */
.welcome {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#welcome, #slogan {
    text-shadow: var(--shadow-md);
}

/* Cards */
#portfolio {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-md);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.toggler {
    color: white;
}

#card {
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.header {
    text-shadow: 3px 3px 1px #000;
}

/* Portfolio Section */
.portfolio {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: 100px;
    margin-top: 150px;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-base);
    height: 100%;
}

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

.portfolio-image {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

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

.portfolio-content {
    padding: var(--spacing-lg);
}

.portfolio-content h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.portfolio-content .testimonial {
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
    opacity: 0.9;
}

.portfolio-content .btn {
    width: 100%;
}

/* Portfolio Styles */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

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

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

/* Quote Request Styles */
.quote-request {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: transparent;
    min-height: 100vh;
}

.quote-form {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.quote-form h1 {
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.quote-form .form-label {
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.quote-form .form-control,
.quote-form .form-select {
    border: 2px solid rgb(255, 255, 255);
    border-radius: 0%;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 0.75rem;
}

.quote-form .form-control:focus,
.quote-form .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.quote-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

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


.quote-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 0, 115, 0.3);
    background: var(--color-primary-light);
}

.quote-form .form-group {
    margin-bottom: 1.25rem;
}

.quote-form .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 0.75rem;
    border-radius: 0%;
    transition: var(--transition-base);
}

.quote-form .form-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(82, 0, 115, 0.25);
    color: var(--color-white);
}

.quote-form .form-select option {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* Quote Form Iframe Styling */
.quote-form-iframe {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    margin: 120px auto 40px auto;
    max-width: 100%;
    overflow: hidden;
    transition: var(--transition-base);
    border: none;
    width: 100%;
    height: calc(100vh - 160px);
}

.quote-form-iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Remove scrollbars from iframe */
.quote-form-iframe::-webkit-scrollbar {
    display: none;
}

.quote-form-iframe {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Responsive iframe sizing */
@media (max-width: 768px) {
    .quote-form-iframe {
        width: 100% !important;
        height: calc(100vh - 120px) !important;
        margin: 100px auto 20px auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .quote-form-iframe {
        width: 100% !important;
        height: calc(100vh - 140px) !important;
    }
}

@media (min-width: 1025px) {
    .quote-form-iframe {
        width: 100% !important;
        max-width: 800px !important;
        height: calc(100vh - 160px) !important;
    }
}

/* Thank You Page Styles */
.thank-you {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.thank-you-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    color: var(--color-dark);
}

.thank-you-content h1,
.thank-you-content h2,
.thank-you-content h3,
.thank-you-content p {
    color: var(--color-dark);
}

.next-step {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    transition: transform 0.3s ease;
    height: 100%;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.next-step i {
    font-size: 2rem;
    color: var(--color-primary);
}

.next-step h3,
.next-step p {
    color: var(--color-dark);
}

.contact-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info h2,
.contact-info p {
    color: var(--color-dark);
}

/* Responsive adjustments for thank you page */
@media (max-width: 768px) {
    .thank-you-content {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .next-step {
        margin-bottom: 1rem;
    }
}

