@import url("colors.css");
@import url("navigation.css");
@import url("hero.css");
@import url("about.css");
@import url("portfolio.css");
@import url("contact.css");
@import url("footer.css");
@import url("popup.css");

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-white);
}

h1, h2, h3, h4 {
    font-family: 'Crimson Text', serif;
    font-weight: 500;
}

.reveal {
  opacity:0;
  transform:translateY(30px);
  transition:opacity .8s ease-out, transform .8s ease-out;
}

.reveal.visible {
  opacity:1;
  transform:none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: var(--secondary-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--secondary-dark);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {        
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
