@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #1F252E;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navbar Styles */
header {
    padding: 1.5rem 5%;
    background-color: rgba(31, 37, 46, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 232, 248, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
}

.logo a {
    color: #00E8F8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    color: #fff;
    text-shadow: 0 0 10px #00E8F8;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a.active,
nav a:hover {
    color: #00E8F8;
    background-color: rgba(0, 232, 248, 0.1);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #00E8F8;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #00E8F8;
    cursor: pointer;
}

/* Section Styles */
.section {
    padding: 100px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #00E8F8;
    border-radius: 2px;
}

/* Home Section */
.main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    margin-top: 2rem;
}

.detail {
    flex: 1;
    min-width: 300px;
}

.detail h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.detail h1 span:first-child {
    font-size: 1.5rem;
    color: #ccc;
    display: block;
    margin-bottom: 0.5rem;
}

.highlight {
    color: #00E8F8 !important;
}

.detail h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #00E8F8;
    margin-bottom: 1.5rem;
}

.detail p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #ccc;
}

.social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(0, 232, 248, 0.1);
    color: #00E8F8;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social a:hover {
    background-color: #00E8F8;
    color: #1F252E;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 232, 248, 0.3);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #00E8F8;
    color: #1F252E;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #00E8F8;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: #00E8F8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 232, 248, 0.2);
}

.images {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Network Icon Display */
.network-icon-display {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.network-icon-main {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #00E8F8 0%, #1F252E 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid #00E8F8;
    box-shadow: 0 0 50px rgba(0, 232, 248, 0.3);
    animation: pulse-glow 2s infinite alternate;
    z-index: 2;
}

.network-icon-main i {
    font-size: 6rem;
    color: #1F252E;
}

.network-icons-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.network-icon-item {
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: rgba(0, 232, 248, 0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #00E8F8;
    border: 2px solid rgba(0, 232, 248, 0.3);
    transition: all 0.3s ease;
    animation: float 4s infinite ease-in-out;
}

.network-icon-item:hover {
    background-color: rgba(0, 232, 248, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 232, 248, 0.5);
}

.network-icon-item i {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.network-icon-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

.network-icon-item:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.network-icon-item:nth-child(2) {
    top: 10%;
    right: 10%;
    animation-delay: 0.5s;
}

.network-icon-item:nth-child(3) {
    bottom: 10%;
    left: 10%;
    animation-delay: 1s;
}

.network-icon-item:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1.5s;
}

.network-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.signal-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #00E8F8;
    border-radius: 50%;
    animation: signal 2s infinite ease-in-out;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.dot:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 30px rgba(0, 232, 248, 0.3);
    }
    100% {
        box-shadow: 0 0 60px rgba(0, 232, 248, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes signal {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #00E8F8;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item span {
    display: block;
    font-weight: 600;
    color: #00E8F8;
    margin-bottom: 0.5rem;
}

.info-item p {
    margin: 0;
    color: #fff;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.network-diagram {
    position: relative;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #1F252E 0%, #2A3241 100%);
    border-radius: 20px;
    border: 2px solid rgba(0, 232, 248, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.network-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #00E8F8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1F252E;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 232, 248, 0.5);
    animation: pulse 2s infinite;
}

.network-node.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.network-node.node1 {
    top: 20%;
    left: 20%;
}

.network-node.node2 {
    top: 20%;
    left: 80%;
}

.network-node.node3 {
    top: 80%;
    left: 20%;
}

.network-node.node4 {
    top: 80%;
    left: 80%;
}

.network-line {
    position: absolute;
    background-color: rgba(0, 232, 248, 0.5);
    height: 2px;
    transform-origin: left center;
}

.network-line.line1 {
    width: 120px;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.network-line.line2 {
    width: 120px;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.network-line.line3 {
    width: 120px;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) rotate(135deg);
}

.network-line.line4 {
    width: 120px;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) rotate(-135deg);
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px rgba(0, 232, 248, 0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 30px rgba(0, 232, 248, 0.8);
    }
}

/* Skills Section - Fixed Circular Progress Bars */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.skill-category {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 232, 248, 0.1);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #00E8F8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    font-size: 1.8rem;
}

.skills-circular {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.circular-item {
    text-align: center;
}

.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-linecap: round;
    stroke-dasharray: 326.56;
    stroke-dashoffset: 326.56;
    transition: stroke-dashoffset 1.5s ease;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 600;
    color: #00E8F8;
}

.circular-item h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-top: 10px;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #00E8F8;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #ccc;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(0, 232, 248, 0.1);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #00E8F8;
}

.contact-item h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00E8F8;
    background-color: rgba(0, 232, 248, 0.05);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: rgba(31, 37, 46, 0.95);
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(0, 232, 248, 0.1);
}

footer p {
    color: #ccc;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social a {
    color: #ccc;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #00E8F8;
    transform: translateY(-3px);
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: rgba(31, 37, 46, 0.98);
        width: 100%;
        padding: 2rem;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 232, 248, 0.1);
    }

    nav.active {
        left: 0;
    }

    .detail h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .skills-circular {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .circular-progress {
        width: 100px;
        height: 100px;
    }
    
    .progress-ring {
        width: 100px;
        height: 100px;
    }
    
    .progress-ring-circle {
        r: 42;
        cx: 50;
        cy: 50;
        stroke-dasharray: 263.76;
    }
    
    .progress-value {
        font-size: 1.2rem;
    }
    
    .network-icon-display {
        width: 300px;
        height: 300px;
    }
    
    .network-icon-main {
        width: 180px;
        height: 180px;
    }
    
    .network-icon-main i {
        font-size: 5rem;
    }
}

@media only screen and (max-width: 480px) {
    .detail h1 {
        font-size: 2rem;
    }

    .skills-circular {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .circular-progress {
        width: 120px;
        height: 120px;
        margin: 0 auto 10px;
    }
    
    .progress-ring {
        width: 120px;
        height: 120px;
    }
    
    .progress-ring-circle {
        r: 52;
        cx: 60;
        cy: 60;
        stroke-dasharray: 326.56;
    }
    
    .progress-value {
        font-size: 1.5rem;
    }
    
    .skill-category {
        padding: 20px 15px;
    }
    
    .network-icon-display {
        width: 250px;
        height: 250px;
    }
    
    .network-icon-main {
        width: 150px;
        height: 150px;
    }
    
    .network-icon-main i {
        font-size: 4rem;
    }
    
    .network-icon-item {
        width: 60px;
        height: 60px;
    }
    
    .network-icon-item i {
        font-size: 1.5rem;
    }
    
    .network-icon-item span {
        font-size: 0.7rem;
    }
}