/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%), url('https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExaHBhdmRhYTNzcWV1OGVhdWFxNXpmNWx4MzAwMDdvbGxsdWRtMzN2aiZlcD12MV9naWZzX3RyZW5kaW5nJmN0PWc/tHIRLHtNwxpjIFqPdV/giphy.webp');
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: block;
    overflow-y: auto;
    padding: 20px;
}

/* Container styles */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background-color: #1a1e29;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #00e5ff;
    padding: 30px;
    position: relative;
    margin-bottom: 30px;
}

/* Background glow effect */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #00e5ff, #00b0ff);
    z-index: -1;
    filter: blur(100px);
    opacity: 0.2;
    animation: glowPulse 5s infinite alternate;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.nav-links {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00e5ff;
}

.nav-links a.active {
    color: #00e5ff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00e5ff;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Main content */
.content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.info {
    flex: 1;
}

.greeting {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.name {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.2s forwards;
}

.title {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s forwards;
}

.title span {
    color: #00e5ff;
    font-weight: 600;
}

.description {
    color: #b3b3b3;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.6s forwards;
}

/* Profile image */
.profile {
    flex: 0.8;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s 0.8s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hex-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.hex-shape {
    position: relative;
    width: 100%;
    padding-bottom: 115%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: #00e5ff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
    animation: glowPulse 4s infinite alternate;
}

.hex-image {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-image: url('/api/placeholder/320/400');
    background-size: cover;
    background-position: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #00e5ff;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.5);
}

/* Social icons */
.social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s forwards;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2f3f, #1a1e29);
    color: #00e5ff;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.social a:hover {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(135deg, #00e5ff, #00b0ff);
    color: #1a1e29;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes glowPulse {
    0% {
        filter: brightness(0.8) blur(10px);
    }
    100% {
        filter: brightness(1.2) blur(20px);
    }
}

/* Skill bar styles */
.skill-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
    height: 20px;
}

.skill-bar-fill {
    background: linear-gradient(90deg, #00e5ff, #00b0ff);
    height: 100%;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    margin-bottom: 15px;
}

.card ul li .skill-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #fff;
}

/* Section styles */
section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    margin: 20px auto;
    background: linear-gradient(135deg, #112240, #0a192f);
    border-radius: 10px;
    border: 2px solid #00e5ff;
    max-width: 1200px;
    width: 100%;
}

section h1 {
    font-size: 36px;
    color: #00e5ff;
    margin-bottom: 20px;
}

section p {
    font-size: 18px;
    color: #b3b3b3;
    max-width: 800px;
    margin-bottom: 20px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

/* Card styles */
.card {
    background: linear-gradient(135deg, #1a1e29, #112240);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #00e5ff;
    width: 300px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.card:hover {
    transform: scale(1.05);
    border-color: #00b0ff;
}

.card h2 {
    color: #00e5ff;
    margin-bottom: 15px;
    text-align: center;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Home section specific styles */
#home {
    min-height: auto;
    padding: 50px 20px;
}

.home-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Contact section styles */
#contact ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: center;
}

#contact ul li {
    margin-bottom: 10px;
}

#contact a {
    color: #00e5ff;
    text-decoration: none;
    transition: color 0.3s;
}

#contact a:hover {
    color: #00b0ff;
    text-decoration: underline;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

#contact form div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#contact form label {
    font-size: 16px;
    color: #b3b3b3;
}

#contact form input,
#contact form textarea {
    padding: 10px 15px;
    border-radius: 5px;
    border: 2px solid #2a2f3f;
    background-color: #1a1e29;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}

#contact form input:focus,
#contact form textarea:focus {
    border-color: #00e5ff;
    outline: none;
}

#contact form button {
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    background: linear-gradient(135deg, #00e5ff, #00b0ff);
    color: #0a192f;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 10px;
}

#contact form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.4);
}
#contact-list{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive styles */
@media (max-width: 992px) {
    .content {
        flex-direction: column;
        text-align: center;
    }

    .info {
        order: 2;
    }

    .profile {
        order: 1;
        margin-bottom: 40px;
    }

    .hex-container {
        max-width: 250px;
    }

    .social {
        justify-content: center;
    }
    
    .skills-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .name {
        font-size: 36px;
    }
    
    section {
        padding: 30px 15px;
    }
    
    section h1 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .hex-container {
        max-width: 200px;
    }

    .name {
        font-size: 28px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .social a {
        width: 35px;
        height: 35px;
    }
    
    .card {
        padding: 15px;
    }
    
    #contact form input,
    #contact form textarea {
        padding: 8px 12px;
    }
}

/* Initialize skill bar animations */
.skill-bar-fill {
    animation: fillBar 1.5s  forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--fill-width);
    }
}