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

:root {
    --bg-dark: #0a1428;
    --bg-darker: #050d17;
    --bg-card: #1a2847;
    --text-white: #ffffff;
    --text-gray: #b0b8c8;
    --border-color: #2d4a6f;
    --primary-blue: #2d5a8f;
    --accent-cyan: #00d4ff;
    --accent-blue: #1e3a5f;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-blue) 50%, var(--bg-darker) 100%);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 20, 40, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

/* Hero Section */
.hero {
    margin-top: 5rem;
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 1rem;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* About Section */
.about {
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(26, 40, 71, 0.3);
}

.about h2,
.projects h2,
.skills h2,
.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-white);
}

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

.about-card {
    background: rgba(26, 40, 71, 0.5);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

.highlight-text {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Projects Section */
.projects {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(26, 40, 71, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);

    min-height: 60px;
    display: flex;
    align-items: flex-start;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    font-style: italic;

    min-height: 45px;
}

.project-body p:not(.subtitle) {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;

    flex-grow: 1;
}

.view-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 1.2rem;
    transition: gap 0.3s ease;
}

.viewLink {
    color: var(--accent-cyan);
    text-decoration: none;
}

.viewLink:visited,
.viewLink:active{
    color: var(--accent-cyan);
}

.viewLink:hover {
    text-decoration: underline;
    scale: 1.05;
    transition: all 0.3s ease;
}

/* Skills Section */
.skills {
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(26, 40, 71, 0.3);
    max-width: 1200px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.skills-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(45, 90, 143, 0.15));
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 40, 71, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: var(--accent-cyan);
    background: rgba(26, 40, 71, 0.8);
}

.service-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent-cyan);
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
}

.service-item span {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: rgba(26, 40, 71, 0.5);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
}

.contact-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.contact-card p {
    color: var(--text-gray);
    word-break: break-all;
    transition: color 0.3s ease;
}

.contact-card:hover p {
    color: var(--accent-cyan);
}

.social-section {
    background: rgba(26, 40, 71, 0.5);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
}

.social-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

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

.social-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(45, 90, 143, 0.15));
    border: 1px solid var(--accent-cyan);
    border-radius: 0.5rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.social-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.social-btn span {
    color: var(--accent-cyan);
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 20, 40, 0.5);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-content {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .about h2,
    .projects h2,
    .skills h2,
    .contact h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 2rem 1rem;
        margin-top: 4rem;
    }

    .about,
    .projects,
    .skills,
    .contact {
        padding: 2rem 1rem;
    }

    .project-card {
        margin-bottom: 1rem;
    }

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

    .social-links {
        flex-direction: column;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
    }
}
