@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #008B8B; /* Dark Turquoise */
    --secondary-color: #20B2AA; /* Light Sea Green */
    --dark: #1a1a1a;
    --light: #f0f8ff;
    --accent: #40E0D0; /* Turquoise */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-logo {
    height: 40px; /* Zwiększone z 35px na 40px */
    width: auto;
    margin-right: 15px; /* Zwiększone z 12px na 15px */
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fbbf24;
}

.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: transparent; /* Remove gradient background */
    min-height: auto;
    margin-top: 0;
}

/* Update contact page hero specific styles */
.contact-page .hero {
    background: none;
    padding-top: 4rem;
}

/* Update section styles */
.section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section.contact-section {
    padding-top: 6rem; /* This will position content below the header */
    min-height: calc(100vh - 160px);
}

.card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,139,139,0.2);
}

.card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card a:hover {
    color: var(--accent);
}

/* Dark mode email link color */
[data-theme="dark"] .card a {
    color: var(--accent);
}

[data-theme="dark"] .card a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white !important; /* Force white text color */
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    color: white !important; /* Force white text color on hover */
}

/* Add specific styles for CTA section */
.cta .btn {
    background: var(--primary-color);
    color: white !important;
    border: 2px solid var(--primary-color);
}

.cta .btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Update contact form size and layout */
.contact-form {
    max-width: 560px; /* Increased from 500px by ~1.5cm */
    margin: 0 auto 2rem;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 700;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        font-size: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .section {
        padding: 2rem 1rem;
    }
}

/* Dark mode styles */
[data-theme="dark"] {
    --light: #1a1a1a;
    --dark: #f0f8ff;
    background-color: #001a1a;
}

[data-theme="dark"] .card {
    background: #002f2f;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Hide the icon that shouldn't be visible */
[data-theme="dark"] .fa-moon {
    display: none;
}

[data-theme="light"] .fa-sun {
    display: none;
}

/* Add these styles at the end of the file */
footer {
    margin-top: auto;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* Update contact page styles */
.contact-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

/* Update buttons positioning */
.buttons-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1002;
}

.theme-toggle, .mobile-menu-btn {
    position: static;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

/* Update contact page layout */
.contact-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5rem;
}

/* Remove grid layout */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Add these styles at the end of the file */
.portfolio-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px; /* Account for fixed header */
}

.portfolio-section .card {
    background: transparent;
    box-shadow: none;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-section .card:hover {
    transform: none;
}

[data-theme="dark"] .portfolio-section .card {
    background: transparent;
}

.portfolio-section h1 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 2.5em;
}

.portfolio-section p {
    color: var(--dark);
    font-size: 1.5em;
}

/* New contact page styles */
.contact-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-item {
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white !important; /* Wymuszamy biały kolor */
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-5px);
    background: var(--accent);
    color: white !important; /* Wymuszamy biały kolor również przy hover */
}

[data-theme="light"] .social-btn {
    background: var(--primary-color); /* Ciemniejsze tło dla jasnego motywu */
    color: white !important;
}

[data-theme="light"] .social-btn:hover {
    background: var(--accent);
}

[data-theme="dark"] .contact-item {
    background: rgba(255, 255, 255, 0.05);
}

/* Update existing contact page styles */
.contact-page {
    padding-top: 100px;
}

@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Error page styles */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #1a1a1a; /* Zmieniono na stały kolor zamiast var(--light) */
}

.error-container {
    background: var(--primary-color);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    margin: 0 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .error-container {
    background: rgba(0, 139, 139, 0.9); /* Darker turquoise for dark mode */
}

.error-code {
    font-size: 5em;
    margin: 0;
    font-weight: 700;
    color: #40E0D0;
    animation: pulse 1.5s infinite;
}

.error-message {
    font-size: 1.2em;
    margin: 1rem 0;
    color: rgb(255, 255, 255);
}

.error-page .buttons-container,
.error-page .header,
.error-page footer {
    display: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Portfolio Grid Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 139, 139, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 1rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1100;
}

.modal-content {
    position: relative;
    background: var(--light);
    margin: 5vh auto;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
}

.modal-content h2 {
    color: var(--dark);
    font-size: 2em;
    margin-bottom: 1rem;
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Dark mode adjustments */
[data-theme="dark"] .modal-content h2,
[data-theme="dark"] .project-description h3,
[data-theme="dark"] .project-description p,
[data-theme="dark"] .project-description h4 {
    color: var(--light);
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
}

.project-gallery {
    margin: 2rem 0;
}

.project-gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.project-description {
    margin-top: 2rem;
    color: var(--dark);
}

/* Dark mode adjustments */
[data-theme="dark"] .modal-content {
    background: #002f2f;
    color: var(--light);
}

[data-theme="dark"] .close-modal {
    color: var(--light);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 2vh auto;
    }
}

/* ...existing code... */

.project-description h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8em;
    text-align: center;
}

.project-description h4 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.3em;
}

.project-description p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.project-description .conclusion {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 139, 139, 0.1);
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

/* Dark mode adjustments */
[data-theme="dark"] .project-description h3 {
    color: var(--accent);
}

[data-theme="dark"] .project-description h4 {
    color: var(--secondary-color);
}

[data-theme="dark"] .project-description .conclusion {
    background: rgba(0, 139, 139, 0.2);
}

/* ...rest of existing code... */

/* Modal Styles */
.modal-content h2, 
.project-description h3,
.project-description p,
.project-description h4 {
    color: var(--dark);
}

/* Dark mode adjustments */
[data-theme="dark"] .modal-content h2,
[data-theme="dark"] .project-description h3,
[data-theme="dark"] .project-description p,
[data-theme="dark"] .project-description h4 {
    color: var(--light);
}

/* Portfolio dark mode fixes */
[data-theme="dark"] .portfolio-overlay h3,
[data-theme="dark"] .portfolio-overlay p {
    color: white;
}

[data-theme="dark"] .close-modal {
    color: white;
}

[data-theme="dark"] .modal-content h2 {
    color: white;
}

[data-theme="dark"] .project-description p {
    color: white;
}

/* ...rest of existing code... */

/* Dark mode adjustments for portfolio modal content */
[data-theme="dark"] .modal-content h2,
[data-theme="dark"] .modal-content h3,
[data-theme="dark"] .modal-content h4,
[data-theme="dark"] .modal-content p,
[data-theme="dark"] .project-description h3,
[data-theme="dark"] .project-description h4,
[data-theme="dark"] .project-description p,
[data-theme="dark"] .project-description .conclusion {
    color: white !important;
}

[data-theme="dark"] .project-description h3,
[data-theme="dark"] .project-description h4 {
    color: var(--accent) !important;
}
