/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/*MY RULES START HERE*/

body{
    background-color: #F3F1EA;
    font-family: "Quicksand",Verdana, Tahoma,sans-serif; 
    font-weight:400;
    font-style:normal;
    font-size:25px;
    color:#2F4DC1;
    width:100%;
    margin:0;
    padding:0;
    height: 100%;
}
h1{
    font-family: "Instrument Serif",Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    color: #2F4DC1;
    font-size: 5rem;
    margin:100px 50px 0 50px;
    padding-top:20px;
}
h2{
    font-family: "Instrument Serif", Georgia, 'Times New Roman', Times,serif;
    font-weight: 400;
    font-style:italic;
    text-align: center;
    color:#2F4DC1;
    font-size: 5rem;
    margin-bottom: 20px;
}
h3{
    font-family:"Instrument Serif", Georgia, 'Times New Roman', Times,serif;
    font-weight:400;
    font-style: normal;
    text-align: center;
    color:#2F4DC1;
    font-size: 3rem;
}
h4{
    font-family:"Quicksand",Verdana, Tahoma, sans-serif;
    font-weight:700;
    font-style:normal;
    font-size:25px;
    color:#2F4DC1;
    width:100%;
    margin:0;
    padding-top:5px;
    height: 100%;
    text-decoration: underline;
}
img{
    display:flex;
    justify-content: center;
    align-items:center;

}
header{
    border-bottom: 2px solid #2F4DC1;
}
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #F3F1EA;
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 2px solid #2F4DC1;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}
nav ul li{
    margin:0 30px;
    display:inline;
}
nav ul li a{
    text-decoration:none;
    color:#2F4DC1;
    text-decoration-line:none;
    display:inline;
}
nav ul li a:hover{
    color:#DA5728;
    background-color:#F3F1EA;
}
nav input[type="checkbox"] {
    display: none;  /* Hide the checkbox */
}
li{
    display:inline;
    margin-left:120px;
    margin-right:100px;
}
footer{
    margin:30px 32px 0 32px;
    padding: 40px;
}
.footer-container{
    display:flex;
    justify-content: space-between;
    align-items: center;
    border-top:1px #2F4DC1;
    padding-top:20px 0 10px 0;
}
.footer-text{
    max-width:50%;
    font-family:"Instrument Serif", Georgia, 'Times New Roman', Times,serif;
    color:#2F4DC1;
    font-size:20px;
    line-height:25px;
}
.location-text{
    font-family:"Quicksand Regular",Verdana, Tahoma, sans-serif;
    color:#2F4DC1;
    font-size:20px;
    padding:20px 0 10px 0;
}
.footer-links{
    display:flex;
    gap:30px;
}
.link-container{
    font-family:"Instrument Serif",Georgia, 'Times New Roman', Times, serif;
    text-align:center;
    margin:20px;
    text-decoration: none;
}
.link{
    font-size: 18px;
    color:#2F4DC1;
    text-decoration:none;
    margin:10px;
    transition: color .3s ease;
}
.link-container:hover{
    color:#DA5728;
    text-decoration: none;
    background-color:#F3F1EA;
}
.about-page main {
    max-width: 80%;
    margin: 0 auto;
    position: relative;
    overflow: hidden; 
}
.about-page main p{
    display:flex;
    flex-direction: column;
    gap: 20px;
    margin: 10px 80px 20px 80px;
    line-height:1.6;
    font-size: 1.25rem;
}
.about-page h1{
    padding-bottom: 25px;
}
.about-page main img{
    max-width: 30%;
    height: auto;
    float:right;
    margin-left:20px;
    margin-bottom: 20px;
    border-radius: 50%;
    width:250px
}
.index main{
    max-width: 80%;
    margin: 0 auto;
    position: relative;
    overflow: hidden; 
}
.index main p, h4{
    display:flex;
    flex-direction: column;
    gap: 20px;
    margin: 10px 80px 20px 80px;
    line-height:1.6;
    font-size: 1.25rem;
}
.index h1{
    padding-bottom: 25px;
}
.index main img{
    max-width: 80%;
    height: auto;
    display:block;
    margin:20px auto;
    border-radius: 0;
    width:800px;
}
.case-studies{
    font-family:"Instrument Serif", Georgia, 'Times New Roman', Times,serif;
    color:#2F4DC1;
    background-color:#F3F1EA;
    padding:20px;
    margin:0 30px 0 30px;
    display: flex;
    flex-direction: column;
    gap:20px;
}
.case-item{
    display:flex;
    align-items:center;
    border:2px solid #2F4DC1;
    padding:20px;
    background-color: #F3F1EA;
    box-shadow:0 4px 8px rgba(0, 0, 0, 0.1);
}
.case-number{
    font-size:2rem;
    font-weight:bold;
    color:#2F4DC1;
    min-width: 50px;
    text-align: right;
    margin-right:20px;
}
.case-content{
    flex:1;
}
.case-title{
    font-size:1.5rem;
    text-align:left;
    font-weight:bold;
    padding: 10px;
}
.case-description{
    font-size:1rem;
    text-align: left;
    margin-top:5px;
    padding: 10px;
}
#current-time{
    font-family: "Quicksand", Verdana, Tahoma,sans-serif;
    color:#2F4DC1;
    font-size: 18px;
    margin-left:20px;
}
/*ANIMATED WORDS*/
.rotating-word {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
/* Hide old words */
.rotating-word.hidden {
    opacity: 0;
}
.rotating-word.hidden {
    opacity: 1;
}
/*ARROW*/
.down-arrow {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 30px solid #DA5728;
    margin: 100px auto;
    animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.tag-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top:50px;
    padding-bottom: 20px;
    align-items: center;
  }
  
  .tag {
    display: inline-block;
    padding: 8px 15px;
    border: 2px solid #2F4DC1;
    border-radius: 25px;
    font-style: italic;
    font-family: serif; 
    color: #2F4DC1; 
    text-align: center;
    white-space: nowrap;
  }
    /* menu toggle */
    label.toggle{
        display:none;
    }

/*MEDIA QUERIES*/
@media (min-width: 768px) {
    nav ul li {
        margin: 0 15px;
    }

    /* Hide the toggle icon on desktop */
    nav .toggle {
        display: none;
    }

    nav ul li a {
        font-size: 18px;
    }

    /* Hover effect for links on desktop */
    nav ul li a:hover {
        color: #DA5728;  /* Consistent hover color on desktop */
    }
}
@media (max-width: 767px) {
    body{
        font-size: 16px; 
        padding: 10px;
    }
    h1{
        font-size: 3rem; 
        margin:50px 0 5px 0;
        text-align:center;
    }
    h2{
        font-size: 3rem; 
        margin-top:20px;
        text-align:center;
    }
    h3 {
        font-size: 2rem;
        text-align: center; 
        margin-top: 10px;
    }
    h4{
        font-size:1rem;
        line-height:1.5;
        text-align:left;
        padding:0 20px;
        margin:10px 0;
    }
    .index main p,
    .about-page main p,
    .ux-redesign main p,
    .case-description,
    .case-title{
        padding: 0 20px;
        margin: 10px 0;
        font-size: 1rem; /* or 1.1rem if you want a bit bigger */
        line-height: 1.5;
        text-align: left;
    }
    .index main,
    .about-page main,
    .ux-redesign main {
    padding: 0 10px;
    }
    ul {
        flex-direction: column; 
        align-items: center;
        gap: 10px;
    }
    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        background-color: #F3F1EA;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 10px 0;
        width: 100%;
        z-index: 999;
    }
    li {
        margin: 10px 0; 
    }
    nav .toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        position:relative;
    }
    nav .toggle span {
        width: 100%;
        height: 4px;
        background-color: #2F4DC1;
        border-radius: 5px;
        transition:all 0.3s ease;
    }
    nav input[type="checkbox"]:checked ~ ul {
        display: flex;
    }
    nav input[type="checkbox"]:checked ~ .toggle .line-top {
        transform: rotate(45deg);
        position:absolute;
        top:0;
        left:0;
    }
    nav input[type="checkbox"]:checked ~ .toggle .line-mid {
        opacity: 0;
    }
    nav input[type="checkbox"]:checked ~ .toggle .line-bot {
        transform: rotate(-45deg);
        position:absolute;
        bottom:0;
        left:0;
    }
    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    nav ul li a {
        text-decoration: none;
        color: #2F4DC1;
        font-size: 18px;
    }

    /* Mobile text color and background on hover */
    nav ul li a:hover {
        color: #DA5728;
        background-color: #F3F1EA;
    }	

    .case-studies {
        padding: 10px;
    }
    .case-item {
        flex-direction: column; 
        text-align: left;
        padding: 15px;
    }
    .case-title{
        text-align:left;
    }
    .case-number {
        font-size: 1.5rem;
        margin-bottom: 10px;
        text-align: left; 
    }
    .hero-text{
        padding-top:20px;
        text-align:center;
    }
    .designer{
        display:inline-block;
        margin-top:0;
    }
    .link-container{
        font-size:16px;
        display:flex;
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }
    .link-container a{
        font-size:16px;
        text-decoration: none;
    }
    .footer-container{
        display:flex;
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap:15px;
    }
    .footer-text{
        margin-top: 10px;
        max-width: 80%;
    }
    .location-text{
        margin-top:10px;
    }
    .about-page main {
        display:flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        text-align: left;
        max-width: 90%;
        padding: 0 10px;
    }
    .about-page main img {
        width: 60%; 
        max-width: 250px;
        float: none;
        margin: 0 auto 15px auto;
    }
    .about-page main p {
        flex: 1;
        font-size: 0.9em;
        line-height: 1.4;
    }
    .ux-redesign main{
        display:flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        text-align: left;
        max-width: 80%;
        padding: 0 5px;
        margin:0 auto;
    }
    .ux-redesign main p{
        flex: 1;
        font-size: 0.8em;
        line-height: 1.2;
        margin: 5px 0;
        padding: 2px 0;
    }
}
@media (max-width: 1024px) {
    h1, h2 {
        font-size: 4rem;
    }
    nav ul {
        justify-content: center; 
        gap: 20px;
    }
    .case-studies {
        padding: 15px;
    }
    .case-item {
        padding: 15px;
    }
}