:root {
    --primary-color: #3399ff;
    --primary-hover-color: #007bff;
    --dark-color: #121212;
    --light-color: #e0e0e0;
    --card-color: #1E1E1E;
    --white-color: #fff;
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

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

.about-content {
    background: var(--card-color);
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    align-items: right;
    padding: 1rem;
    
}

.about-content:hover {
    transform: translateY(-5px);
}

.about-image {
  float: left;
  width: 150px;
  height: 150px;
  overflow: hidden;
  padding-right: 1rem;
  padding-bottom: 1rem;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  --g: 3px;     /* the gap */
  --b: 6px;    /* border thickness*/
  --c: #066796; /* the color */
  
  
  padding: calc(var(--g) + var(--b));
  --_c: #0000 0 25%, var(--c) 0 50%;
  --_g1: repeating-linear-gradient(90deg ,var(--_c)) repeat-x;
  --_g2: repeating-linear-gradient(180deg,var(--_c)) repeat-y;
  background:
    var(--_g1) var(--_p, 25%) 0   ,var(--_g2) 0    var(--_p,125%),
    var(--_g1) var(--_p,125%) 100%,var(--_g2) 100% var(--_p, 25%);
  background-size: 200% var(--b),var(--b) 200%;
  cursor: pointer;
  filter: grayscale(50%);
  transition: .3s;
}

.about-image img:hover {
  --_p: 75%;
  filter: grayscale(0%);
}

.about-content::after {
  content: "";
  display: table;
  clear: both;
}


.journey-content {
    background: var(--card-color);
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    align-items: right;
    padding: 1rem;
}

.journey-content:hover {
    transform: translateY(-5px);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--dark-color);
    color: var(--light-color);
    opacity: 0;
    animation: fadeInBody 1s ease-in forwards;
}

@keyframes fadeInBody {
    to {
        opacity: 1;
    }
}



.container {
  max-width: 960px;
  margin: auto;
  padding: 0 20px;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.certificate-card:last-child {
    grid-column: span 2;
    justify-self: center;
}

.certificate-card {
    background: var(--card-color);
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
}

.certificate-card:hover {
    transform: translateY(-5px);
}

.certificate-card img {
    width: 100%;
    height: auto;
    display: block;
}

.certificate-content {
    padding: 1.5rem;
    opacity: 1;
    height: auto;
    overflow: visible;
    background: var(--card-color);
}

.certificate-card:hover .certificate-content {
    opacity: 1;
    height: auto;
    padding: 1.5rem;
    background: var(--card-color);
}

.certificate-card:hover .certificate-content {
    opacity: 1;
    height: auto;
    padding: 1.5rem;
}

.certificate-card:hover .certificate-content {
    opacity: 1;
}

.certificate-content h3 {
    margin-bottom: 0.5rem;
}


h1, h2, p {
    color: var(--light-color);
    margin-bottom: 1rem;
}

header h1 {
    text-shadow: 0 0 8px #fff, 0 0 16px #fff, 0 0 32px #fff;
    color: #fff;
}

h3, p1 {
  color: var(--light-color);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

header {
    background: var(--dark-color);
    box-shadow: var(--box-shadow), 0 6px 16px -4px rgba(255,255,255,0.7); /* white glow bottom */
    border-bottom: 2px solid rgba(255,255,255,0.5);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--light-color);
    font-weight: bold;
    transition: color 0.3s, text-shadow 0.3s, filter 0.3s;
}

nav ul li a:hover {
    color: #000;
    text-shadow: 0 0 4px #fff, 0 0 8px #fff;
    filter: drop-shadow(0 0 3px #fff);
}

.hero {
    background: var(--dark-color);
    color: var(--white-color);
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
}

.hero .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: var(--primary-hover-color);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
}


section {
    padding: 4rem 0;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-color);
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card img {
    width: 30%;
    max-width: 200px;
    min-width: 150px;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
}

.skill-card .skill-content {
    padding: 1rem;
    text-align: left;
}

.skill-card h3 {
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--light-color);
}

.skill-card {
    background: var(--dark-color);
    padding: 0rem;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    font-weight: bold;
}

.project-card {
    background: var(--dark-color);
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    overflow: hidden; 
}

.project-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 2rem;
}

.project-tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-tech-list li {
    background: #333;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.project-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-color);
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 30%;
    max-width: 200px;
    min-width: 150px;
    height: 100%;
    object-fit: cover;
}

.project-card .project-content {
    padding: 1.5rem;
    text-align: left;
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

.project-card p1 {
    color: var(--light-color);
}

.project-card a {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.status-button.in-progress {
    background: #6c757d; /* Gray color */
    color: #fff;
    cursor: not-allowed;
}

.project-card a:hover {
    background: var(--primary-hover-color);
}


#contact {
    text-align: center;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

footer {
    background: var(--dark-color);
    color: var(--white-color);
    text-align: right;
    padding: 2rem 0;
    box-shadow: 0 -6px 16px -4px rgba(255,255,255,0.7);
    border-top: 2px solid rgba(255,255,255,0.5);
}

.contact-info {
    text-align: left;
    margin-top: 1rem;
    font-size: 1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* 9. Responsive Design */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .hero-subtitle {
        font-size: 1.2rem;
    }

    header .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-card.featured {
        grid-template-columns: 1fr;
    }
}
