body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at center, #000428, #004e92);
    color: white;
    box-sizing: border-box;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    text-align: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(0, 4, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo h4 {
    margin: 0;
    font-size: 1.8em;
    background: linear-gradient(45deg, #fff, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.3s ease;
}

.logo h4:hover {
    transform: scale(1.05);
}

.menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-size: 1.1em;
    position: relative;
    padding: 0.5rem 0;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(0, 4, 40, 0.9), rgba(0, 78, 146, 0.9)),
        url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 2rem;
}

.container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glitch-text {
    font-size: 4em;
    margin: 0;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
        -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
        0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 1s infinite;
}

.typewriter {
    font-size: 1.5em;
    margin: 1.5rem 0;
    overflow: hidden;
    border-right: 0.15em solid #7dd3fc;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-primary,
.cta-secondary {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-primary {
    background: #7dd3fc;
    color: #000428;
}

.cta-secondary {
    background: transparent;
    color: #7dd3fc;
    border: 2px solid #7dd3fc;
}

.cta-primary:hover,
.cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(125, 211, 252, 0.3);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin: 4rem 0;
}

.section-title h1 {
    font-size: 3em;
    margin-bottom: 1rem;
    color: #fff;
}

.underline {
    height: 4px;
    width: 100px;
    background: #7dd3fc;
    margin: 0 auto;
    position: relative;
}

.underline::before,
.underline::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 50%;
    background: #7dd3fc;
    top: 0;
    transition: transform 0.3s ease;
}

.underline::before {
    left: 0;
    transform-origin: left;
}

.underline::after {
    right: 0;
    transform-origin: right;
}

.section-title:hover .underline::before {
    transform: scaleX(0.5);
}

.section-title:hover .underline::after {
    transform: scaleX(0.5);
}

/* Projects Section */
.Projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: rgba(0, 4, 40, 0.95);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(125, 211, 252, 0.2);
}

.card-image {
    position: relative;
    overflow: hidden;
    padding-top: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.2rem;
    position: relative;
    background: rgba(0, 4, 40, 0.95);
}

.card-content h3 {
    margin: 0 0 0.8rem;
    font-size: 1.3em;
    color: #7dd3fc;
}

.paragraphDec {
    margin: 0 0 1rem;
    color: #e2e8f0;
    line-height: 1.5;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seemore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #7dd3fc;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.seemore svg {
    transition: transform 0.3s ease;
}

.seemore:hover {
    gap: 1rem;
}

.seemore:hover svg {
    transform: translateX(5px);
}

/* Contact Form */
.contact {
    padding: 4rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Common Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #7dd3fc;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7dd3fc;
    box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

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

/* Common Button Styles */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #7dd3fc;
    color: #000428;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #5cb8f9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(125, 211, 252, 0.3);
}

/* Common Section Styles */
.page-section {
    min-height: 100vh;
    padding: 120px 5% 60px;
    background: linear-gradient(135deg, rgba(0, 4, 40, 0.9), rgba(0, 78, 146, 0.9));
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 4rem;
    align-items: center;
}

/* Common Icon Styles */
.icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(125, 211, 252, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #7dd3fc;
    transition: all 0.3s ease;
}

.icon-circle:hover {
    background: #7dd3fc;
    color: #000428;
    transform: scale(1.1);
}

/* Common Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: rgba(0, 4, 40, 0.95);
    padding: 3rem 0;
    margin-top: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.footer_logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.copyright {
    text-align: center;
    color: #e2e8f0;
    font-size: 0.9rem;
    margin: 0;
}

/* Animations */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }

    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }

    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
            -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
            -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 0, 0.75),
            0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 0, 0.75),
            0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
            -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
            -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #7dd3fc
    }
}

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

    .menu ul {
        gap: 1rem;
    }

    .glitch-text {
        font-size: 3em;
    }

    .Projects {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 2rem 1rem;
    }

    .contact {
        padding: 4rem 1rem;
    }
}

@media (max-width: 480px) {
    .menu ul {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.9em;
    }

    .glitch-text {
        font-size: 2em;
    }

    .typewriter {
        font-size: 1.2em;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

.project-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    position: relative;
    z-index: 1;
}

.project-icon i {
    font-size: 20px;
    color: white;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.tech-tag {
    background: rgba(125, 211, 252, 0.1);
    color: #7dd3fc;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7dd3fc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateY(-2px);
    color: white;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #e57373;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 15px;
}

.card:hover .project-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.project-icon {
    transition: all 0.3s ease;
}

/* Add thumbnail overlay effect */
.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 4, 40, 0.3),
            rgba(0, 4, 40, 0.8));
    z-index: 0;
}