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

body {
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
    background: #f4e4c1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(244, 228, 193, 0.95);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.nav-container a {
    text-decoration: none;
    color: #2d2d3f;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-container a:hover {
    color: #e74c3c;
}

.nav-container a.active {
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 5px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, #f4e4c1 0%, #f0d9b5 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Animated background particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(231, 76, 60, 0.3);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.sun {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #ff6b6b 0%, #e74c3c 50%, #d63031 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 1;
    box-shadow: 0 0 100px rgba(231, 76, 60, 0.5),
                0 0 200px rgba(231, 76, 60, 0.3),
                0 0 300px rgba(231, 76, 60, 0.1);
    animation: pulse-sun 4s ease-in-out infinite;
}

@keyframes pulse-sun {
    0%, 100% {
        transform: translate(-50%, -60%) scale(1);
    }
    50% {
        transform: translate(-50%, -60%) scale(1.05);
    }
}

.samurai-silhouette {
    position: absolute;
    width: 350px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 3;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: samurai-float 6s ease-in-out infinite;
}

@keyframes samurai-float {
    0%, 100% {
        transform: translate(-50%, -55%);
    }
    50% {
        transform: translate(-50%, -58%);
    }
}

.samurai-svg {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 350 450"><g fill="%232d2d3f"><path d="M175 80c-20 0-35 10-45 25l-5 30v15l5 10c0 30-5 60-5 90 0 40 10 70 20 90l10 20h40l10-20c10-20 20-50 20-90 0-30-5-60-5-90l5-10v-15l-5-30c-10-15-25-25-45-25z"/><rect x="50" y="200" width="250" height="15" rx="2"/><rect x="165" y="180" width="20" height="180" rx="2"/><rect x="145" y="180" width="20" height="120" rx="2" transform="rotate(-15 155 240)"/><rect x="185" y="180" width="20" height="120" rx="2" transform="rotate(15 195 240)"/><path d="M175 60c-15 0-25 5-30 15l-10 20v25c0 10 20 15 40 15s40-5 40-15V95l-10-20c-5-10-15-15-30-15z"/><path d="M160 70l-30-20c-5-3-10 0-10 5v10c0 5 5 10 10 10h30v-5zm30 0l30-20c5-3 10 0 10 5v10c0 5-5 10-10 10h-30v-5z"/></g></svg>') center no-repeat;
    background-size: contain;
}

