/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0f1729;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    border: 2px solid #3b82f6;
    color: #60a5fa;
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: #3b82f6;
    color: #ffffff;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #334155;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: none;
    align-items: baseline;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #60a5fa;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-toggle:hover {
    color: #60a5fa;
}

.mobile-menu {
    display: none;
    background-color: #334155;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #60a5fa;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1729 0%, #334155 50%, #475569 100%);
    text-align: center;
}

.hero-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .hero-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        padding: 0 2rem;
    }
}

.hero-content {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.875rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 3rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background-color: #334155;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-description {
    color: #d1d5db;
    font-size: 1.125rem;
    max-width: 32rem;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    background-color: #0f1729;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-description {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.tech-python { background-color: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.tech-fastapi { background-color: rgba(34, 197, 94, 0.2); color: #4ade80; }
.tech-docker { background-color: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.tech-transformers { background-color: rgba(147, 51, 234, 0.2); color: #a855f7; }
.tech-flask { background-color: rgba(107, 114, 128, 0.2); color: #9ca3af; }
.tech-html { background-color: rgba(249, 115, 22, 0.2); color: #fb923c; }
.tech-ml { background-color: rgba(34, 197, 94, 0.2); color: #4ade80; }
.tech-pytorch { background-color: rgba(220, 38, 38, 0.2); color: #f87171; }
.tech-tensorflow { background-color: rgba(249, 115, 22, 0.2); color: #fb923c; }
.tech-nlp { background-color: rgba(99, 102, 241, 0.2); color: #818cf8; }

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

.project-link {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #93c5fd;
}

.project-link-code {
    color: #9ca3af;
}

.project-link-code:hover {
    color: #d1d5db;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: #0f1729;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-paragraph {
    color: #d1d5db;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.experience-section,
.education-section {
    margin-bottom: 2rem;
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #60a5fa;
}

.experience-item,
.education-item {
    background-color: rgba(107, 114, 128, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.experience-title,
.education-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.experience-description {
    color: #d1d5db;
    font-size: 0.875rem;
}

.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.tag-blue { background-color: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.tag-green { background-color: rgba(34, 197, 94, 0.2); color: #4ade80; }
.tag-purple { background-color: rgba(147, 51, 234, 0.2); color: #a855f7; }

/* Skills Section */
.skills-section {
    margin-top: 2rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.skill-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: #ffffff;
}

.skill-percentage {
    color: #9ca3af;
}

.skill-bar {
    width: 100%;
    background-color: #374151;
    border-radius: 9999px;
    height: 0.5rem;
}

.skill-progress {
    height: 0.5rem;
    border-radius: 9999px;
    width: 0%;
    transition: width 2s ease-out;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: #334155;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-icon {
    color: #60a5fa;
    width: 1.5rem;
    margin-right: 1rem;
}

.contact-text {
    color: #d1d5db;
}

.social-section {
    margin-top: 2rem;
}

.social-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.social-link {
    color: #9ca3af;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #60a5fa;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: #0f1729;
    border: 1px solid #4b5563;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px #ef4444;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #f87171;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-status {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.form-status.success {
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    display: block;
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    display: block;
}

.btn-loading {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: #0f1729;
    border-top: 1px solid #334155;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-title {
    color: #9ca3af;
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social-link {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: #60a5fa;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    text-align: center;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}