*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
    scroll-behavior:smooth;
}

body{
    background:#fafaf3;
    color:#333;
    line-height:1.6;
}


header{
    text-align:center;
    padding:60px 20px;
    background:linear-gradient(135deg, #4B0082, #007FFF, #ff1da8);
    color:white;
}

header h1{
    font-size:40px;
    margin-bottom:10px;
}

#typing-text{
    font-size:22px;
    margin-bottom:20px;
    color:#ffd369;
}


nav{
    margin-bottom:15px;
}

nav a{
    text-decoration:none;
    color:white;
    margin:0 15px;
    font-size:18px;
    position:relative;
    transition: color 0.3s ease;
}

nav a:hover{
    color:#ffd369;
}

button{
    padding:10px 20px;
    border:none;
    background:#ffd369;
    color:#333;
    font-weight:bold;
    cursor:pointer;
    border-radius:5px;
    transition:0.3s;
}

button:hover{
    transform:scale(1.05);
    background:white;
    color:#1e3c72;
}

section{
    padding:60px 10%;
}

section h2{
    margin-bottom:20px;
    font-size:28px;
    border-left:5px solid #2a5298;
    padding-left:10px;
}

#home p{
    font-size:17px;
    text-align:justify;
}


#project-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    margin-top:30px;
}

.card{
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
    transition:0.3s;
    text-align:center;
}

.card:hover{
    transform:translateY(-10px);
    box-shadow:0 12px 25px rgba(0,0,0,0.2);
}

.card img{
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:8px;
    margin-bottom:15px;
}

.card h3{
    margin-bottom:10px;
}

form{
    max-width:500px;
    margin:auto;
    display:flex;
    flex-direction:column;
}

input,textarea{
    padding:12px;
    margin-top:10px;
    border-radius:5px;
    border:1px solid #ccc;
    transition: all 0.3s ease;
}

input:focus, textarea:focus{
    outline:none;
    border:2px solid #2a5298;
    box-shadow:0 0 5px rgba(42,82,152,0.5);
}

textarea{
    resize:none;
    height:120px;
}

.error{
    color:red;
    font-size:13px;
}

#charCount{
    font-size:14px;
    color:#555;
    margin-top:5px;
    text-align:right;
}

footer{
    text-align:center;
    padding:20px;
    background:linear-gradient(135deg, #4B0082, #007FFF, #ff1da8);
    color:white;
}

#topBtn{
    position:fixed;
    bottom:30px;
    right:30px;
    padding:10px 15px;
    font-size:18px;
    display:none;
    border-radius:50%;
}

.dark{
    background:#121212;
    color:white;
}

.dark section{
    background:#363636;
}

.dark .card{
    background:#1e1e1e;
    color:white;
}

.dark #charCount{
    color:#ddd;
}

@media(max-width:768px){
    header h1{
        font-size:30px;
    }

    #typing-text{
        font-size:18px;
    }

    nav a{
        display:block;
        margin:10px 0;
    }

    section{
        padding:40px 20px;
    }
}





/* Skills Section */

.skills-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
margin-top:30px;
}

.skill-card{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 8px 20px rgba(0,0,0,0.1);
transition:0.3s;
}

.skill-card:hover{
transform:translateY(-8px);
box-shadow:0 12px 25px rgba(0,0,0,0.2);
}

.skill-card h3{
margin-bottom:10px;
}

.skill-bar{
width:100%;
height:10px;
background:#ddd;
border-radius:10px;
overflow:hidden;
}

.skill-progress{
height:100%;
width:0;
background:linear-gradient(90deg,#007FFF,#ff1da8);
transition:width 2s ease;
}

.skill-card span{
font-size:14px;
margin-top:5px;
display:block;
text-align:right;
}

.dark .skill-card{
background:#1e1e1e;
color:white;
}































/* ===== ADVANCED HEADER BUTTONS ===== */
.header-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:15px;
}

.header-buttons button,
.header-buttons .social-btn{
    padding:8px 18px;
    border:none;
    border-radius:8px;
    font-weight:bold;
    font-size:14px;
    display:flex;
    align-items:center;
    gap:6px;
    cursor:pointer;
    text-decoration:none;
    color:white;
    position:relative;
    overflow:hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Glow and hover effects */
.header-buttons button:hover,
.header-buttons .social-btn:hover{
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.6), 0 4px 20px rgba(0,0,0,0.3);
}

/* Sliding tooltip effect */
.header-buttons .social-btn::after{
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    transition: 0.3s ease;
    pointer-events: none;
    opacity:0;
}