/* Mountain layers with gradients */
.mountains {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 350px;
    z-index: 2;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.mountain-back {
    height: 250px;
    background: linear-gradient(180deg, rgba(45, 45, 63, 0.6) 0%, rgba(45, 45, 63, 0.8) 100%);
    clip-path: polygon(0 60%, 15% 30%, 30% 45%, 45% 25%, 60% 40%, 75% 20%, 90% 35%, 100% 30%, 100% 100%, 0 100%);
}

.mountain-mid {
    height: 300px;
    background: linear-gradient(180deg, rgba(45, 45, 63, 0.8) 0%, #2d2d3f 100%);
    clip-path: polygon(0 50%, 20% 35%, 35% 45%, 50% 30%, 70% 40%, 85% 25%, 100% 35%, 100% 100%, 0 100%);
}

.mountain-front {
    height: 200px;
    background: #2d2d3f;
    clip-path: polygon(0 70%, 25% 50%, 50% 65%, 75% 45%, 100% 60%, 100% 100%, 0 100%);
}

/* Wave pattern at mountain base */
.wave-pattern {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: #e74c3c;
    z-index: 3;
    clip-path: polygon(
        0 40px, 5% 30px, 10% 35px, 15% 25px, 20% 30px, 25% 20px,
        30% 25px, 35% 15px, 40% 20px, 45% 10px, 50% 15px, 55% 5px,
        60% 10px, 65% 15px, 70% 10px, 75% 20px, 80% 15px, 85% 25px,
        90% 20px, 95% 30px, 100% 25px, 100% 100%, 0 100%
    );
    animation: wave-motion 10s ease-in-out infinite;
}

@keyframes wave-motion {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
    }
}

/* Enhanced Torii Gate */
.torii {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    z-index: 4;
}

.torii-structure {
    position: relative;
    width: 100%;
    height: 100%;
}

.torii-top {
    position: absolute;
    top: 20px;
    left: -10px;
    right: -10px;
    height: 20px;
    background: linear-gradient(90deg, #d63031 0%, #e74c3c 50%, #d63031 100%);
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.torii-top::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -5px;
    right: -5px;
    height: 15px;
    background: linear-gradient(90deg, #d63031 0%, #e74c3c 50%, #d63031 100%);
    border-radius: 3px;
}

.torii-pillar {
    position: absolute;
    bottom: 0;
    width: 15px;
    height: 140px;
    background: linear-gradient(180deg, #e74c3c 0%, #d63031 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.torii-pillar-left {
    left: 30px;
}

.torii-pillar-right {
    right: 30px;
}

/* Branch decorations */
.branch {
    position: absolute;
    z-index: 1;
    opacity: 0.8;
}

.branch-left {
    top: 15%;
    left: -50px;
    width: 200px;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 150"><path d="M200 75 Q150 70 100 80 T20 75" stroke="%232d2d3f" stroke-width="3" fill="none"/><circle cx="50" cy="78" r="3" fill="%23e74c3c" opacity="0.6"/><circle cx="80" cy="81" r="3" fill="%23e74c3c" opacity="0.6"/><circle cx="110" cy="79" r="3" fill="%23e74c3c" opacity="0.6"/></svg>') no-repeat;
    animation: sway-left 8s ease-in-out infinite;
}

.branch-right {
    top: 10%;
    right: -50px;
    width: 200px;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 150"><path d="M0 75 Q50 70 100 80 T180 75" stroke="%232d2d3f" stroke-width="3" fill="none"/><circle cx="150" cy="78" r="3" fill="%23e74c3c" opacity="0.6"/><circle cx="120" cy="81" r="3" fill="%23e74c3c" opacity="0.6"/><circle cx="90" cy="79" r="3" fill="%23e74c3c" opacity="0.6"/></svg>') no-repeat;
    animation: sway-right 8s ease-in-out infinite;
}

@keyframes sway-left {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes sway-right {
    0%, 100% { transform: rotate(2deg); }
    50% { transform: rotate(-2deg); }
}

.hero-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
}

.hero-title {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #2d2d3f;
}

.hero-title h1 {
    font-size: 56px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: hero-text-reveal 1s ease-out;
}

.hero-name {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 6;
}

.hero-name p {
    font-size: 32px;
    letter-spacing: 4px;
    font-weight: 700;
    color: #f4e4c1;
    text-shadow: 
        2px 2px 4px rgba(45, 45, 63, 0.4),
        -1px -1px 2px rgba(45, 45, 63, 0.2),
        0 0 10px rgba(45, 45, 63, 0.1);
    opacity: 0;
    animation: hero-subtitle-reveal 1s ease-out 0.5s forwards;
}

@keyframes hero-text-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-subtitle-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Icons */
.social-icons {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #2d2d3f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4e4c1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

/* Section Styles */
section {
    min-height: 100vh;
    padding: 100px 50px;
    position: relative;
}

.dark-section {
    background: #2d2d3f;
    color: #f4e4c1;
}

.light-section {
    background: #f4e4c1;
    color: #2d2d3f;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #e74c3c;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category h3 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 24px;
    text-transform: uppercase;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 10px 0;
    font-size: 18px;
    position: relative;
    padding-left: 20px;
}

.skill-category li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #e74c3c;
}

/* Projects Section */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.project-card h3 {
    color: #2d2d3f;
    font-size: 24px;
    margin-bottom: 15px;
}

.project-card p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-tag {
    background: #e74c3c;
    color: #f4e4c1;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Experience Section */
.experience-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e74c3c;
}

.experience-item {
    position: relative;
    padding: 20px;
    width: calc(50% - 40px);
    margin-bottom: 40px;
}

.experience-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.experience-item:nth-child(even) {
    left: calc(50% + 40px);
}

.experience-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
    top: 30px;
}

.experience-item:nth-child(odd)::before {
    right: -50px;
}

.experience-item:nth-child(even)::before {
    left: -50px;
}

.experience-date {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
}

.experience-title {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-info {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.contact-intro {
    font-size: 20px;
    margin-bottom: 30px;
    color: #2d2d3f;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* This centers the items */
    gap: 20px;
    margin-bottom: 50px;
}

.contact-item {
    flex: 1 1 280px;         /* Allows items to grow/shrink */
    max-width: 300px;        /* Sets a max-width for consistency */
    padding: 20px;
    background: #faeed7;     /* Matches the background color in the image */
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;      /* Centers the text inside the box */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    word-wrap: break-word;   /* Breaks long text to prevent overflow */
    overflow-wrap: break-word;
}

.contact-item:hover {
    background: rgba(231, 76, 60, 0.1);
    transform: translateY(-2px);
}

.contact-label {
    font-weight: bold;
    color: #e74c3c;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 14px;
}

.contact-item a {
    color: #2d2d3f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #e74c3c;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #2d2d3f;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(45, 45, 63, 0.1);
    border: 2px solid #e74c3c;
    color: #2d2d3f;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(231, 76, 60, 0.1);
}

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

.submit-btn {
    background: #e74c3c;
    color: #f4e4c1;
    padding: 15px 40px;
    border: none;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.submit-btn:hover {
    background: #2d2d3f;
    transform: translateY(-3px);
}

/* Decorative Elements */
.cherry-blossom {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-title h1 {
        font-size: 32px;
    }

    .hero-name p {
        font-size: 24px;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .experience-timeline::before {
        left: 20px;
    }

    .experience-item {
        width: calc(100% - 60px);
        left: 60px !important;
        text-align: left !important;
    }

    .experience-item::before {
        left: -40px !important;
    }

    .social-icons {
        left: 10px;
    }
}

.project-card p,
.experience-item p {
    word-wrap: break-word;   /* Break long words if needed */
    overflow-wrap: break-word;
    white-space: normal;     /* Allow text to wrap naturally */
}
p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.project-link {
    text-decoration: none; /* Removes the underline */
    color: inherit;       /* Inherits text color from the card */
    display: block;       /* Makes the link fill the entire card area */
}

/* Keeps the project heading color correct inside the link */
.project-link h3 {
    color: #2d2d3f;
}

/* Link styling for Experience Items */
.experience-link {
    text-decoration: none; /* Removes the underline */
    color: inherit;       /* Inherits text color from the item */
    display: block;       /* Makes the link fill the entire item area */
    /* These next two lines make the whole padded box clickable */
    padding: 20px;
    margin: -20px;
}

/* Ensures the date keeps its red color inside the link */
.experience-link .experience-date {
    color: #e74c3c;
}

.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
