/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0D0D0D;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.loaded {
    opacity: 1;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0D0D0D;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-content {
    text-align: center;
    font-family: 'Space Grotesk', monospace;
}

.loading-content h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #FFFFFF, #A0A0A0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulse 1.4s infinite ease;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(1); letter-spacing: -0.02em; }
    50% { opacity: 1; transform: scale(1.02); letter-spacing: 2px; }
    100% { opacity: 0.6; transform: scale(1); letter-spacing: -0.02em; }
}

.loading-sub {
    margin-top: 1rem;
    color: #666;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.loading-projects {
    text-align: center;
    padding: 3rem;
    color: #888;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #1A1A1A;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
}

/* Sections */
section {
    margin: 5rem 0;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero .brand {
    color: #aaa;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.hero-bio {
    font-size: 1.1rem;
    color: #bbb;
    margin: 1rem 0;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: 0.9rem;
}

.btn-primary {
    background: white;
    color: black;
    border: 1px solid white;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid #333;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    border-color: white;
    transform: translateY(-3px);
}

/* Profile Image */
.profile-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2A2A2A;
    background: #1A1A1A;
}

/* About & Skills */
.about-text {
    max-width: 700px;
    margin-bottom: 2rem;
    color: #ccc;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.skill-tag {
    background: #1A1A1A;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #ddd;
    transition: 0.2s;
}

.skill-tag:hover {
    background: #2A2A2A;
    color: white;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: #aaa;
    margin: 0.8rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-lang {
    display: inline-block;
    background: #1A1A1A;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: monospace;
    margin-top: 0.5rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.75rem;
    color: #777;
}

.project-stats i {
    margin-right: 0.3rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.project-links a:hover {
    color: white;
}

.github-note {
    text-align: center;
    padding: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid #1A1A1A;
    color: #666;
    font-size: 0.85rem;
}

.github-note a {
    color: #888;
    text-decoration: none;
}

.github-note a:hover {
    color: white;
}

/* Contact Section */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.2s;
    text-decoration: none;
    color: white;
    flex: 1;
    min-width: 180px;
}

.contact-card i {
    font-size: 1.5rem;
    color: #aaa;
}

.contact-card:hover {
    border-color: #555;
    background: #1A1A1A;
}

.copy-btn {
    background: #222;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.2s;
}

.copy-btn:hover {
    background: #333;
}

.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #1A1A1A;
    margin-top: 3rem;
    color: #666;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .navbar { flex-direction: column; text-align: center; }
    .nav-links { gap: 1.5rem; }
    .container { padding: 1rem; }
    section { margin: 3rem 0; }
    .projects-grid { grid-template-columns: 1fr; }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}