:root {
    --primary: #d32f2f;
    --secondary: #f5f5f5;
    --text-dark: #333;
    --text-light: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
	padding-top:2.0rem;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
	background-color:#a5abb5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.card, .cardProjects {
    background: var(--text-light);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.75);
    padding: 1.5rem;
    transform: translateX(-50px);
    opacity: 0;
    animation: slideInSection 0.8s forwards;
    border: 1px solid #ccc;
	
}

.cardProjects {
	padding: 0.5rem 1rem; /* smaller padding */
    margin-bottom: 0.75rem; /* space between cards */
    border-radius: 5px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	
}

.cardProjects, a {
	text-decoration:none;
	text-align:center;
	color:black;
}

.cardProjects:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 16px 30px rgba(0,0,0,0.35), 0 6px 12px rgba(0,0,0,0.15);
    border-color: var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@keyframes slideInSection {
    to { transform: translateX(0); opacity: 1; }
}

.profile-img img { width: 100%; border-radius: 12px; }

h2.section-title { color: var(--primary); font-size: 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }

.right-column { display: flex; flex-direction: column; gap: 1.5rem; }

@media (max-width: 768px) { .container { grid-template-columns: 1fr; } }

footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    background: white;
    color: var(--text-light);
    
	color:black;
	box-shadow: 0 16px 30px rgba(0,0,0,0.35), 0 6px 12px rgba(0,0,0,0.35);
}
footer a { 
color:black;


 }
 
 footer a:hover{ 
color:grey;


 }

#scrollOverlay {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
}

.scroll-inner {
    display: flex;
    flex-direction: column; /* stack arrow above text */
    align-items: center;    /* center horizontally */
    animation: bounce 2s infinite;
    gap: 6px; /* spacing between button and text */
	
}

#scrollOverlay button {
    font-size: 18px;
    background: #a5abb5;
    color: #fff;
    border: none;
    border-radius: 3%;
	border-style:solid;
	border-width:2px;
	border-color:#C0C0C0;
    padding: 14px 24px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
	box-shadow:black;
	color:black;
}

#scrollOverlay button:hover {
    background: #a5abb5; /*color which is now green*/
    transform: scale(1.1);
	color:white;
}



@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
/* Top navigation bar */
.top-nav {
    position: sticky;       /* stays at the top */
    top: 0;
	right:0px;
    background: white; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
	position: fixed;       /* instead of sticky, so it’s always on top */
    top: 0;
    left: 0;
    width: 100%;   
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 999999;       /* force it above all content */
}

.nav-container {
    
    
    display: flex;
    justify-content: space-around; /* evenly space links */
    align-items: center;
    text-wrap: wrap;
	box-shadow: 0 2px 6px rgba(0,0,0,0.4);
	Padding:0.25em;
}



.nav-container a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding-top:10px;
	padding-bottom:10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
	
}

.nav-container a:hover {
    transform: translateY(-3px);
    text-decoration:underline;
	
}
