diff --git a/src/components/EducationSection.module.css b/src/components/EducationSection.module.css index fe00ab3..07449a9 100644 --- a/src/components/EducationSection.module.css +++ b/src/components/EducationSection.module.css @@ -1,12 +1,12 @@ .educationSection { position: relative; - width: 1440px; + width: 100%; padding-top: 60px; padding-bottom: 32px; } .card { - width: 1320px; + width: 100%; background-color: transparent; border: 1px solid var(--border-default); border-radius: var(--radius-lg); diff --git a/src/components/ExperienceSection.module.css b/src/components/ExperienceSection.module.css index b3c988c..653d789 100644 --- a/src/components/ExperienceSection.module.css +++ b/src/components/ExperienceSection.module.css @@ -1,6 +1,6 @@ .experienceSection { position: relative; - width: 1440px; + width: 100%; padding-top: 60px; padding-bottom: 80px; } diff --git a/src/components/FooterSection.module.css b/src/components/FooterSection.module.css index 16b8da1..25cea57 100644 --- a/src/components/FooterSection.module.css +++ b/src/components/FooterSection.module.css @@ -1,6 +1,7 @@ .footerSection { position: relative; - width: 1440px; + width: 100%; + max-width: 1440px; height: 480px; overflow: hidden; display: flex; @@ -14,7 +15,7 @@ position: absolute; top: 0; left: 0; - width: 1440px; + width: 100%; height: 480px; z-index: 1; } diff --git a/src/components/HeroSection.module.css b/src/components/HeroSection.module.css index 94d2ce7..8c5e8ef 100644 --- a/src/components/HeroSection.module.css +++ b/src/components/HeroSection.module.css @@ -1,6 +1,6 @@ .heroContentWrapper { position: relative; - width: 1440px; + width: 100%; height: 680px; z-index: 5; } diff --git a/src/components/MilestonesSection.module.css b/src/components/MilestonesSection.module.css index c8c1aee..842b201 100644 --- a/src/components/MilestonesSection.module.css +++ b/src/components/MilestonesSection.module.css @@ -1,6 +1,6 @@ .milestonesSection { position: relative; - width: 1440px; + width: 100%; padding-top: 40px; padding-bottom: 80px; } @@ -12,7 +12,7 @@ } .certCard { - width: 1320px; + width: 100%; background-color: transparent; border: 1px solid var(--border-default); border-radius: var(--radius-lg); diff --git a/src/components/ProjectsSection.module.css b/src/components/ProjectsSection.module.css index 746ce62..451b317 100644 --- a/src/components/ProjectsSection.module.css +++ b/src/components/ProjectsSection.module.css @@ -1,6 +1,6 @@ .projectsSection { position: relative; - width: 1440px; + width: 100%; padding-top: 60px; padding-bottom: 80px; } diff --git a/src/components/RiverJourney.module.css b/src/components/RiverJourney.module.css index 3453b3d..f76d81c 100644 --- a/src/components/RiverJourney.module.css +++ b/src/components/RiverJourney.module.css @@ -1,6 +1,6 @@ .journeySection { position: relative; - width: 1440px; + width: 100%; height: 1050px; /* Seamless continuation of scenic artwork */ } diff --git a/src/components/ScenicHeroJourney.module.css b/src/components/ScenicHeroJourney.module.css index ecb811d..ddc1406 100644 --- a/src/components/ScenicHeroJourney.module.css +++ b/src/components/ScenicHeroJourney.module.css @@ -1,6 +1,7 @@ .scenicContainer { position: relative; - width: 1440px; + width: 100%; + max-width: 1440px; height: 1730px; overflow: hidden; background-color: var(--bg-page); @@ -10,7 +11,7 @@ position: absolute; top: 0; left: 0; - width: 1440px; + width: 100%; height: 1576px; z-index: 1; pointer-events: none; @@ -19,6 +20,6 @@ .artworkImage { object-fit: contain; object-position: top center; - width: 1440px; + width: 100%; height: 1576px; } diff --git a/src/components/SkillsSection.module.css b/src/components/SkillsSection.module.css index c923d5b..a2dfce5 100644 --- a/src/components/SkillsSection.module.css +++ b/src/components/SkillsSection.module.css @@ -1,12 +1,12 @@ .skillsSection { position: relative; - width: 1440px; + width: 100%; padding-top: 60px; padding-bottom: 80px; } .mainCard { - width: 1320px; + width: 100%; background-color: transparent; border: 1px solid var(--border-default); border-radius: var(--radius-xl); diff --git a/src/styles/globals.css b/src/styles/globals.css index 3aee43a..1b97788 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -26,21 +26,22 @@ html[data-theme="dark"] { body { width: 100%; - min-width: 1440px; + min-width: 320px; background-color: var(--bg-page); color: var(--text-primary); font-family: 'IRANYekanXVF', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - overflow-x: auto; + overflow-x: hidden; transition: background-color 0.25s ease, color 0.25s ease; } /* Master 1440px Fixed Canvas */ .desktop-canvas { - width: 1440px; - min-width: 1440px; + width: 100%; + max-width: var(--layout-frame); + min-width: 0; margin: 0 auto; position: relative; background-color: var(--bg-page); @@ -49,11 +50,39 @@ body { /* 1320px Inner Content Container with 60px Gutters */ .content-container { - width: 1320px; + width: calc(100% - (2 * var(--layout-page-gutter))); + max-width: var(--layout-container); margin: 0 auto; position: relative; } +@media (max-width: 1024px) { + :root { + --layout-page-gutter: 32px; + --layout-section-padding: 80px; + } +} + +@media (max-width: 640px) { + :root { + --layout-page-gutter: 20px; + --layout-section-padding: 64px; + } + + .section-header { + margin-bottom: var(--space-6); + } + + .section-title { + font-size: 28px; + line-height: 38px; + } + + .section-underline { + width: 88px; + } +} + /* Common Section Header Component Styles */ .section-header { display: flex; @@ -153,6 +182,19 @@ body { box-shadow: 0 4px 12px var(--shadow-color); } +@media (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto; + } + + *, *::before, *::after { + scroll-behavior: auto !important; + transition-duration: 0.01ms !important; + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + } +} + a { color: inherit; text-decoration: none;