@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #050814;
    --bg2: #0a0f20;
    --card: #0b1020;
    --border: #1d2740;

    --white: #ffffff;
    --text: #aeb7cc;

    --purple: #8b3dff;
    --blue: #00b7ff;
    --green: #00ff88;
    --gold: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050814;
}
::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 20px;
}

/* NAVBAR LOGO */
.navbar {
    width: 100%;
    height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(5, 8, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
}

.nav-logo-img, .footer-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.logo span {
    color: var(--purple);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--purple);
}

.live-nav-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0055;
    padding: 6px 12px;
    border-radius: 20px;
    color: #ff4d4d !important;
}

.electrotech-nav-btn {
    background: rgba(0, 183, 255, 0.15);
    border: 1px solid var(--blue);
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--blue) !important;
}

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

/* HERO */
.hero {
    min-height: 100vh;
    padding: 140px 10% 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background: radial-gradient(circle at 70% 40%, rgba(126, 49, 255, 0.18), transparent 30%);
}

.hero-text {
    width: 50%;
    z-index: 2;
}

.hello {
    color: var(--text);
    font-size: 18px;
}

.hero h1 {
    font-size: 75px;
    line-height: 1.1;
    margin: 10px 0;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    color: transparent;
}

.hero h2 {
    font-size: 26px;
    line-height: 1.6;
}

.hero h2 span {
    color: var(--blue);
}

.typing-text {
    margin: 20px 0 30px;
    font-family: monospace;
    color: #cbd5e1;
}

.typing-text span {
    color: var(--purple);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 22px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid var(--purple);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-btn {
    background: linear-gradient(90deg, #6334e6, #9b4dff);
    color: white;
    box-shadow: 0 0 20px rgba(139, 61, 255, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(139, 61, 255, 0.8);
}

.outline-btn {
    color: white;
    background: transparent;
}

.outline-btn:hover {
    background: var(--purple);
    box-shadow: 0 0 25px rgba(139, 61, 255, 0.6);
}

/* HERO IMAGE BRANDING */
.hero-image {
    width: 420px;
    height: 420px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 0 30px var(--gold), 0 0 80px rgba(255, 215, 0, 0.3);
}

.hero-image img {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
    object-fit: cover;
}

/* SECTION */
.section {
    padding: 100px 10%;
}

.section-small-title {
    color: var(--purple);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
}

/* ABOUT */
.about {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 70px;
    align-items: center;
}

.image-box {
    position: relative;
    background: #080d1c;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(139, 61, 255, 0.2);
}

.image-box img {
    width: 100%;
    display: block;
    border-radius: 5px;
}

.vertical-text {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: rotate(-90deg);
    color: var(--blue);
    font-size: 11px;
    letter-spacing: 3px;
}

.about-content h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 25px;
}

.about-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.about-info div {
    font-size: 12px;
    color: var(--text);
}

.about-info i {
    color: var(--purple);
    margin-right: 6px;
}

/* SKILLS */
.skills-section {
    background: linear-gradient(180deg, transparent, #080d18);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--purple);
    box-shadow: 0 0 25px rgba(139, 61, 255, 0.3);
}

.skill-card > i {
    font-size: 45px;
    margin-bottom: 10px;
}

.html-icon { color: #ff6b35; }
.css-icon { color: #2196f3; }
.js-icon { color: #ffd600; }
.bootstrap-icon { color: #8b3dff; }
.react-icon { color: #00c8ff; }

.skill-card h3 {
    font-size: 13px;
    margin-bottom: 20px;
}

.progress-circle {
    width: 100px;
    height: 100px;
    margin: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--purple) 0deg, var(--blue) 200deg, #182033 200deg);
    position: relative;
}

.progress-circle::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--card);
    border-radius: 50%;
}

.progress-circle span {
    position: relative;
    z-index: 2;
    font-size: 13px;
    font-weight: bold;
}

.center-btn {
    text-align: center;
    margin-top: 40px;
}

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--purple);
    box-shadow: 0 0 25px rgba(139, 61, 255, 0.3);
}

.project-card img {
    width: 100%;
    display: block;
}

.project-content {
    padding: 20px;
}

.project-content h3 { font-size: 15px; }
.project-content p { font-size: 11px; color: var(--text); margin-top: 8px; }

.project-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.project-icons a { color: white; transition: 0.3s; }
.project-icons a:hover { color: var(--purple); }

/* ELECTROTECH BANNER */
.electrotech-banner-section {
    padding: 40px 10%;
}
.electrotech-card {
    background: linear-gradient(135deg, #09152b, #050814);
    border: 1px solid var(--blue);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 183, 255, 0.2);
}

/* TIMELINE */
.timeline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
}

.timeline-item {
    width: 20%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-icon {
    width: 70px;
    height: 70px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #11182b;
    border: 2px solid var(--purple);
    box-shadow: 0 0 20px rgba(139, 61, 255, 0.5);
    font-size: 25px;
}

.timeline-item h3 { margin-top: 20px; font-size: 14px; }
.timeline-item h4 { margin-top: 8px; font-size: 12px; }
.timeline-item p { color: var(--text); font-size: 10px; margin-top: 8px; }

/* TERMINAL */
.terminal {
    background: #030711;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    height: 45px;
    background: #0d1424;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 20px;
}

.terminal-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--purple);
}

.terminal-body {
    padding: 30px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.8;
}

.green { color: var(--green); }
.loading {
    display: inline-block;
    width: 150px;
    height: 8px;
    background: linear-gradient(90deg, var(--green) 100%, #222 0%);
}

/* STATS */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
}

.stat-box:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
}

