@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', sans-serif; text-decoration: none;
    list-style: none; scroll-behavior: smooth;
}

:root {
    --bg-color: #020617; 
    --main-color: #00d2ff; 
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    color: #fff;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: auto; padding: 0 7%; }

header {
    position: fixed; top: 0; width: 100%;
    background: rgba(2, 6, 23, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border); z-index: 1000; padding: 15px 0;
}

nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 20px; font-weight: 700; }
.logo span { color: var(--main-color); }
.nav-links { display: flex; gap: 15px; }
.nav-links a { color: #fff; font-size: 13px; font-weight: 500; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 50px; }
.hero-flex { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; gap: 40px; width: 100%; }

.hero-text h1 { font-size: 40px; font-weight: 700; margin: 10px 0; line-height: 1.2; }
.hero-text p span { color: var(--main-color); font-weight: 600; border-bottom: 2px solid var(--main-color); }

.hero-img { position: relative; width: 250px; height: 250px; display: flex; justify-content: center; align-items: center; }
.hero-img img { width: 210px; height: 210px; border-radius: 50%; object-fit: cover; border: 3px solid var(--main-color); z-index: 10; box-shadow: 0 0 20px var(--main-color); }
.tech-ring { position: absolute; width: 240px; height: 240px; border: 2px dashed var(--main-color); border-radius: 50%; animation: rotate 10s linear infinite; }

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-text { animation: fadeInUp 0.8s ease forwards; }
.animate-name { opacity: 0; animation: fadeInUp 0.8s ease forwards; animation-delay: 0.3s; }
.animate-p { opacity: 0; animation: fadeInUp 0.8s ease forwards; animation-delay: 0.5s; }
.animate-icons { opacity: 0; animation: fadeInUp 0.8s ease forwards; animation-delay: 0.7s; }
.animate-btn { opacity: 0; animation: fadeInUp 0.8s ease forwards; animation-delay: 0.9s; }
.animate-img { animation: fadeInUp 1s ease forwards; }

.btn { display: inline-block; padding: 12px 28px; background: var(--main-color); color: #000; font-weight: 600; border-radius: 5px; margin-top: 15px; border: none; cursor: pointer; }
.social-icons a { font-size: 20px; color: var(--main-color); margin: 20px 8px; padding: 10px; border: 1px solid var(--glass-border); border-radius: 50%; background: var(--glass-bg); display: inline-flex; transition: 0.3s; }
.social-icons a:hover { background: var(--main-color); color: #000; box-shadow: 0 0 15px var(--main-color); }

/* SECTIONS */
.section-title { text-align: center; font-size: 30px; margin: 60px 0 30px; }
.section-title span { color: var(--main-color); }
.glass-card { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); padding: 30px; border-radius: 15px; margin-bottom: 20px; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-box { text-align: center; }
.skill-box i { font-size: 35px; color: var(--main-color); margin-bottom: 10px; }

/* CONTACT FORM */
form { display: flex; flex-direction: column; gap: 15px; }
form input, form textarea { width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 8px; color: #fff; }

footer { text-align: center; padding: 40px 0; color: #555; border-top: 1px solid var(--glass-border); }

/* TABLET/DESKTOP */
@media (min-width: 768px) {
    .hero-flex { flex-direction: row; text-align: left; justify-content: space-between; }
    .hero-text h1 { font-size: 55px; }
    .hero-img { width: 350px; height: 350px; }
    .hero-img img { width: 300px; height: 300px; }
    .tech-ring { width: 340px; height: 340px; }
    .skills-grid { grid-template-columns: repeat(4, 1fr); }
    .nav-links { gap: 30px; }
}
