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

body {
    background: url('../images/background.png') center/cover no-repeat fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Aptos, sans-serif;
    color: white;
    overflow-x: hidden;
    animation: fadeIn 0.5s ease-in-out;
}

body.fade-out {
    animation: fadeOut 0.4s ease-in-out forwards;
}

a:hover,
a:focus,
a:active {
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Index page styles */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

body:not(.page2) main a {
    display: flex;
    justify-content: center;
    align-items: center;
}

body.index main img {
    max-width: 25%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

body.index main img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Page 2 styles */
header {
    position: absolute;
    top: 30px;
    left: 100px;
}

header a {
    display: inline-block;
}

header img {
    max-width: 310px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

header img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

body.page2 {
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 200px;
    padding-left: 0;
}

body.page2 main {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 100px;
    width: auto;
}

main h1 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: left;
    line-height: 1.4;
}

main p {
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 800px;
    line-height: 1.8;
    text-align: left;
    margin-left: 0;
}

main ul {
    list-style: none;
    max-width: 800px;
    padding-left: 0;
    padding-inline-start: 0;
    margin-left: 0;
}

main ul li {
    margin-bottom: 25px;
    text-align: left;
    font-size: 18px;
}

main ul a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: opacity 0.3s;
    line-height: 1.8;
    display: inline;
}

main ul a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.highlight {
    color: #00bf63;
}

footer {
    position: absolute;
    bottom: 20px;
    left: 100px;
    color: white;
    font-size: 16px;
}

/* Page 3 styles */
body.page3 {
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 100vh;
    height: auto;
    padding: 60px 0 80px 100px;
}

body.page3 header {
    position: static;
    margin-bottom: 40px;
}

body.page3 header img {
    max-width: 390px;
    height: auto;
}

body.page3 main {
    display: block;
    width: 900px;
}

body.page3 h1 {
    margin-bottom: 56px;
    max-width: 860px;
}

body.page3 ul {
    list-style: none;
    padding: 0;
    margin: 0 0 52px;
    max-width: 980px;
}

body.page3 li {
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 28px;
}

body.page3 .brands h2 {
    font-size: 18px;
    margin-bottom: 14px;
}

body.page3 .brands hr {
    border: 0;
    border-top: 4px solid #fff;
    width: 100%;
    margin-bottom: 24px;
}

body.page3 .brands img {
    width: 94px;
    height: auto;
}

body.page3 .brand-logos {
    display: flex;
    gap: 40px;
    align-items: center;
}

body.page3 footer {
    position: static;
    margin-top: 36px;
    left: auto;
}

/* Responsive styles */
@media (max-width: 1024px) {
    header {
        left: 50px;
    }

    body.page2 main,
    body.page3 {
        padding-left: 50px;
    }

    body.page3 main {
        width: 90%;
    }

    footer {
        left: 50px;
    }
}

@media (max-width: 768px) {
    body.index main img {
        max-width: 60%;
    }

    header {
        left: 30px;
        top: 20px;
    }

    header img {
        max-width: 220px;
    }

    body.page2 {
        padding-top: 150px;
    }

    body.page2 main,
    body.page3 {
        padding-left: 30px;
        padding-right: 30px;
    }

    body.page3 main {
        width: 100%;
    }

    body.page3 header img {
        max-width: 280px;
    }

    main h1 {
        font-size: 28px;
    }

    main p,
    main ul li,
    main ul a {
        font-size: 16px;
    }

    footer {
        left: 30px;
        font-size: 14px;
    }

    body.page3 .brands h2 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body.index main img {
        max-width: 80%;
    }

    header {
        left: 20px;
        top: 15px;
    }

    header img {
        max-width: 180px;
    }

    body.page2 {
        padding-top: 120px;
    }

    body.page2 main,
    body.page3 {
        padding-left: 20px;
        padding-right: 20px;
    }

    body.page3 header img {
        max-width: 200px;
    }

    main h1 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    main p {
        margin-bottom: 40px;
    }

    main p,
    main ul li,
    main ul a {
        font-size: 14px;
    }

    main ul li {
        margin-bottom: 18px;
    }

    footer {
        left: 20px;
        font-size: 12px;
    }

    body.page3 .brands h2 {
        font-size: 14px;
    }

    body.page3 .brands img {
        width: 70px;
    }

    body.page3 .brand-logos {
        gap: 20px;
    }
}
/* Accordion styles */
.accordion-item {
	box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3), 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.2);
	border-radius: 0.25rem;
	margin-bottom: 0.5rem;
	overflow: hidden;
	width: 100%;
}

.accordion-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.6em 0.875em;
	cursor: pointer;
	min-height: 2.75rem;
	gap: 1rem;
}

.accordion-header:hover {
	opacity: 0.8;
}

.accordion-header span:first-child {
	flex: 1;
}

.accordion-arrow {
	width: 0.625rem;
	height: 0.625rem;
	border-right: 2px solid white;
	border-bottom: 2px solid white;
	transform: rotate(45deg);
	flex-shrink: 0;
	transition: transform 0.3s ease;
	margin-top: -0.25rem;
}

.accordion-body {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
	font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.accordion-item.open .accordion-body {
	max-height: 60vh;
	padding: 0.625em 0.875em;
	opacity: 1;
}

.accordion-item.open .accordion-arrow {
	transform: rotate(-135deg);
	margin-top: 0.125rem;
}

 /* ── Tech tags ── */
.tech-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.2rem 0 2rem;
    animation: fadeUp 0.6s 0.6s ease both;
}

.tech-tag {
    font-size: 0.68rem;
    color: #7db87d;
    border: 1px solid rgba(125,184,125,0.35);
    padding: 0.22rem 0.65rem;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.project-demo-link {
    display: inline-block;
    font-size: 0.68rem;
    color: white;
    border: 1px solid rgba(125,184,125,0.35);
    padding: 0.22rem 0.65rem;
    letter-spacing: 0.05em;
    font-weight: 400;
    text-decoration: none;
    margin-left: 0.4rem;
}

.project-demo-link:hover {
    opacity: 0.8;
}

/* Contact toggle styles */
.contact-link {
    font-size: 1rem;
    color: #7db87d;
    text-decoration: none;
    cursor: pointer;
    font-weight: 400;
    transition: color 0.2s;
}
.contact-link:hover { color: #a5d4a5; }

.contact-reveal {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #c8c8bc;
    font-weight: 300;
}

/* ── Staggered entrance animations ── */

/* Index page animations */
body.index main img {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0s;
}

body.index footer {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.1s;
}

/* Page 2 animations */
body.page2 header img {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0s;
}

body.page2 main h1 {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.1s;
}

body.page2 main p:nth-of-type(1) {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.2s;
}

body.page2 main p:nth-of-type(2) {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.3s;
}

body.page2 main ul li:nth-of-type(1) {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.4s;
}

body.page2 main ul li:nth-of-type(2) {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.5s;
}

body.page2 .contact-link {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.6s;
}

body.page2 .contact-reveal {
    animation: fadeUp 0.3s ease both;
}

body.page2 footer {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.7s;
}

/* Page 3 & 4 animations */
body.page3 header img {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0s;
}

body.page3 main h1 {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.1s;
}

body.page3 .accordion-item:nth-of-type(1) {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.2s;
}

body.page3 .accordion-item:nth-of-type(2) {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.3s;
}

body.page3 .accordion-item:nth-of-type(3) {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.4s;
}

body.page3 footer {
    animation: fadeUp 0.6s ease both;
    animation-delay: 0.5s;
}

.contact-reveal a {
    color: #00bf63;
    text-decoration: none;
}
.contact-reveal a:hover { color: #00bf63; }