body{
    margin: 0;
    font-family: Arial, sans-serif;
    color: #f5e6e8;
    background: 
        radial-gradient(circle at top left, rgba(255, 150, 170, 0.4), transparent 40%),
        linear-gradient(135deg, #3a2c2c, #2a1f2f);
}
/*NAV*/
.top-bar{
    display: flex;
    justify-content: flex-end;
    padding: 15px;
}

.theme-btn{
    background: #f5a5b5;
    border: none;
    border-radius: 50%;
    padding: 10px 12px;
    cursor: pointer;
}
/*HERO*/
.hero{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px;
}

.hero-text h1 {
    font-size: 40px;
}

.hero-text p {
    color: #d8bfc4;
}

.hero-btn{
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: #f5a5b5;
    color: black;
    border-radius: 20px;
    text-decoration: none;
}
/*SECTIONS*/
.section{
    padding: 60px 40px;
    text-align: center;
}

.dark-section{
    background: rgba(42, 31, 47, 0.75);
    backdrop-filter: blur(8px);
}

.light-section{
    background: rgba(227, 199, 207, 0.9);
    color: #2a1f2f;
}

/*CARDS*/
.card-grid{
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch;
}

.info-card,
.project-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    width: 260px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    border: 1px solid rgba(245, 165, 181, 0.45);
}

/*CONTACT*/
.contact-form{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.contact-form input,
 .contact-form textarea {
    width: 300px;
    padding: 12px 14px;
    margin: 0;
    border-radius: 12px;
    border: 1px solid rgba(245, 165, 181, 0.7);
    background: rgba(255, 255, 255, 0.03);
    color: #f5e6e8;
}

.contact-form textarea {
    min-height: 130px;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #d8bfc4;
}

.contact-form button,
.togglebtn{
    padding: 10px 20px;
    background: #f5a5b5;
    border: none;
    border-radius: 20px;
    cursor:pointer;
}

.hero-btn,
.contact-form button,
.theme-btn,
.togglebtn {
    transition: 0.3s;
}

.hero-btn:hover,
.contact-form button:hover,
.theme-btn:hover,
.togglebtn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.project-card,
.info-card {
    transition: 0.3s;
}

.project-card:hover,
.info-card:hover {
    transform: scale(1.05);
}

#contact{
    max-width: 1000px;
    margin: 0 auto;
}


.light-mode {
    background: #f5e6e8;
    color: #2a1f2f;
}

.project-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.project-controls select {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(245, 165, 181, 0.9);
    background: rgba(42, 31, 47, 0.9);
    color: #f5e6e8;
    font-size: 14px;
    cursor: pointer;
}

.project-controls select:hover {
    background: rgba(245, 165, 181, 0.15);
}

.project-controls select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 165, 181, 0.25);
}

.code-intro {
    font-family: "Courier New", monospace;
    background: rgba(10, 10, 15, 0.75);
    border: 1px solid rgba(245, 165, 181, 0.5);
    border-radius: 18px;
    padding: 25px;
    color: #f5e6e8;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    max-width: 550px;
}

.code-intro p {
    margin: 8px 0;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 1.4s steps(40, end) forwards;
}

.code-intro p:nth-child(2) {
    animation-delay: 1.4s;
}

.code-intro p:nth-child(3) {
    animation-delay: 2.8s;
}

.code-intro p:nth-child(4) {
    animation-delay: 4.2s;
}

.code-intro p:nth-child(5) {
    animation-delay: 5.6s;
}

.keyword {
    color: #ff8fab;
}

.string {
    color: #ffd166;
}

.method {
    color: #9d8cff;
}

.indent {
    padding-left: 25px;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}