* {
    font-family: 'Montserrat', sans-serif;
}

/* Opcjonalnie: Możesz nadać różne grubości dla nagłówka i tekstu */
h1, h2, h3 {
    font-weight: 700; /* Gruby napis dla nagłówków */
    text-transform: uppercase; /* Montserrat świetnie wygląda dużymi literami */
}

p {
    font-weight: 400; /* Standardowa grubość dla tekstu */
}

/* =========================================
   1. ZMIENNE I PODSTAWY
========================================= */
:root {
    --primary-color: #070341;
    --nav-bg: #e5e5e5;
    --body-bg: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    background-color: var(--body-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* =========================================
   2. NAWIGACJA
========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 80px;
    background-color: var(--nav-bg);
    border-bottom: 1px solid #d1d1d1;
}

.logo a {
    text-decoration: none;
    color: var(--text-dark);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 4px;
    line-height: 1;
    margin-bottom: 5px;
}

/* Nowy styl dla logo domeny agata-kurek.com */
.domain-logo {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: lowercase;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.domain-logo:hover {
    color: var(--primary-color);
}

.logo p {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-gray);
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* =========================================
   3. SEKCJA HERO
========================================= */
.hero {
    padding: 5rem 10%;
}

.hero-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    gap: 80px;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    height: 500px;
    object-fit: cover;
}

.hero-text h2 {
    color: #070341;
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-top: 25px;
    display: inline-block;
    border-bottom: 2px solid #070341;
    padding-bottom: 4px;
}

.hero-text p {
    font-size: 0.95rem;
    color: #333333;
    margin-bottom: 10px;
    max-width: 400px;
}

/* =========================================
   4. PRZYCISKI
========================================= */
.btn-reel {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: #070341;
    padding: 10px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-reel:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Przycisk Useme w stopce */
.btn-useme-small {
    margin-top: 10px;
    padding: 8px 15px;
    border: 1px solid #070341;
    color: var(--primary-color) !important;
    font-size: 0.7rem !important;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-useme-small:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* =========================================
   5. SEKACJA PROJEKTY (SIATKA)
========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.project-card h3 {
    letter-spacing: 2px;
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.project-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =========================================
   6. STOPKA (3-KOLUMNOWA)
========================================= */
.footer {
    background-color: var(--nav-bg);
    padding: 4rem 10%;
    border-top: 1px solid #d1d1d1;
    margin-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column.links { align-items: center; }
.footer-column.contact { align-items: flex-end; text-align: right; }

.footer p, .footer a {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--text-gray);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-info p:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.footer-links a:hover, .footer-email:hover {
    color: var(--primary-color);
}

/* Tooltip dla e-maila */
.footer-email {
    font-weight: 600;
    position: relative;
    cursor: pointer;
    color: var(--text-dark) !important;
}

.copy-trigger .tooltip {
    position: absolute;
    bottom: 130%;
    right: 0;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-trigger:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   7. RESPONSYWNOŚĆ
========================================= */
@media screen and (max-width: 900px) {
    /* Nawigacja - układ pionowy */
    .navbar { flex-direction: column; padding: 1.5rem 5%; gap: 1.5rem; }
    
    /* Układ sekcji głównej - tekst pod zdjęciem */
    .hero-container { flex-direction: column; text-align: center; gap: 40px; }
    
    /* POPRAWKA ZDJĘCIA: Teraz będzie widoczne w całości i dopasowane do szerokości ekranu */
    .hero-image img { 
        width: 100%;
        max-width: 100%; 
        height: auto; 
        margin-left: 0; /* Usuwamy przesunięcie, żeby nie ucinało twarzy */
        object-fit: contain; /* Gwarantuje, że całe zdjęcie zmieści się w ramce */
    }
    
    .hero-text p { margin: 0 auto; }

    /* Menu mobilne - dodajemy style dla klasy .active wyzwalanej przez JS */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    /* Stopka - jedna kolumna na telefonie */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .footer-column { align-items: center !important; text-align: center !important; }
    
    /* Wyśrodkowanie dymka "Skopiowano" na telefonie */
    .copy-trigger .tooltip { right: 50%; transform: translateX(50%); }
}
