/* 
   GOOGLE FONT
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* 
   RESET
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000000;
    color: #fff;
    line-height: 1.7;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

section {
    padding: 90px 10%;
}

/* 
   VARIABLES
 */

:root {

    --primary: #058C42;
    --secondary: #16DB65;

    --dark: #0f172a;
    --dark2: #1e293b;

    --white: #fff;
    --text: #cbd5e1;

    --transition: .35s;
    --radius: 14px;

}

/* 
   NAVBAR
 */

header {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000000;
    z-index: 1000;
    box-shadow: 0 5px 18px rgba(74, 213, 84, 0.918);

}

.navbar {

    display: flex;
     justify-content: space-between;
    align-items: center;
    padding: 18px 10%;

}

.logo {

    font-size: 28px;
    font-weight: 700;
    color: white;

}

.logo span {

    color: var(--primary);

}

.nav-links {

    display: flex;
    gap: 35px;

}

.nav-links a {

    color: white;
    font-weight: 500;
    transition: .3s;

}

.nav-links a:hover,
.nav-links .active {

    color: var(--primary);

}

.menu-btn {

    display: none;
    font-size: 28px;
    cursor: pointer;

}

/* 
   HERO
 */

.hero {

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 60px;
    min-height: 100vh;

}

.hero-content h3 {

    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 10px;

}

.hero-content h1 {

    font-size: 58px;
    line-height: 1.2;
    margin-bottom: 12px;

}

.hero-content h2 {

    font-size: 32px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 20px;

}

.hero-content p {

    color: var(--text);
    margin-bottom: 35px;
    max-width: 560px;

}

/* 
   BUTTONS
 */

.hero-buttons {

    display: flex;
    gap: 18px;
    margin-bottom: 30px;

}

.btn {

    padding: 14px 30px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    transition: .3s;
    display: inline-block;

}

.btn:hover {

    background: #154126;
    transform: translateY(-4px);

}

.btn-outline {

    background: transparent;
    border: 2px solid var(--primary);

}

.btn-outline:hover {

    background: var(--primary);

}

/* 
SOCIAL ICONS
 */

.social-icons {

    display: flex;
    gap: 20px;

}

.social-icons a {

    width: 50px;
    height: 50px;
    background: #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 22px;
    color: white;
    transition: .3s;

}

.social-icons a:hover {

    background: var(--primary);
    transform: translateY(-5px);

}

/* 
IMAGE
 */

.hero-image {

    display: flex;
    justify-content: center;

}

.hero-image img {

    width: 430px;
    height: 430px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--primary);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .35);

}

/* 
SECTION TITLE
 */

.section-title {

    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;

}

/* 
SKILLS
 */

.skills {
    border: 0.5px solid #04471C;
    background: #000000;

}

.skills-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}



.skill-card {

    background: #37393b;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: .3s;

}

.skill-card:hover {

    transform: translateY(-10px);
    background: #5f6162;

}

.skill-card i {

    font-size: 58px;
    margin-bottom: 18px;
    color: var(--primary);

}

.skill-card h3 {

    font-size: 22px;

}

/* 
   FEATURED PROJECTS
 */

.featured {
    background: #000000;
    border: 0.5px solid #04471C;
}

.project-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.preview-card {
    background: #37393b;
    padding: 35px;
    border-radius: 15px;
    transition: 0.35s;
    border: 1px solid transparent;
}

.preview-card:hover {
    transform: translateY(-10px);
    border-color: #058C42;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .3);
}

.preview-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.preview-card p {
    color: #cbd5e1;
}

.center {
    text-align: center;
    margin-top: 50px;
}

/* 
   CTA SECTION
 */

.cta {
    background: linear-gradient(135deg, #37393b, #04471C);
    text-align: center;
    border-radius: 18px;
    margin: 80px 10%;
    padding: 70px 30px;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: white;
    opacity: .9;
}

.cta .btn {
    background: white;
    color: #058C42;
}

.cta .btn:hover {
    color: white;
    background: #043113;
    transform: translateY(-5px);
}

/* 
   FOOTER
 */

footer {
    background: #000000;
    border: 0.5px solid #04471C;
    text-align: center;
    padding: 30px;
    margin-top: 80px;
}

footer p {
    color: #94a3b8;
}

/* 
   UTILITIES
 */

.container {
    width: min(1200px, 90%);
    margin: auto;
}

.text-center {
    text-align: center;
}

/* 
   SCROLLBAR
 */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #2b2a2a;
}

::-webkit-scrollbar-thumb {
    background: #5c5a5a;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dfdada;
}

