/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background: #000000;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.dark-theme {
    background-color: #000000;
    color: #ffffff;
}

body.light-theme {
    background-color: #ffffff;
    color: #000000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #ffd700 100%);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo svg {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.logo-text h1 {
    color: #ffd700;
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.tagline {
    font-size: 0.9rem;
    font-weight: 300;
    color: #9d4edd; /* fallback color */
    background: linear-gradient(135deg, #9d4edd 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

nav ul li a::after {
    content: none; /* Removed underline effect */
}

/* Theme Slider Styles */
.theme-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.slider-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.bg-slider {
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, #ffffff 0%, #333333 50%, #000000 100%);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bg-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #9d4edd);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.bg-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.bg-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #9d4edd);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.bg-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.slider-indicators {
    display: flex;
    gap: 5px;
    font-size: 16px;
}

.light-indicator, .dark-indicator {
    transition: opacity 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000000 0%, #1a0033 50%, #330066 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    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="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffd700; /* fallback color */
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 50%, #9d4edd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.stat-label {
    color: #cccccc;
    font-size: 1rem;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #9d4edd 0%, #ffd700 100%);
    color: #000000;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.5);
}

/* Sections */
section {
    padding: 80px 0;
    transition: background-color 0.5s ease;
}

section:nth-child(even) {
    background: #0a0a0a;
}

section:nth-child(odd) {
    background: #111111;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700; /* fallback color */
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: #cccccc;
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-align: center;
    color: #ffd700; /* fallback color */
    background: linear-gradient(135deg, #ffd700 0%, #9d4edd 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    background: linear-gradient(135deg, #1a0033 0%, #330066 100%);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.3);
}

.feature h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #ffd700; /* fallback color */
    background: linear-gradient(135deg, #9d4edd 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: linear-gradient(135deg, #1a0033 0%, #330066 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(157, 78, 221, 0.4);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #ffd700; /* fallback color */
    background: linear-gradient(135deg, #ffd700 0%, #9d4edd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    margin-top: 30px;
}

.project-card {
    background: linear-gradient(135deg, #1a0033 0%, #330066 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.3);
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #ffd700;
}

.project-card p {
    color: #cccccc;
    font-size: 1rem;
}

.project-card.featured {
    background: linear-gradient(135deg, #330066 0%, #9d4edd 100%);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(157, 78, 221, 0.4);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-header h3 {
    margin: 0;
    color: #ffd700; /* fallback color */
    background: linear-gradient(135deg, #ffd700 0%, #ffffff 50%, #9d4edd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.project-tag {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-features {
    margin: 20px 0;
}

.feature-tag {
    background: rgba(157, 78, 221, 0.3);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-block;
}

.project-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background: linear-gradient(135deg, #1a0033 0%, #330066 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(157, 78, 221, 0.4);
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 20px;
}

.member-role {
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 15px;
}

.member-bio {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-form {
    background: linear-gradient(135deg, #1a0033 0%, #330066 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.contact-form h3 {
    color: #ffd700;
    margin-bottom: 30px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    color: #cccccc;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, #9d4edd 0%, #ffd700 100%);
    color: #000000;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.5);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #000000 0%, #1a0033 100%);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #ffd700;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    color: #cccccc;
    text-decoration: none;
    padding: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #ffd700;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.social-link[href="javascript:void(0)"] {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.social-link[href="javascript:void(0)"]:hover {
    color: #cccccc;
    border-color: rgba(255, 215, 0, 0.3);
    background: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    color: #cccccc;
}

.footer-bottom a {
    color: #ffd700;
    text-decoration: none;
}

/* Dynamic background transition */
body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.dark-theme {
    background-color: #000000;
    color: #ffffff;
}

body.light-theme {
    background-color: #ffffff;
    color: #000000;
}

/* Smooth transitions for sections and cards */
section {
    transition: background-color 0.5s ease;
}

.service-card, .project-card, .team-member {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .theme-slider {
        order: 3;
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
    }
    
    .bg-slider {
        width: 80px;
    }
    
    .slider-label {
        font-size: 12px;
    }
    
    nav ul {
        gap: 20px;
        order: 2;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .services-grid,
    .projects-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .theme-slider {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
    }
    
    .bg-slider {
        width: 80px;
    }
    
    .slider-label {
        font-size: 12px;
    }
}

/* Style for links above iframe */
#iframe-section a {
    color: blue;
    text-decoration: underline;
    font-weight: bold;
}

#iframe-section a:hover {
    color: darkblue;
} 

a.project-card {
    text-decoration: none;
}

#hero {
    margin-bottom: -10px;
}

#iframe-section {
    margin-top: -10px;
}

#chatFab {
    width: 100px; /* Increased size for the blue circle */
    height: 100px; /* Increased size for the blue circle */
    border-radius: 50%; /* Ensures the shape remains circular */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chatFab img {
    width: 70px; /* Increased size for the launcher icon */
    height: 70px; /* Increased size for the launcher icon */
    object-fit: contain; /* Maintain aspect ratio */
}

a:focus, a:active {
    text-decoration: none; /* Remove underlines on focus and active states */
    outline: none; /* Remove any focus outline */
}
