﻿ /* Google Font (add link in HTML head) */
/* font-family: 'Poppins', sans-serif; */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #020617;
    color: white;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    font-size: 18px;
}

/* ================= NAVBAR ================= */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 60px;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #38bdf8;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

/* ================= HERO ================= */
.hero {
    height: 100vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 60px;
    background: radial-gradient(circle at top, #0f172a, #020617);
}

.hero-content {
    max-width: 550px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero h1 span {
    background: linear-gradient(90deg, #38bdf8, #facc15);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #cbd5f5;
}

/* Buttons */
.buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    font-size: 1rem;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(56,189,248,0.4);
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(250,204,21,0.7);
}

.resume-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Profile Image */
.hero-image img {
    width: 280px;
    border-radius: 50%;
    box-shadow: 0 0 40px #38bdf8, 0 0 80px #6366f1;
    animation: float 4s ease-in-out infinite;
    transition: 0.3s;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* Floating animation */
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ================= SECTIONS ================= */
section {
    padding: 100px 60px;
    text-align: center;
}

h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
}

p {
    font-size: 1.1rem;
}

/* ================= ABOUT ================= */
.about p {
    max-width: 750px;
    margin: auto;
    margin-top: 20px;
    color: #cbd5f5;
    line-height: 1.7;
}

/* ================= SKILLS ================= */
/* Skills Container (inside each group) */
/* Skills Container (inside each group) */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* better alignment in groups */
    gap: 12px;
}

/* Individual Skill */
.skill {
    padding: 12px 22px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 30px;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Glow effect layer */
.skill::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(56,189,248,0.4), transparent);
    opacity: 0;
    transition: 0.4s;
}

/* Hover Effects */
.skill:hover {
    transform: translateY(-3px) scale(1.05);
    color: #020617;
    background: #38bdf8;
    box-shadow: 0 0 15px rgba(56,189,248,0.5);
}

.skill:hover::before {
    opacity: 1;
}
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-group {
    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.skill-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(56,189,248,0.2);
}

.skill-group h3 {
    margin-bottom: 15px;
    color: #38bdf8;
    font-size: 1.2rem;
    text-align: left;
}
/* Hover Effects */

/* ================= PROJECTS ================= */
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.project-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 25px;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 25px rgba(56,189,248,0.3);
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-card p {
    color: #cbd5f5;
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    color: #38bdf8;
    text-decoration: none;
}

/* ================= CONTACT ================= */
.contact-box {
    margin-top: 25px;
    line-height: 2;
    font-size: 1.1rem;
}

.contact a {
    color: #38bdf8;
    text-decoration: none;
}

/* ================= FOOTER ================= */
footer {
    background: #020617;
    text-align: center;
    padding: 25px;
    border-top: 1px solid #1e293b;
    margin-top: 50px;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ================= SCROLL ANIMATION ================= */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================= EDUCATION ================= */
.education-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.edu-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 25px;
    border-radius: 15px;
    width: 280px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.edu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(56,189,248,0.3);
}

.edu-card h3 {
    margin-bottom: 10px;
}

.edu-card p {
    color: #cbd5f5;
}

.edu-card span {
    font-size: 0.9rem;
    color: #94a3b8;
}
/* ================= CERTIFICATES ================= */
.cert-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.cert-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 15px;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.cert-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.cert-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(56,189,248,0.3);
}

.cert-card h3 {
    font-size: 1rem;
}

/* Active navbar */
nav a.active {
    color: #38bdf8;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #38bdf8;
    color: black;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(56,189,248,0.5);
    transition: 0.3s;
}

.scroll-top:hover {
    transform: scale(1.1);
}

/* Ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.5s linear;
}

@keyframes rippleEffect {
    to {
        transform: scale(20);
        opacity: 0;
    }
}