/* 
   ANIMATIONS
 */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes zoomIn {

    from {
        opacity: 0;
        transform: scale(.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

.hero-content {
    animation: fadeUp 1s ease;
}

.hero-image {
    animation: zoomIn 1.2s ease;
}

.skill-card {
    animation: fadeUp 1s ease;
}

.preview-card {
    animation: fadeUp 1s ease;
}

/* 
   HOVER EFFECTS
 */

button,
.btn,
a {
    transition: .3s;
}

.skill-card:hover i {
    transform: rotate(10deg) scale(1.15);
}

.preview-card:hover h3 {
    color: #058C42;
}

.logo {
    cursor: pointer;
}

.logo:hover {
    color: #16DB65;
}

/* 
   LARGE SCREENS (1200px and below)
 */

@media (max-width:1200px) {

    section {
        padding: 80px 7%;
    }

    .navbar {
        padding: 18px 7%;
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-image img {
        width: 380px;
        height: 380px;
    }

}

/* 
   TABLETS (992px and below)
 */

@media (max-width:992px) {

    .hero {

        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;

    }

    .hero-content {

        order: 2;

    }

    .hero-image {

        order: 1;

    }

    .hero-content p {

        margin: auto auto 30px;

    }

    .hero-buttons {

        justify-content: center;

    }

    .social-icons {

        justify-content: center;

    }

    .hero-image img {

        width: 340px;
        height: 340px;

    }

    .skills-container {

        grid-template-columns: repeat(2, 1fr);

    }

    .project-preview {

        grid-template-columns: repeat(2, 1fr);

    }

    .section-title {

        font-size: 36px;

    }

}

/* 
   MOBILE NAVIGATION
 */

@media (max-width:768px) {

    .menu-btn {

        display: block;
        font-size: 30px;
        color: white;
        cursor: pointer;
        z-index: 1001;

    }

    .nav-links {

        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: #000000;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        transition: .35s;
        gap: 25px;
        box-shadow: 0 10px 20px rgb(36, 36, 36);

    }

    .nav-links.active {

        left: 0;

    }

    .nav-links li {

        width: 100%;
        text-align: center;

    }

    .nav-links a {

        display: block;
        width: 100%;
        padding: 12px;

    }

    .hero {

        padding-top: 120px;
        gap: 40px;

    }

    .hero-content h1 {

        font-size: 40px;

    }

    .hero-content h2 {

        font-size: 24px;

    }

    .hero-content p {

        font-size: 15px;

    }

    .hero-image img {

        width: 280px;
        height: 280px;

    }

    .skills-container {

        grid-template-columns: 1fr 1fr;

    }

    .project-preview {

        grid-template-columns: 1fr;

    }

    .cta {

        margin: 60px 5%;
        padding: 50px 25px;

    }

    .cta h2 {

        font-size: 32px;

    }

    .section-title {

        font-size: 32px;

    }

    footer {

        padding: 25px;

    }

}

/* 
   SMALL PHONES
 */

@media (max-width:576px) {

    section {

        padding: 70px 5%;

    }

    .hero-content h3 {

        font-size: 18px;

    }

    .hero-content h1 {

        font-size: 34px;

    }

    .hero-content h2 {

        font-size: 20px;

    }

    .hero-buttons {

        flex-direction: column;
        align-items: center;

    }

    .btn {

        width: 220px;
        text-align: center;

    }

    .hero-image img {

        width: 240px;
        height: 240px;

    }

    .skills-container {

        grid-template-columns: 1fr;

    }

    .skill-card {

        padding: 30px;

    }

    .preview-card {

        padding: 28px;

    }

    .social-icons {

        gap: 15px;
        flex-wrap: wrap;

    }

    .social-icons a {

        width: 45px;
        height: 45px;
        font-size: 18px;

    }

    .cta h2 {

        font-size: 28px;

    }

    .cta p {

        font-size: 15px;

    }

    .logo {

        font-size: 24px;

    }

}

/* 
   EXTRA SMALL DEVICES
 */

@media (max-width:400px) {

    .hero-content h1 {

        font-size: 30px;

    }

    .hero-content h2 {

        font-size: 18px;

    }

    .hero-content p {

        font-size: 14px;

    }

    .hero-image img {

        width: 210px;
        height: 210px;

    }

    .btn {

        width: 100%;

    }

    .section-title {

        font-size: 28px;

    }

    .cta {

        padding: 40px 20px;

    }

    .cta h2 {

        font-size: 24px;

    }

    footer p {

        font-size: 13px;

    }

}

/* 
   VERY LARGE SCREENS
 */

@media (min-width:1600px) {

    .hero {

        max-width: 1500px;
        margin: auto;

    }

    section {

        max-width: 1500px;
        margin: auto;

    }

}

/* 
SKILL PROGRESS
 */

.progress-container {

    max-width: 800px;
    margin: auto;

}

.progress-box {

    margin-bottom: 25px;

}

.progress-title {

    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;

}

.progress {

    height: 12px;
    background: #334155;
    border-radius: 30px;
    overflow: hidden;

}

.progress-bar {

    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #043113, #058C42);
    transition: 1.5s ease;

}

/*
PROJECT PAGE
*/

.project-card {

    overflow: hidden;

}

.project-image {

    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;

}

.project-card h4 {

    margin: 15px 0;
    color: #16DB65;
    font-size: 15px;

}

.project-buttons {

    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;

}

.project-buttons .btn {

    flex: 1;
    text-align: center;

}

.project-card:hover .project-image {

    transform: scale(1.05);
    transition: .4s;

}

/*
CONTACT
*/

.contact-container {

    max-width: 700px;
    margin: auto;

}

.input-group {

    margin-bottom: 20px;

}

.input-group input,
.input-group textarea {

    width: 100%;
    padding: 15px;
    background: #262727;
    border: 2px solid transparent;
    border-radius: 10px;
    color: white;
    font-size: 16x;
    outline: none;

}

.input-group input:focus,
.input-group textarea:focus {

    border-color: #058C42;

}

.input-group small {

    display: block;
    margin-top: 6px;
    min-height: 18px;

}

textarea {

    resize: none;

}

#successMessage {

    font-weight: 600;
    text-align: center;

}