* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #D9D9D9;
    color: #000000;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

body.show {
    opacity: 1;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.main-header {
    background-color: #f2f2f2;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #00000020;
    box-shadow: 10px 30px 100px #00000025;
}

.main-header::before {
    display: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link, .name-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    
}

.logo-link:hover, .name-link:hover {
    opacity: 0.7;
}

.header-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo {
    font-size: 1.2rem;
    font-weight: 500;
    color: #000000;
}

.name {
    font-size: 1.4rem;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

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

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

.nav-links a:hover {
    color: #b54430;
    transform: translateY(-2px);
}

.lang-switch {
    display: flex;
    gap: 5px;
}

.lang-switch button {
    padding: 8px 16px;
    border: 2px solid #000000;
    background: transparent;
    color: #000000;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lang-switch button:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero {
    padding: 120px 0 40px 0;
    position: relative;
    border-bottom: 1px solid #000000;
    margin-top: 80px;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.hero-left {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 200px;
}

.profile-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 
        0 0 40px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(0, 0, 0, 0.2),
        inset 0 0 80px rgba(0, 0, 0, 0.05);
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.08) 70%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
    z-index: -1;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 60%, rgba(0, 0, 0, 0.03) 80%, rgba(0, 0, 0, 0.08) 100%);
    pointer-events: none;
    z-index: -1;
}

.profile-image:hover {
    transform: scale(0.95);
    box-shadow: 
        0 0 50px rgba(0, 0, 0, 0.25),
        0 0 80px rgba(0, 0, 0, 0.15),
        inset 0 0 30px rgba(0, 0, 0, 0.05);
}

.hero-text {
    flex: 1;
}

.hero-left h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #000000;
    max-width: 600px;
}

.hero-left p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #000000;
    line-height: 1.6;
    max-width: 500px;
}

.cta {
    display: inline-block;
    background: #000000;
    color: #f2f2f2;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta:hover {
    background: #b54430;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(181, 68, 48, 0.3);
}

.cta:active {
    transform: translateY(0);
}

section {
  padding: 80px 0;
  border-bottom: 1px solid #000000;
  position: relative;
}

section:last-of-type {
  border-bottom: none;
}

section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000000;
  position: relative;
  padding-bottom: 20px;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #b54430;
}

section ul {
  list-style: none;
  padding: 0;
}

.service-button {
  background-color: transparent;
  border: 2px solid #000000;
  color: #000000;
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  min-width: 10px;
}

.service-button:hover, .service-button.active {
  background-color: #b54430;
  color: #ffffff;
  border-color: #b54430;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background: #f2f2f2;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #00000020;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1.5s ease-out;
}

.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #000000;
}

.service-item p {
  font-size: 1rem;
  color: #333333;
  line-height: 1.6;
}

.service-item:hover {
  transform: translateY(-5px);
  border-color: #b54430;
  box-shadow: 0 6px 15px rgba(181,68,48,0.2);
}

.services-subheading h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  margin: 40px 0 20px 0;
  position: relative;
}

.services-subheading h3::after {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
}

.services-subheading h3:hover {
  color: #b54430;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.about-subheadings {
    margin-top: 10px;
}

.subheading-item {
    margin-bottom: 40px;
}

.subheading-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    position: relative;
}

.subheading-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #000000;
    margin: 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 2s ease-out;
}

.subheading-item.visible p {
  opacity: 1;
  transform: translateY(0);
}

.subheading-item p[data-lang="subheading-cta-text"] {
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
}

.subheading-item h3:hover {
  color: #b54430;
  transform: translateY(-2px);
}

#contact {
    padding: 60px 0;
}

#contact h2 {
    text-align: center;
    margin-bottom: 40px;
}

#contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #b54430;
}

form {
    background: #f2f2f2;
    padding: 40px;
    border: 1px solid#00000020;
    box-shadow: 0 5px 10px #0000001a;
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

form input,
form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #000000;
    background: #f2f2f2;
    color: #000000;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

form input::placeholder,
form textarea::placeholder {
    color: #666666;
    font-weight: 500;
}

form textarea {
    resize: vertical;
    height: 120px;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #b54430;
    background: #d9d9d9;
    box-shadow: 0 0 0 3px rgba(181, 68, 48, 0.1);
    transform: translateY(-1px);
}

form button {
    background: #000000;
    color: #d9d9d9;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

form button:hover {
    background: #b54430;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(181, 68, 48, 0.3);
}

form button:active {
    transform: translateY(0);
}

.sub_footer {
    text-align: center;
    padding: 20px;
    color: #666666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .header-left {
        gap: 10px;
    }
    
    .header-logo {
        width: 35px;
        height: 35px;
    }
    
    .name {
        font-size: 1.1rem;
    }
    
    .header-right {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .lang-switch button {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .hero {
        margin-top: 120px;
        padding: 60px 0 40px 0;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .hero-left h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .social-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .subheading-item h3::after {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }
    
    .subheading-item h3 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .subheading-item p {
        font-size: 1rem;
        text-align: center;
    }
}

.social-links {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #f2f2f2;
    border: 2px solid #00000020;
    box-shadow: 0 5px 10px #0000001a;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    background: #b54430;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(181, 68, 48, 0.3);
    border-color: #b54430;
}

.social-link:active {
    transform: translateY(-1px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.github-link:hover {
    background: #333333;
    border-color: #333333;
    box-shadow: 0 6px 20px rgba(51, 51, 51, 0.3);
}

.linkedin-link:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3);
}

.popup-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background-color: #f2f2f2;
    margin: 15% auto;
    padding: 30px;
    border: 2px solid #000000;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-close {
    color: #000000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #b54430;
}

#popup-message {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    line-height: 1.6;
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