.stat-box i { color: var(--purple); font-size: 22px; }
.stat-box h3 { font-size: 28px; margin: 10px 0; }
.stat-box p { color: var(--text); font-size: 11px; }

/* CONTACT */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    background: radial-gradient(circle at 30% 50%, rgba(139, 61, 255, 0.1), transparent 30%);
}

.contact-left h2 { font-size: 34px; margin-bottom: 30px; }
.contact-info p { color: var(--text); margin: 15px 0; font-size: 14px; }
.contact-info i { color: var(--purple); width: 25px; }

.contact-form { display: flex; flex-direction: column; gap: 15px; }

.contact-form input, .contact-form textarea {
    width: 100%;
    background: #080d1c;
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 5px;
    color: white;
    outline: none;
    font-family: inherit;
}

.contact-form textarea { height: 150px; resize: none; }
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 15px rgba(139, 61, 255, 0.2);
}

/* FOOTER & SOCIAL ICONS */
footer {
    padding: 30px 10%;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer p { color: var(--text); font-size: 11px; }

.social-icons { display: flex; gap: 15px; }
.social-icons a {
    color: var(--text);
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #090f24;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* CARDS & FUTURISTIC LAYOUTS FOR SUB-PAGES */
.page-header {
    padding: 150px 10% 40px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(139, 61, 255, 0.2), transparent 40%);
}

.friends-grid, .courses-grid, .services-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.friend-card, .course-card, .service-card, .blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: 0.3s;
}

.friend-card:hover, .course-card:hover, .service-card:hover, .blog-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.friend-img-box {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid var(--purple);
    overflow: hidden;
}

.friend-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--green);
    border: 1px solid var(--green);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    display: inline-block;
    margin-bottom: 15px;
}

.affiliate-box {
    margin-top: 60px;
    background: linear-gradient(135deg, #120c24, #080d1c);
    border: 2px dashed var(--gold);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.live-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 15px;
    height: 600px;
    overflow: hidden;
    position: relative;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .hero { padding: 130px 7% 70px; }
    .section { padding: 80px 7%; }
    .hero h1 { font-size: 60px; }
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
    .friends-grid, .courses-grid, .services-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { padding: 0 6%; }
    .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #080d1c;
        padding: 30px;
        display: none;
    }
    .nav-links.active { display: flex; }
    .menu-btn { display: block; }
    .hero { flex-direction: column; text-align: center; padding-top: 130px; }
    .hero-text { width: 100%; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .hero-image { width: 100%; margin-top: 50px; }
    .hero h1 { font-size: 52px; }
    .about { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline { flex-direction: column; }
    .timeline::before { display: none; }
    .timeline-item { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .contact-section { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 20px; text-align: center; }
    .friends-grid, .courses-grid, .services-grid, .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 450px) {
    .hero h1 { font-size: 42px; }
    .hero h2 { font-size: 20px; }
    .hero-image { height: 350px; }
    .circle { width: 280px; height: 280px; }
    .hero-image img { width: 220px; height: 220px; }
    .skills-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
}