.back-button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 18px;
    font-weight: bold;
    color: #2e7d32; /* green accent */
    background: rgba(46, 125, 50, 0.1); /* light green bg */
    border: 2px solid #4ac39b; /* accent border */
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    cursor: pointer;
}

.back-button:hover {
    background: #4ac39b; /* solid accent on hover */
    color: white;
    transform: translateY(-2px); /* subtle lift */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    background: #0a0f0a;
    color: #e8f5e8;
    min-height: 100vh;
    overflow-x: hidden;
    opacity: 1;
    transition: opacity 0.5s ease;
}

body.fade-out {
    opacity: 0;
}
body.fade-out {
    opacity: 0;
}

/* Background Image Area */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.6s ease;

    background: 
        linear-gradient(135deg, #000000 0%, #16213e 50%, #0f3460 100%), 
        url('bg-optimized.webp') center/cover no-repeat;

    /* Optional: blend the gradient */
    background-blend-mode: overlay;
}

.background-overlay.fade-in {
    opacity: 1;
}

.background-overlay.fade-out {
    opacity: 0;
}

.container {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.container.fade-in {
    opacity: 1;
}

.container.fade-out {
    opacity: 0;
}


.background-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-align: center;
    backdrop-filter: blur(100px);
}

.background-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 100px;
    opacity: 0;
    animation: heroEntrance 2s ease-out 0.5s forwards;
}

.profile-container {
    position: relative;
    margin-bottom: 40px;
    position: relative; /* make it a positioning context */
    width: 200px;
    height: 200px;
    margin: 0 auto; /* center horizontally */
}

.profile-image-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e657d, #4ca3af, #4ac3a7);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    text-align: center;
    border: 4px solid rgba(74, 195, 177, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

/* Fixed profile image styling */
.profile-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-image-placeholder:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
}

/* Changed pulse color to blue */
.glitch-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    opacity: 0;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.2); }
}

/* Site Logo */
.site-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.2) rotate(10deg);
}

/* Glowing Text Effect */
.glowing-text {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.letter {
    display: inline-block;
    color: #000000;
    text-shadow: 0 0 10px #4ac3b9, 0 0 20px #4ac3b9, 0 0 30px #4ac3b9;
    animation: glow 2s ease-in-out infinite alternate;
}

.letter:nth-child(odd) { animation-delay: 0.1s; }
.letter:nth-child(even) { animation-delay: 0.2s; }
.space { width: 20px; }

@keyframes glow {
    from { text-shadow: 0 0 5px #29ffd4, 0 0 10px #29ffd4, 0 0 15px #29ffd4; }
    to { text-shadow: 0 0 10px #29ffd4, 0 0 20px #29ffd4, 0 0 30px #29ffd4; }
}

/* Typing Effect */
.typing-container {
    font-size: 1.4rem;
    color: #275c1c;
}:xr-overlay

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(74, 195, 195, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: cardSlideUp 0.8s ease-out forwards;
}
.card a {
  text-decoration: none;
  color: inherit; /* optional: match parent text color */
}


.card:nth-child(1) { animation-delay: 0.8s; }
.card:nth-child(2) { animation-delay: 1s; }
.card:nth-child(3) { animation-delay: 1.2s; }
.card:nth-child(4) { animation-delay: 1.4s; }

.card.large {
    grid-column: span 2;
}

.card.wide {
    grid-column: span 2;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #3b82f6;
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.card:hover .icon {
    transform: rotate(360deg) scale(1.2);
}

.card h3 {
    color: #4ac395;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Project List */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #29ffd4;
    
}


.project-item {

padding: 12px;
background: rgba(46, 125, 50, 0.2);
border-left: 4px solid #4ac39b;
border-radius: 5px;
transition: all 0.3s ease;
text-decoration: none;
color: inherit;      /* keep text color consistent */
cursor: pointer;     /* indicate it’s clickable */
display: block;      /* make full area clickable */
}

.project-item:hover,
.project-item:visited,
.project-item:active {
color: inherit;      /* no color change */
text-decoration: none; /* no underline */
}


.project-item:hover {
    background: rgba(46, 125, 50, 0.4);
    transform: translateX(10px);
}

/* Quote */
blockquote {
    font-style: italic;
    font-size: 1.1rem;
    color: #c7d2cc;
    border-left: 4px solid #4ac3ab;
    padding-left: 20px;
    margin: 10px 0;
}

/* Contact Section */
.contact-section {
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    color: #e8f5e8;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.2) rotate(10deg);
}

.contact-text {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Ripple Effect */
.contact-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.contact-card:hover .contact-ripple {
    width: 300px;
    height: 300px;
}

/* Animations */
@keyframes heroEntrance {
    0% { opacity: 0; transform: translateY(100px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes cardSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container { padding: 40px 20px; }
    .glowing-text { font-size: 2.5rem; }
    .card.large, .card.wide { grid-column: span 1; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .glowing-text { font-size: 2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .profile-image-placeholder { width: 120px; height: 120px; }
}





