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

.hidden { display: none !important; }

/* Toast Notifications */
.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
}

.toast {
    min-width: 260px;
    max-width: 380px;
    background: rgba(26, 26, 26, 0.88);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 6px solid var(--accent-color);
    padding: 12px 30px 12px 14px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(10px);
    animation: toast-in 220ms ease forwards;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
}

.toast .close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}
.toast .close-btn:hover { color: var(--text-primary); }

.toast.success { border-left-color: #22c55e; }
.toast.error { border-left-color: #ef4444; }
.toast.info { border-left-color: #3b82f6; }

@keyframes toast-in {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(10px); }
}

:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #2a2a2a;
    --accent-color: #ff6b35;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a3a;
    --gradient: linear-gradient(135deg, #ff6b35, #f7931e);
}

/* Loader Overlay */
#loader {
    position: fixed;
    inset: 0;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loader-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ff6b35;
    animation: spin 1s linear infinite;
}

.loader-percentage {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

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

/* Prevent scroll while loading */
body.loading {
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.brand-accent {
    color: var(--accent-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.greeting {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.name-highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 400px;
}

.cta-button {
    background: var(--gradient);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.developer-illustration {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.laptop {
    width: 200px;
    height: 140px;
    background: var(--secondary-bg);
    border-radius: 12px;
    position: relative;
    border: 2px solid var(--border-color);
}

.laptop-screen {
    width: 160px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.developer-avatar {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.cube {
    position: absolute;
    background: var(--gradient);
    border-radius: 8px;
    animation: float 6s ease-in-out infinite;
}

.cube-1 {
    width: 40px;
    height: 40px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.cube-2 {
    width: 25px;
    height: 25px;
    bottom: 30%;
    left: 15%;
    animation-delay: 2s;
}

.cube-3 {
    width: 30px;
    height: 30px;
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

.cube-4 {
    width: 35px;
    height: 35px;
    top: 20px;
    right: 20px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--secondary-bg);
    margin: 60px 0;
    border-radius: 20px;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.profile-placeholder {
    width: 250px;
    height: 300px;
    background: var(--primary-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.profile-image {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    margin-left: 20px;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.about-description {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.highlight {
    color: var(--accent-color);
}

.about-details {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Experience Section */
.experience {
    padding: 100px 0;
}

.experience-timeline {
    margin-top: 60px;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
    transform: translateX(-50%);
}

.experience-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.experience-item:nth-child(odd) {
    flex-direction: row;
}

.experience-item:nth-child(even) {
    flex-direction: row-reverse;
}

.experience-date {
    flex: 0 0 200px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.date-badge {
    background: var(--secondary-bg);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    display: inline-block;
    position: relative;
}

.date-badge.current {
    background: var(--gradient);
    color: white;
    border-color: var(--accent-color);
}

.date-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateY(-50%);
    border: 3px solid var(--primary-bg);
}

.experience-item:nth-child(odd) .date-badge::after {
    right: -25px;
}

.experience-item:nth-child(even) .date-badge::after {
    left: -25px;
}

.experience-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--secondary-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin: 0 40px;
    transition: all 0.3s ease;
}

.experience-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.experience-details {
    flex: 1;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.company-name {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.job-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.job-duration {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
    background: rgba(255, 107, 53, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

/* Works Section */
.works {
    padding: 100px 0;
}

.works-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
}

.work-card {
    background: var(--secondary-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.work-image {
    height: 200px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-placeholder {
    font-size: 3rem;
    color: var(--accent-color);
}

.work-content {
    padding: 30px;
}

.work-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.work-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.work-button {
    background: var(--gradient);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.work-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: var(--secondary-bg);
    border-radius: 20px;
    margin: 60px 0;
}

/* Left margin for Skills section title on larger screens */
.skills .section-title {
    margin-left: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    background: var(--gradient);
    color: white;
    transform: scale(1.1);
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
    transform: translateX(10px);
}

.contact-link i {
    width: 20px;
    color: var(--accent-color);
}

/* Contact Form */
.contact-form {
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.submit-button {
    width: 100%;
    background: var(--gradient);
    border: none;
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
    }

    .nav.nav-open .nav-menu {
        display: flex;
    }

    .nav-menu a {
        padding: 10px 8px;
        border-radius: 8px;
    }

    .nav-menu a:hover {
        background: rgba(255, 107, 53, 0.08);
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .social-links {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 30px;
        transform: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .experience-timeline::before {
        left: 30px;
    }
    
    .experience-item {
        flex-direction: column !important;
        align-items: flex-start;
        margin-left: 50px;
    }
    
    .experience-date {
        flex: none;
        margin-bottom: 20px;
    }
    
    .date-badge::after {
        left: -25px !important;
        right: auto !important;
    }
    
    .experience-content {
        margin: 0;
        width: 100%;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 30px;
    }
    
    /* Remove left margins on mobile for better centering */
    .profile-image {
        margin-left: 0;
    }
    .skills .section-title {
        margin-left: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about {
        margin: 40px 0;
        padding: 60px 0;
    }
    
    .skills {
        margin: 40px 0;
        padding: 60px 0;
    }
    
    .works,
    .contact {
        padding: 60px 0;
    }
}