:root {
    --bg-color: #121212;
    --box-bg: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
}

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

body {
    min-height: 100vh;
    background: url('images/background-1.jpg') center/cover;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    position: relative;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1;
}

nav {
    background: var(--box-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

main {
    padding-top: 80px; /* Add spacing below fixed navbar */
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

nav a:hover {
    color: #4ecdc4;
}

.content-box {
    background: var(--box-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    margin: 1rem;
    text-align: center;
}

section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.animated-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1, h2 {
    margin-bottom: 1rem;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: calc(100vh - 80px);
    padding: 2rem;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.bio-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1rem;
    max-width: 600px;
    color: white;
}

.bio-box h1 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.bio-box p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid white;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: white;
    color: black;
}

.profile-image {
    position: relative;
    width: 400px;
    height: 500px;
    overflow: hidden;
    border-radius: 1rem;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9); /* Makes the image darker */
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Additional darkness overlay */
    pointer-events: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Menu toggle active state */
.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        padding: 1rem;
        height: auto;
        min-height: calc(100vh - 80px);
        margin-top: 1rem;
    }

    .profile-image {
        width: 300px;
        height: 400px;
    }

    .profile-image img {
        object-fit: cover;
        object-position: center;
    }

    .bio-box {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    nav ul li {
        margin: 1.5rem 0;
    }
}

.about-section {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    background: rgba(32, 32, 32, 0.95);
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.about-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    color: #ffffff;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.gear-left, .gear-right {
    position: absolute;
    /* width: 240px; */
    height: 240px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    top: 50%;
}

.gear-left {
    left: 0;
    transform: translateX(-50%);
}

.gear-right {
    right: 0;
    transform: translateX(50%);
}

.gear-left::before, .gear-right::before {
    content: '⚙️';
    position: absolute;
    font-size: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .gear-left, .gear-right {
        width: 160px;
        height: 160px;
    }
    
    .gear-left {
        left: -80px;
    }
    
    .gear-right {
        right: -80px;
    }
    
    .gear-left::before, .gear-right::before {
        font-size: 80px;
    }
}

@keyframes rotate {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

.skills-section {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    background: #121212;
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-section .section-title {
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.skills-grid {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
}

.skill-card {
    flex: 0 1 calc(50% - 2rem);  /* Take up roughly half the container width minus gap */
    background: rgba(48, 48, 48, 0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    margin-bottom: 1.5rem;
    color: #4ecdc4;  /* Brighter icon color */
    font-size: 2rem;
}

.skill-card h3 {
    color: #ffffff;  /* White text */
    margin-bottom: 1rem;
}

.skill-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.skill-card ul li {
    margin: 0.5rem 0;
    color: #cccccc;  /* Light gray text */
    padding-left: 1.5rem;
    position: relative;
}

.skill-card ul li:before {
    content: "•";
    color: #4ecdc4;  /* Matching icon color */
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .skill-card {
        flex: 0 1 100%;  /* Take full width on mobile */
    }
}

.contact-section {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(24, 24, 24, 0.97) 0%,
        rgba(32, 32, 32, 0.95) 50%,
        rgba(48, 48, 48, 0.93) 100%
    );
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(78, 205, 196, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.contact-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.contact-text {
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(15, 15, 15, 0.9);
    transition: all 0.3s ease;
    min-width: 150px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 1;
}

.contact-link i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-link span {
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* Platform-specific styles */
.contact-link[href*="mailto"] i { color: #EA4335; }
.contact-link[href*="telegram"]  i { color: #0088cc; }
.contact-link[href*="github"] i { color: #6e5494; }
.contact-link[href*="linkedin"] i { color: #0077b5; }

#telegram_link i{
    color: #0088cc;
}
#telegram_link i:hover,#telegram_link:hover{
    color: white;
    background-color: #0077b5;
}


.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.contact-link[href*="mailto"]::before { background: linear-gradient(135deg, #EA4335, #DB4437); }
.contact-link[href*="telegram"]::before { background: linear-gradient(135deg, #0088cc, #29B6F6); }
.contact-link[href*="github"]::before { background: linear-gradient(135deg, #6e5494, #7a5fa7); }
.contact-link[href*="linkedin"]::before { background: linear-gradient(135deg, #0077b5, #00A0DC); }

/* Hover effects */
.contact-link:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-link:hover::before {
    opacity: 1;
}

.contact-link:hover i,
.contact-link:hover span {
    color: white;
}

.site-footer {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left h3 {
    margin-bottom: 0.5rem;
    color: #4ecdc4;
}

.footer-left p {
    color: #888888;
}

.footer-right p {
    color: #666666;
}

@media (max-width: 768px) {
    .contact-link {
        min-width: 120px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left, .footer-right {
        width: 100%;
        margin-bottom: 1rem;
    }
}
