/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #1A1A1A;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #1A1A1A, #2A2A2A, #1A1A1A, #204269); /* Subtle blue hint */
    background-size: 400% 400%; /* Larger size for smooth animation */
    animation: gradientLoop 15s ease-in infinite; /* Slow, subtle loop */
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

@keyframes gradientLoop {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.hero {
    max-width: 800px;
    margin: 0 auto;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #4A90E2;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    color: #E0E0E0;
    margin-bottom: 20px;
}

.social-links a {
    color: #4A90E2;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* Main Sections */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2em;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 30px;
    position: relative;
}

h2::after {
    content: '';
    width: 50px;
    height: 2px;
    background: #4A90E2;
    position: absolute;
    bottom: -10px;
    left: 0;
}

p {
    font-size: 1.1em;
    color: #E0E0E0;
}

.highlight {
    color: #4A90E2;
}

/* Projects */
.project-card {
    background: #2A2A2A;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.1);
}

.project-card img {
    max-width: 80%;
    display: block;
    margin: 0 auto 15px; /* Centered */
    border-radius: 5px;
}

.project-card h3 {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.project-card a {
    color: #4A90E2;
    transition: color 0.3s ease;
}

.project-card a:hover {
    color: #FFFFFF;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cert-card {
    background: #2A2A2A;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

.cert-card img {
    max-width: 80px;
    margin-bottom: 10px;
}

.cert-card p {
    font-size: 0.9em;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #1A1A1A;
    color: #E0E0E0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header { padding: 40px 10px; }
    .profile-pic { width: 100px; height: 100px; }
    h1 { font-size: 2em; }
    .tagline { font-size: 1em; }
    main { padding: 10px; }
    section { padding: 40px 0; }
    h2 { font-size: 1.5em; }
    .project-card { padding: 15px; }
    .cert-grid { grid-template-columns: 1fr; }
}