:root {
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent; 
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(39, 38, 38, 0.95);
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 1.03rem;
    transition: color 0.4s;
    
    
}

.nav-links a:hover {
    color: var(--text-main);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}


.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.profile-img-container {
    width: 280px;
    height: 280px;
    background-color: #222;
    border-radius: 50%;
    margin-bottom: 18px;
    overflow: hidden;
    border: 2px solid #333;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius:50%;
    border:2px solid #00adb5;
    box-shadow:0 10px 30px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 3px;
}

.subtitle {
    color: var(--text-dim);
    font-family: monospace;
    font-size: 1.1rem;
}


.section {
    padding: 45px 7%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-dim);
    font-size: 1.1rem;
}


.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #222;
}
.skill-card:hover{
    transition: 0.5s;
    transform: translateY(-4px);
}

.skill-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.skill-card span {
    font-size: 0.8rem;
    color: var(--text-dim);
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden; 
    border: 1px solid #222;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-9px);
    border-color: #444;
}


.project-img-container {
    width: 100%;
    height: 220px; 
    overflow: hidden;
    background: #1a1a1a;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: top; 
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-container img {
    transform: scale(1.08); 
}

.project-info {
    padding: 20px;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--text-main);
}


.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-tech {
    display: flex;
    gap: 12px;
    font-size: 1.2rem;
}

.external-link {
    color: var(--text-dim);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.external-link:hover {
    color: var(--text-main);
}


.contact-container {
    max-width: 550px;
    margin: 0 auto;
    background: #111111;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #222; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); 
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}



input, textarea {
    background: #1a1a1a; 
    border: 1px solid #333;
    padding: 15px;
    border-radius: 10px;
    color: white;
    outline: none;
    width: 100%;
    resize: none;
    transition: all 0.3s ease; 
}


input:focus, textarea:focus {
    border-color: #ffffff; 
    background: #222; 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); 
    transform: translateY(-2px); 
}


input:hover, textarea:hover {
    border-color: #555;
}

.send-btn {
    background: #ffffff;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.send-btn:hover {
    transform: scale(1.03); 
    background: #f0f0f0;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1); 
}

.send-btn:active {
    transform: scale(0.98); 
}


.footer {
    padding: 40px;
    border-top: 1px solid #222;
    text-align: center;
    color: var(--text-dim);
}

.social-icons {
    margin-bottom: 15px;
}

.social-icons a {
    color: var(--text-dim);
    margin: 0 10px;
    font-size: 1.2rem;
}
.social-icons a:hover {
  color: var(--fg);
}

@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    
    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section {
        padding: 60px 5%;
    }
}
