/* Global Styles */

* {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

body {
 font-family: 'Montserrat', sans-serif;
 line-height: 1.6;
 color: #2a103f;
 background-color: #f7f7f7;
}

a {
 text-decoration: none;
 color: #337ab7;
}

a:hover {
 color: #23527c;
}

h1,
h2,
h3,
h4,
h5,
h6 {
 font-family: 'Montserrat', sans-serif;
 margin-bottom: 0.5rem;
}

p {
 font-family: 'Montserrat', sans-serif;
 margin-bottom: 1rem;
}

article {
 padding: 0 .25rem;
}

.main-section-container {
 display: grid;
 gap: 0.5rem;
}

.container {
 max-width: 1200px;
 margin: auto;
 padding: 2rem;
}

/* Header Styles */

.header {
 background-color: #fff;
 color: #000;
 padding: 1rem;
 text-align: center;
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 1;
 display: flex;
 justify-content: space-between;
 align-items: center;
 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header nav {
 width: 100vw;
}

.ai-candy-logo {
 list-style-type: none;
}

.ai-candy-logo img {
 float: left;
 width: 166px;
 margin-left: 10px;
}

@media (min-width: 768px) {
 .ai-candy-logo img {
 width: 216px;
 margin-left: 10px;
 }
}

@media (min-width: 1200px) {
 .ai-candy-logo img {
 width: 250px;
 margin-left: 10px;
 }
}

.logo-social-container {
 display: flex;
 justify-content: space-between;
 align-items: center;
 position: relative; /* Add this line */
}

.social-icons {
 position: absolute; /* Change from float to position: absolute */
 right: 0; /* Align to the right of the parent container */
 list-style-type: none;
}

.social-icons a {
 margin-left: 8px;
 margin-right: 8px;
}

.social-icons i {
 font-size: 1.25em;
}

@media (min-width: 768px) {
 .social-icons i {
 font-size: 1.5em;
 }
}

@media (min-width: 1200px) {
 .social-icons i {
 font-size: 1.75em;
 }
}

.social-icons a i {
 color: #2a103f;
}

/* Hero Styles */

.hero-section {
 position: relative;
 height: 500px;
}


.hero-container img {
 object-fit: cover;
 width: 100vw;
 height: 500px;
 position: fixed;
 z-index: -1;
}

/* Add CSS animation for fading in the mission statement text overlay */
.mission-statement-overlay {
 position: absolute;
 top: 40%;
 font-size: 2em;
 margin-left: 1.0em;
 color: #fff;
 width: 80%;
 text-shadow: 0px 0px 10px rgba(84, 32, 126, 1.0);
 opacity: 0; /* Set initial opacity to 0 */
 animation: fadeIn 3s forwards; /* Add CSS animation */
 animation-delay: 1s; /* Delay the animation by 1 second */
}

@keyframes fadeIn {
 from { opacity: 0; }
 to { opacity: 1; }
}


@media only screen and (max-width: 767px) {
 .mission-statement-overlay {
 font-size: 1.5em; /* Reduced font size for smaller screens */
 }
}

@keyframes fadeIn {
 from { opacity: 0; }
 to { opacity: 1; }
}

@keyframes scaleUp {
 from { transform: scale(0.5); }
 to { transform: scale(1); }
}

.project-section h1,
.service-section h1 {
 margin-left: 0.2em;
 font-size: 32px;
}

.project-category h3,
.project-category p,
.service-category h3,
.service-category p {
 margin-left: 0.2em; /* Add this line */
}

.project-category video {
 width: 100%;
 height: auto;
 object-fit: cover;
 border-radius: 8px;
 box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Project Styles */

.project-category img {
 width: 100%;
 height: auto;
 border-radius: 8px;
 box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.project-section {
 background-color: #f7f7f7;
 padding: 48px 36px 0px 36px;
}

/* Service Styles */

.service-category img {
 width: 100%;
 height: auto;
 border-radius: 8px;
 box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.service-section {
 background-color: #f7f7f7;
 padding: 48px 36px 48px 36px;
}

/* Responsive Design Breakpoints */

@media only screen and (min-width: 768px) {
 .main-section-container {
 grid-template-columns: repeat(3, 1fr);
 }
}

@media only screen and (max-width: 767px) {
 .main-section-container {
 grid-template-columns: repeat(1, 1fr);
 }
 
 .project-section {
 padding: 48px 16px 0px 16px;
 }
 
 .service-section {
 padding: 48px 16px 48px 16px;
 }
}

@media only screen and (max-width: 676px) {
 .ai-candy-logo img {
 width: 116px;
 }
 
 .project-category p,
 .service-category p {
 margin-bottom: 32px; 
 }
}

/* Footer Styles */

.footer {
 background-color: #2a103f;
 color: #fff;
 padding: 2rem;
 text-align: center;
}

.footer ul {
 list-style-type: none;
 padding: 0;
 margin: 0;
 line-height: 1.5;
}

.footer ul li {
 margin-bottom: 0.5rem;
}

.social-icons-footer a {
 margin-left: 4px;
 margin-right: 4px;
}

.social-icons-footer i {
 font-size: 1.5em;
}

.social-icons-footer a i {
 color: #fff;
}

.social-icons-footer {
 margin-bottom: 8px;
}