* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
h1 {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 10;
}

.nav {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav .menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-2px);
}

/* Main Hero Section */
.main {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%), url('2.jepg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.profile-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.profile-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
                0 0 0 6px rgba(102, 126, 234, 0.5),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
    object-fit: cover;
    position: relative;
    animation: floatImage 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.code-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    overflow: hidden;
}

.code-line {
    text-align: center;
    line-height: 1.4;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.code-line.indent {
    margin-left: 15px;
}

.profile-container:hover img {
    filter: blur(2px);
    opacity: 0.3;
}

.profile-container:hover .code-overlay {
    opacity: 1;
}

.code-bracket {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    margin: 0 20px;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

.code-bracket:first-of-type {
    animation-delay: 0s;
}

.code-bracket:last-of-type {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* About Section */
.about {
    padding: 80px 20px;
    background: #f8f9fa;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #667eea;
}

.about > .container > p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 60px;
    color: #666;
    line-height: 1.8;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.skill-card h3 {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.skill-card p {
    color: #666;
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: #fff;
}

.services h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #667eea;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Typography */
h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

/* Buttons */
button, .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button:hover, .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.contact > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #667eea;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.contact-info {
    text-align: center;
    font-size: 1.1rem;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin: 15px 0;
    color: #666;
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    border-radius: 10px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.95rem;
}

.footer p {
    margin: 0;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .nav ul {
        gap: 20px;
    }

    .nav a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .profile-container,
    .main img {
        width: 150px;
        height: 150px;
    }

    .code-line {
        font-size: 0.65rem;
    }

    .code-bracket {
        font-size: 2rem;
        margin: 0 15px;
    }

    .about, .services, .contact {
        padding: 60px 20px;
    }

    .skills, .service-grid {
        gap: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        top: 20px;
    }

    .nav ul {
        gap: 10px;
        flex-direction: column;
    }

    .profile-container,
    .main img {
        width: 120px;
        height: 120px;
    }

    .code-line {
        font-size: 0.6rem;
    }

    .code-bracket {
        font-size: 1.5rem;
        margin: 0 10px;
    }

    .about, .services, .contact {
        padding: 40px 15px;
    }

    .contact-form {
        gap: 15px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .map-container {
        height: 250px;
    }

    button, .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}