/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark portfolio theme */
    --background: hsl(222, 47%, 8%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(222, 47%, 11%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(189, 94%, 43%);
    --primary-foreground: hsl(222, 47%, 8%);
    --secondary: hsl(222, 47%, 15%);
    --secondary-foreground: hsl(210, 40%, 98%);
    --muted: hsl(222, 47%, 15%);
    --muted-foreground: hsl(215, 20%, 65%);
    --accent: hsl(189, 94%, 43%);
    --accent-foreground: hsl(222, 47%, 8%);
    --border: hsl(222, 47%, 20%);
    --input: hsl(222, 47%, 15%);
    
    /* Custom portfolio tokens */
    --gradient-primary: linear-gradient(135deg, hsl(222, 47%, 8%), hsl(222, 47%, 12%));
    --gradient-accent: linear-gradient(135deg, hsl(189, 94%, 43%), hsl(196, 94%, 50%));
    --gradient-card: linear-gradient(135deg, hsl(222, 47%, 11%, 0.8), hsl(222, 47%, 15%, 0.9));
    --shadow-glow: 0 0 40px hsl(189, 94%, 43%, 0.15);
    --shadow-card: 0 8px 32px hsl(222, 47%, 5%, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(19, 19, 27, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1rem;
    font-family: inherit;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: hsl(189, 94%, 38%);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--primary);
    background: hsl(189, 94%, 43%, 0.05);
    border-color: var(--primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, hsl(189, 94%, 43%, 0.1), transparent 50%);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: hsl(189, 94%, 43%, 0.1);
    border: 1px solid hsl(189, 94%, 43%, 0.2);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero-badge span {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.profile-container {
    position: relative;
}

.profile-ring {
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: var(--gradient-accent);
    padding: 4px;
}

.profile-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--background);
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.profile-glow-1 {
    top: -1rem;
    right: -1rem;
    width: 5rem;
    height: 5rem;
    background: hsl(189, 94%, 43%, 0.2);
}

.profile-glow-2 {
    bottom: -1rem;
    left: -1rem;
    width: 4rem;
    height: 4rem;
    background: hsl(189, 94%, 43%, 0.2);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40%, 43% {
        transform: translateX(-50%) translateY(-30px);
    }
    70% {
        transform: translateX(-50%) translateY(-15px);
    }
    90% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: hsl(222, 47%, 15%, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.section-divider {
    width: 5rem;
    height: 4px;
    background: var(--gradient-accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* Cards */
.card {
    background: var(--gradient-card);
    border: 1px solid hsl(222, 47%, 20%, 0.5);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: var(--shadow-glow);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.highlight-card {
    background: hsl(222, 47%, 11%, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
}

.highlight-card h4 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.education h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.education-card {
    background: var(--gradient-card);
    border: 1px solid hsl(222, 47%, 20%, 0.5);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.education-icon {
    padding: 0.5rem;
    background: hsl(189, 94%, 43%, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-icon i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.education-content h4 {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.institution {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.education-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: var(--gradient-card);
    border: 1px solid hsl(222, 47%, 20%, 0.5);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.experience-card:hover {
    box-shadow: var(--shadow-glow);
}

.experience-card {
    display: flex;
    gap: 1.5rem;
}

.experience-icon {
    padding: 0.75rem;
    background: hsl(189, 94%, 43%, 0.1);
    border-radius: 0.75rem;
    transition: var(--transition-smooth);
}

.experience-card:hover .experience-icon {
    background: hsl(189, 94%, 43%, 0.2);
}

.experience-icon i {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.experience-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.company {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.description {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.achievements {
    color: var(--foreground);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--gradient-card);
    border: 1px solid hsl(222, 47%, 20%, 0.5);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.skill-card:hover {
    box-shadow: var(--shadow-glow);
}

.skill-icon {
    display: inline-flex;
    padding: 0.75rem;
    background: hsl(189, 94%, 43%, 0.1);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.skill-card:hover .skill-icon {
    background: hsl(189, 94%, 43%, 0.2);
}

.skill-icon i {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-item {
    padding: 0.75rem 1rem;
    background: hsl(222, 47%, 15%, 0.5);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.skill-item:hover {
    background: hsl(189, 94%, 43%, 0.1);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--gradient-card);
    border: 1px solid hsl(222, 47%, 20%, 0.5);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.service-card:hover {
    box-shadow: var(--shadow-glow);
}

.service-icon {
    display: inline-flex;
    padding: 1rem;
    background: hsl(189, 94%, 43%, 0.1);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: hsl(189, 94%, 43%, 0.2);
}

.service-icon i {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--gradient-card);
    border: 1px solid hsl(222, 47%, 20%, 0.5);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.project-card:hover {
    box-shadow: var(--shadow-glow);
}

.project-header {
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blue-gradient {
    background: linear-gradient(135deg, hsl(217, 91%, 60%, 0.2), hsl(196, 94%, 50%, 0.2));
}

.green-gradient {
    background: linear-gradient(135deg, hsl(142, 76%, 36%, 0.2), hsl(160, 84%, 39%, 0.2));
}

.project-header i {
    width: 4rem;
    height: 4rem;
    color: var(--primary);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-section {
    margin-bottom: 1.5rem;
}

.project-section h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: hsl(189, 94%, 43%, 0.1);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.feature-list li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.project-buttons {
    display: flex;
    gap: 1rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-description {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--gradient-card);
    border: 1px solid hsl(222, 47%, 20%, 0.5);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.contact-card:hover {
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    padding: 0.75rem;
    background: hsl(189, 94%, 43%, 0.1);
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
}

.contact-card:hover .contact-icon {
    background: hsl(189, 94%, 43%, 0.2);
}

.contact-icon i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.contact-label {
    font-weight: 500;
    color: var(--foreground);
}

.contact-value {
    color: var(--muted-foreground);
}

.contact-form-card {
    background: var(--gradient-card);
    border: 1px solid hsl(222, 47%, 20%, 0.5);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    background: hsl(222, 47%, 8%, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--foreground);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsl(189, 94%, 43%, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--muted-foreground);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--secondary);
    border-radius: 0.5rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: hsl(189, 94%, 43%, 0.1);
    color: var(--primary);
}

.social-link i {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-card);
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-color: hsl(142, 76%, 36%);
    background: hsl(142, 76%, 36%, 0.1);
}

.toast.error {
    border-color: hsl(0, 84%, 60%);
    background: hsl(0, 84%, 60%, 0.1);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .profile-ring {
        width: 16rem;
        height: 16rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-container {
        padding: 3rem 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .profile-ring {
        width: 12rem;
        height: 12rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .project-buttons {
        flex-direction: column;
    }
}
