/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #1a1a1a;
    transition: background 0.3s;
}

/* First Page */
.first-page {
    height: 100vh;
    position: relative;
}

/* Second Page */
.second-page {
    position: relative;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: #272727;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

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

.nav-links a:hover {
    color: #2563eb;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

/* Star Animations */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    border-radius: 50%;
    animation: moveStar 20s linear infinite;
}

.star.blue {
    background: #2563eb;
    box-shadow: 0 0 10px #2563eb;
}

.star.green {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

@keyframes moveStar {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(var(--x1), var(--y1));
    }
    50% {
        transform: translate(var(--x2), var(--y2));
    }
    75% {
        transform: translate(var(--x1), var(--y1));
    }
    100% {
        transform: translate(0, 0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
}
.hero-content p {
    font-size: 3.5rem;
} 

.highlight {
    color: #2563eb;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    color: #fff;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.about-left {
    flex: 1 1 320px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.person-icon {
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.about-left p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.about-right {
    flex: 1 1 320px;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-left: 100px;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.skill {
    background: #18181b;
    color: #fff;
    padding: .5rem 1rem .5rem 1rem;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(16,185,129,0.08), 0 1.5px 6px rgba(37,99,235,0.08);
    transition: box-shadow 0.3s, border 0.3s;
    overflow: hidden;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-logo {
    display: block;
    margin-bottom: .4rem;
    height: 54px;
    width: auto;
    max-width: 52px;
    object-fit: contain;
}

.skill span {
    margin-top: 0 !important;
}

.skill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 4px;
    background: linear-gradient(135deg, #2563eb, #10b981);
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
}

.skill:hover {
    box-shadow: 0 4px 16px rgba(16,185,129,0.18), 0 3px 12px rgba(37,99,235,0.18);
}

.skill:hover::before {
    opacity: 0.8;
}

@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        gap: 2.5rem;
        align-items: stretch;
    }
    .about-left, .about-right {
        align-items: center;
        justify-content: center;
    }
    .about-left {
        text-align: center;
    }
}

/* Projects Section */
.projects {
    padding: 5rem 2rem;
    background-color: #272727;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
    color: #fff;
}

.projects.visible {
    opacity: 1;
    transform: none;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    font-weight: 700;
    font-size: 2.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card { 
    background-color: #18181b;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 4px;
    background: linear-gradient(135deg, #10b981, #2563eb);
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
    border-color: #2563eb;
}

.project-card h3 {
    margin-bottom: 0.5rem;
    color: #2563eb;
}

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

.live-link, .learn-more {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
    transition: color 0.3s;
}

.live-link:hover, .learn-more:hover {
    color: #1d4ed8;
}

/* Front-End Projects Section */
.professional-projects {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.01);
}

.professional-projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.professional-projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.professional-project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.professional-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #10b981);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.professional-project-card:hover::before {
    transform: scaleX(1);
}

.professional-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(37, 99, 235, 0.3);
}

.professional-project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.professional-project-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.professional-project-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.professional-project-org {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.professional-project-card p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.tech-tag {
    background: rgba(37, 99, 235, 0.1);
    color: #60a5fa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
}

.professional-project-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.professional-project-links .live-link {
    background: #2563eb;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.professional-project-links .live-link:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.coming-soon {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .professional-projects {
        padding: 3rem 1rem;
    }
    
    .professional-projects h2 {
        font-size: 2rem;
    }
    
    .professional-projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .professional-project-card {
        padding: 1.5rem;
    }
    
    .professional-project-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .professional-project-icon {
        margin-right: 0;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
    color: #fff;
}

.contact.visible {
    opacity: 1;
    transform: none;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2563eb;
    font-weight: 700;
}
.contact p {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 1rem;
    background: #272727;
    color: #fff;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.submit-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #272727;
    color: #888;
}

/* Animations for fade-in/slide-up */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    nav {
        padding: 1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .about, .projects, .contact {
        padding: 3rem 1rem;
    }
}

/* Small Projects Section */
.small-projects {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.small-projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.small-projects-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-list-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.project-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2563eb, #10b981);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.project-list-item:hover::before {
    transform: scaleY(1);
}

.project-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.project-list-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-list-content {
    flex: 1;
    min-width: 0;
}

.project-list-content h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-list-content p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-list-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list-tag {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.list-tag:hover {
    background: rgba(37, 99, 235, 0.3);
    color: #93c5fd;
}

/* Responsive design for small projects list */
@media (max-width: 768px) {
    .small-projects {
        padding: 3rem 1rem;
    }
    
    .small-projects h2 {
        font-size: 2rem;
    }
    
    .small-projects-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-list-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .project-list-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .project-list-content h3 {
        font-size: 1.1rem;
    }
    
    .project-list-content p {
        font-size: 0.85rem;
    }
}