* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #000000;
    background: #fefefe;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.01) 2px,
            rgba(0,0,0,0.01) 4px
        ),
        radial-gradient(circle at 20% 80%, rgba(0,0,0,0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,0,0,0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 2rem 0;
    border-bottom: 3px double rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #000000;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background: repeating-linear-gradient(
        90deg,
        #000000 0px,
        #000000 5px,
        transparent 5px,
        transparent 8px
    );
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 3rem;
    background: #fefefe;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-style: dashed;
    z-index: 1;
}

.hero::after {
    content: '✦';
    position: absolute;
    top: 15%;
    right: 15%;
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding-top: 4rem;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 2rem;
    color: #000000;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
    position: relative;
}

.hero-content h1::before {
    content: '◈';
    position: absolute;
    top: -20px;
    left: -40px;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.2);
}

.hero-content h1::after {
    content: '◈';
    position: absolute;
    bottom: -20px;
    right: -40px;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.4rem;
    color: #666666;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: #000000;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.9s;
    border: 3px solid #000000;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.1) 0px,
        rgba(255,255,255,0.1) 5px,
        transparent 5px,
        transparent 10px
    );
    transition: all 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.arrow {
    font-size: 0.8rem;
}

/* Sections */
section {
    padding: 10rem 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        #000000 0px,
        #000000 15px,
        transparent 15px,
        transparent 25px
    );
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #000000;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

h2::before {
    content: '✱';
    position: absolute;
    top: 50%;
    left: -60px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.2);
}

h2::after {
    content: '✱';
    position: absolute;
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.2);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: #f8f8f8;
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 5%;
    width: 150px;
    height: 150px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 5rem;
    align-items: center;
}

.profile-img {
    width: 100%;
    height: 400px;
    background: #000000;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 5px solid #000000;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.1);
}.profile-img {
    width: 100%;
    height: 400px;
    object-fit: cover; /* This will crop the image to fit while maintaining aspect ratio */
    object-position: center; /* Centers the crop */
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 5px solid #000000;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.1);
}

/* Remove the pseudo-elements that were creating the "EC" overlay */
.profile-img::before,
.profile-img::after {
    display: none;
}

.profile-img::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-style: dashed;
}

.profile-img::after {
    content: 'EC';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: 800;
    color: white;
    opacity: 0.9;
    letter-spacing: 3px;
}

.profile-img:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.1);
}

.about-text p {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border: 3px solid #000000;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-style: dotted;
}

.stat-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    display: block;
}

.stat-label {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Skills Section */
.skills {
    position: relative;
}

.skills::before {
    content: '◆';
    position: absolute;
    top: 15%;
    left: 8%;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.05);
}

.skills::after {
    content: '◆';
    position: absolute;
    bottom: 15%;
    right: 8%;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.05);
}

/* Replace your existing .skills-grid rule with this: */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Changed from auto-fit to exactly 3 columns */
    gap: 2rem;
    margin-top: 3rem;
}

/* Add this responsive rule to handle smaller screens */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

.skill-card {
    background: white;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid #000000;
    position: relative;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.08);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 13px 13px 0px rgba(0, 0, 0, 0.08);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: #000000;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border: 4px solid #000000;
    position: relative;
}

.skill-icon::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dotted rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.skill-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
}

.skill-card p {
    color: #666666;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background: #f8f8f8;
    position: relative;
}

.projects::before {
    content: '⬟';
    position: absolute;
    top: 10%;
    left: 5%;
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.03);
    transform: rotate(45deg);
}

.projects::after {
    content: '⬟';
    position: absolute;
    bottom: 10%;
    right: 5%;
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.03);
    transform: rotate(-45deg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid #000000;
    position: relative;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.08);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 2;
}

.project-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.08);
}

.project-img {
    width: 100%;
    height: 240px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 800;
    position: relative;
    overflow: hidden;
}

.project-img::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-style: dashed;
}

.project-img::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.project-content {
    padding: 2.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
}

.project-desc {
    color: #666666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: #f8f8f8;
    color: #000000;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px dotted rgba(0, 0, 0, 0.2);
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #000000;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #000000;
    color: white;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info p {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    border-color: rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1.5rem;
    font-size: 1.2rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #000000;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: #000000;
    color: white;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.submit-btn:hover {
    background: white;
    color: #000000;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #000000;
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: white;
    color: #000000;
    transform: translateY(-3px);
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    nav {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 0 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-content {
        text-align: center;
    }

    .profile-img {
        max-width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 5rem 0;
    }

    h2 {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* Additional styles for the contact form functionality */
        .status-message {
            margin-top: 15px;
            padding: 12px 15px;
            border-radius: 8px;
            text-align: center;
            font-weight: 500;
            font-size: 14px;
        }

        .status-message.success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .status-message.error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .submit-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .loading-text {
            font-weight: 500;
        }

        /* Hidden skills initially */
.skill-card.hidden {
    display: none;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: transparent;
    color: #000000;
    border: 3px solid #000000;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000000;
    transition: all 0.4s ease;
    z-index: -1;
}

.load-more-btn:hover::before {
    left: 0;
}

.load-more-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.load-more-btn.hidden {
    display: none;
}

/* Animation for new skills appearing */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}