.header-buttons .social-btn:hover::after{
    transform: translateX(-50%) scale(1);
    opacity:1;
}

/* Theme Toggle */
.header-buttons button{
    background:#ffd369;
    color:#333;
}
.header-buttons button:hover{
    background:white;
    color:#1e3c72;
}

/* Social button colors */
.social-btn.instagram{ background:#E1306C; }
.social-btn.facebook{ background:#1877F2; }
.social-btn.linkedin{ background:#0A66C2; }
.social-btn.whatsapp{ background:#25D366; }

/* Pulse animation for WhatsApp */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px #25D366; }
    50% { transform: scale(1.05); box-shadow: 0 0 20px #25D366; }
    100% { transform: scale(1); box-shadow: 0 0 10px #25D366; }
}
.social-btn.whatsapp{
    animation: pulse 2s infinite;
}

/* Icons inside buttons */
.social-btn i{
    font-size:16px;
}

/* Dark Mode Support */
.dark .header-buttons button{
    background:#ffd369;
    color:#333;
}

.dark .social-btn.instagram{ background:#E1306C; }
.dark .social-btn.facebook{ background:#1877F2; }
.dark .social-btn.linkedin{ background:#0A66C2; }
.dark .social-btn.whatsapp{ background:#25D366; }

/* Responsive adjustments */
@media(max-width:768px){
    .header-buttons{
        flex-direction:column;
        gap:10px;
    }
}





/* GitHub button color */
.social-btn.github {
    background: #333;  /* GitHub black */
    color: #fff;
}

/* Dark mode GitHub button (same color works) */
.dark .social-btn.github {
    background: #333;
}

/* Optional hover glow effect for GitHub */
.social-btn.github:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.6), 0 4px 20px rgba(0,0,0,0.3);
}















/* ===== Certificates Section ===== */
#certificates {
    padding: 60px 10%;
    background: #f9f9f9;
    position: relative;
}

#certificates h2 {
    font-size: 28px;
    border-left: 5px solid #2a5298;
    padding-left: 10px;
    margin-bottom: 30px;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.certificate-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    text-align: center;
    position: relative;
    cursor: pointer;
}

/* Glowing border + hover effect */
.certificate-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    border: 2px solid #007FFF;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 15px 25px rgba(0,127,255,0.5); }
    to { box-shadow: 0 15px 30px rgba(255,29,168,0.7); }
}

.certificate-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.certificate-card:hover img {
    transform: scale(1.05);
}

.certificate-card h3 {
    margin: 10px 0;
    font-size: 16px;
    padding: 0 10px;
}

/* View Button */
.view-btn {
    background: #ffd369;
    color: #333;
    padding: 8px 18px;
    border-radius: 5px;
    border: none;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #fffffe;
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.95); 
    animation: fadeIn 0.5s ease forwards;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

#caption {
    margin: 20px auto;
    text-align: center;
    color: #fff;
    font-size: 18px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff1da8;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media(max-width:768px){
    .certificate-card img {
        height: 150px;
    }
    .modal-content {
        max-width: 95%;
    }
}













/* Dark Mode Fix for Certificates */

.dark #certificates{
    background:#363636;
}

.dark .certificate-card{
    background:#1e1e1e;
    color:white;
}

.dark .certificate-card h3{
    color:white;
}

.dark .view-btn{
    background:#007FFF;
    color:white;
}

.dark .view-btn:hover{
    background:#ff1da8;
}



/* ===== Project Card Glowing Border Effect ===== */

.card{
    position: relative;
    overflow: hidden;
}

/* Hover glow effect */
.card:hover{
    transform: translateY(-10px) scale(1.03);
    border:2px solid #007FFF;
    animation: projectGlow 1.5s infinite alternate;
}

/* Glow animation */
@keyframes projectGlow{
    from{
        box-shadow:0 10px 20px rgba(0,127,255,0.5);
    }
    to{
        box-shadow:0 10px 30px rgba(255,29,168,0.7);
    }
}










/* ===== Skills Card Glowing Border Effect ===== */

.skill-card{
    position: relative;
    overflow: hidden;
}

/* Hover Glow */
.skill-card:hover{
    transform: translateY(-10px) scale(1.03);
    border:2px solid #007FFF;
    animation: skillGlow 1.5s infinite alternate;
}

/* Glow animation */
@keyframes skillGlow{
    from{
        box-shadow:0 10px 20px rgba(0,127,255,0.5);
    }
    to{
        box-shadow:0 10px 30px rgba(255,29,168,0.7);
    }
}